Crate rustorio_engine

Crate rustorio_engine 

Source
Expand description

The core engine for Rustorio. Only relevant if you are writing a mod for Rustorio. To play the game, depend on the rustorio crate instead.

For more information, see the repo

Modules§

gamemodes
A game mode defines the starting resources and victory conditions for a game.
mod_reexports
These are the items that a player should have direct access to. Should be glob reexported at the top level of mods.
research
Technologies can be unlocked by consuming science packs. They usually unlock new recipes or further technologies.

Macros§

resource_type
Macro to define a new resource type.

Traits§

ResourceType
A type that represents a specific kind of resource in the game. Implementors of this trait represent different resource types, such as iron, copper, or science packs. Only useful as a type parameter; has no associated methods.
Sealed
A trait to prevent players from implementing certain traits. Should not be reexported in mods.

Functions§

bundle
Creates a new Bundle with the specified resource type and amount. Should not be reexported in mods.
play
Runs your play. If it is run multiple times, it will panic. This is to prevent using multiple threads to cheat.
resource
Creates a new Resource with the specified amount. Should not be reexported in mods.