aboutsummaryrefslogtreecommitdiff
path: root/client/src/lib.rs
diff options
context:
space:
mode:
authormetamuffin <yvchraiqi@protonmail.com>2022-06-09 09:46:00 +0200
committermetamuffin <yvchraiqi@protonmail.com>2022-06-09 09:46:00 +0200
commit7a0d09e5cd0075e2a0d3db4505d7ec77dff35ae0 (patch)
tree5586745b7a9b871b31512cba9f964dabda4651f0 /client/src/lib.rs
downloadtwclient-7a0d09e5cd0075e2a0d3db4505d7ec77dff35ae0.tar
twclient-7a0d09e5cd0075e2a0d3db4505d7ec77dff35ae0.tar.bz2
twclient-7a0d09e5cd0075e2a0d3db4505d7ec77dff35ae0.tar.zst
(reset git)
Diffstat (limited to 'client/src/lib.rs')
-rw-r--r--client/src/lib.rs21
1 files changed, 21 insertions, 0 deletions
diff --git a/client/src/lib.rs b/client/src/lib.rs
new file mode 100644
index 0000000..3c19df7
--- /dev/null
+++ b/client/src/lib.rs
@@ -0,0 +1,21 @@
+#![feature(exclusive_range_pattern)]
+
+pub mod client;
+pub mod world;
+
+#[cfg(feature = "gamenet_ddnet_0_6")]
+pub extern crate gamenet_ddnet as gamenet;
+#[cfg(feature = "gamenet_0_5")]
+pub extern crate gamenet_teeworlds_0_5 as gamenet;
+#[cfg(feature = "gamenet_0_6")]
+pub extern crate gamenet_teeworlds_0_6 as gamenet;
+#[cfg(feature = "gamenet_0_7")]
+pub extern crate gamenet_teeworlds_0_7 as gamenet;
+
+
+use std::sync::atomic::AtomicBool;
+
+use lazy_static::lazy_static;
+lazy_static! {
+ pub static ref SHOULD_EXIT: AtomicBool = AtomicBool::new(false);
+}