mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 11:01:49 +00:00
update entities.spawn(...) semantics to the docs state
This commit is contained in:
parent
51a57d3d1f
commit
1b99a48849
9 changed files with 23 additions and 13 deletions
|
|
@ -95,7 +95,7 @@ static void initialize_body(
|
|||
entityid_t Entities::spawn(
|
||||
EntityDef& def,
|
||||
glm::vec3 position,
|
||||
dynamic::Value args,
|
||||
dynamic::Map_sptr args,
|
||||
dynamic::Map_sptr saved,
|
||||
entityid_t uid)
|
||||
{
|
||||
|
|
@ -179,7 +179,7 @@ void Entities::loadEntity(const dynamic::Map_sptr& map) {
|
|||
throw std::runtime_error("could not read entity - invalid UID");
|
||||
}
|
||||
auto& def = level->content->entities.require(defname);
|
||||
spawn(def, {}, dynamic::NONE, map, uid);
|
||||
spawn(def, {}, nullptr, map, uid);
|
||||
}
|
||||
|
||||
void Entities::loadEntity(const dynamic::Map_sptr& map, Entity entity) {
|
||||
|
|
|
|||
|
|
@ -182,7 +182,7 @@ public:
|
|||
entityid_t spawn(
|
||||
EntityDef& def,
|
||||
glm::vec3 position,
|
||||
dynamic::Value args=dynamic::NONE,
|
||||
dynamic::Map_sptr args=nullptr,
|
||||
dynamic::Map_sptr saved=nullptr,
|
||||
entityid_t uid=0);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue