From 361baeb20dc6a907323b4f021498a13f6ab01d2b Mon Sep 17 00:00:00 2001 From: Alula <6276139+alula@users.noreply.github.com> Date: Fri, 12 Mar 2021 17:55:20 +0100 Subject: [PATCH] add netplay feature --- Cargo.toml | 3 ++- src/lib.rs | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 8253c94..79db3cc 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -21,12 +21,13 @@ opt-level = 1 opt-level = 1 [features] -default = ["scripting", "backend-sdl", "ogg-playback"] +default = ["scripting", "backend-sdl", "ogg-playback", "netplay"] ogg-playback = ["lewton"] backend-sdl = ["sdl2"] #backend-sokol = ["sokol"] backend-glutin = ["winit", "glutin"] scripting = ["lua-ffi"] +netplay = [] editor = [] [dependencies] diff --git a/src/lib.rs b/src/lib.rs index 9d73ea8..6bb9495 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -47,6 +47,8 @@ mod live_debugger; mod macros; mod map; mod menu; +#[cfg(feature = "netplay")] +mod netplay; mod npc; mod physics; mod player;