object tags
This commit is contained in:
@@ -15,6 +15,7 @@ use crate::game::GameState;
|
||||
/// script, plus the given `(name, source)` script table entries.
|
||||
fn board_with_object(object_script: Option<&str>, scripts: &[(&str, &str)]) -> Board {
|
||||
let mut object = ObjectDef::new(0, 0);
|
||||
object.id = 1;
|
||||
object.script_name = object_script.map(str::to_string);
|
||||
Board {
|
||||
name: "test".into(),
|
||||
|
||||
Reference in New Issue
Block a user