iterami
/
Docs.htm
/
common HTM Repos
/
entity.js
/entity_create(args)
Creates an entity, provides it with a string ID and additional properties based on entity defaults and functions, and then returns it.
Not including the
"id"
arg makes the entity use
entity_id_count
, which starts at 0 and goes up by 1 each time an entity is created.
Arg
Default
Type
id
entity_id_count
string ID
properties
{}
object
types
[]
array of strings