Expand description
These are the items that a player should have direct access to. Should be glob reexported at the top level of mods.
pub use rustorio_engine::mod_reexports::*;Re-exports§
pub use crate::gamemodes::GameMode;pub use crate::play;pub use crate::research::Technology;
Structs§
- Bundle
- Contains a fixed (compile-time known) amount of a resource.
A
Bundlecan be used to build structures or as input for recipes. - Insufficient
Resource Error - Error returned when there are insufficient resources in a
Resourceto fulfill a request. - Resource
- Holds an arbitrary amount of a resource.
A
Resourceobject can be split into smaller parts, combined orBundles can be extracted from them. - Tick
- The tick is used to keep track of time in the game.
You can advance the game using the
advancemethod or similar. Many functions and building methods require aTickto be passed in, which allows them to update their state. If a function takes a&mut Tick, then the function will take time. If a function merely takes a&Tick, or noTicks at all, it will never advance the game time.