playtest mode
This commit is contained in:
@@ -22,6 +22,7 @@ use std::collections::HashSet;
|
||||
/// Scripts are executed by [`crate::script::ScriptHost`]: an object's optional
|
||||
/// `init()` and `tick(dt)` functions are called via [`GameState::run_init`] and
|
||||
/// [`GameState::tick`]. Other event hooks (touch, shoot, …) are future work.
|
||||
#[derive(Clone)]
|
||||
pub struct ObjectDef {
|
||||
/// Stable identity assigned by [`crate::board::Board::add_object`].
|
||||
/// `0` is the sentinel meaning "not yet inserted into a board".
|
||||
|
||||
Reference in New Issue
Block a user