standard_new_game/
standard_new_game.rs1#![deny(unsafe_code)]
2
3use rustorio::{
4 self, Bundle, ResourceType, Tick,
5 gamemodes::{self},
6};
7
8type GameMode = gamemodes::Standard;
9
10type StartingResources = <GameMode as gamemodes::GameMode>::StartingResources;
11
12fn main() {
13 rustorio::play::<GameMode>(user_main);
14}
15
16fn user_main(mut tick: Tick, starting_resources: StartingResources) -> (Tick, Bundle<{ ResourceType::Point }, 10>) {
17 let StartingResources { iron } = starting_resources;
18
19 todo!("Return the `tick` and the victory resources to win the game!")
20}