Big API refactor
This commit is contained in:
@@ -17,7 +17,7 @@ use std::collections::{BTreeMap, HashMap, HashSet};
|
||||
use std::convert::TryFrom;
|
||||
use std::path::Path;
|
||||
use tinyrand::{Seeded, StdRand};
|
||||
|
||||
use crate::api::queue::ObjQueue;
|
||||
use crate::archetype::Archetype;
|
||||
use crate::board::Board;
|
||||
use crate::builtin_scripts::archetype_from_builtin_tag;
|
||||
@@ -245,6 +245,7 @@ impl TryFrom<MapFile> for Board {
|
||||
// (see `expand_builtin_archetypes` below), not via templates.
|
||||
builtin_script: None,
|
||||
tags: t.tags.into_iter().collect(),
|
||||
queue: ObjQueue::new(),
|
||||
name,
|
||||
},
|
||||
);
|
||||
@@ -278,8 +279,8 @@ impl TryFrom<MapFile> for Board {
|
||||
height: h,
|
||||
layers,
|
||||
player: PlayerPos {
|
||||
x: px as i32,
|
||||
y: py as i32,
|
||||
x: px as i64,
|
||||
y: py as i64,
|
||||
},
|
||||
objects,
|
||||
next_object_id,
|
||||
|
||||
Reference in New Issue
Block a user