-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "enable import/export in native client"
This reverts commit 5396c38.
- Loading branch information
1 parent
5396c38
commit e1089e5
Showing
4 changed files
with
23 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,14 @@ | ||
use client::client::Features; | ||
use client::local_client; | ||
use server::game::Game; | ||
|
||
#[macroquad::main("Clash")] | ||
async fn main() { | ||
let wasm = cfg!(feature = "wasm"); | ||
|
||
let features = Features { | ||
import_export: !wasm, | ||
}; | ||
|
||
//todo add button to decide random or fixed game | ||
let game = if false { | ||
Game::new(2, "a".repeat(32), true) | ||
} else { | ||
local_client::setup_local_game() | ||
}; | ||
|
||
local_client::run(game, &features).await; | ||
local_client::run(game).await; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters