World:deserialize
Deserializes Entities into the World.
Deserializes Entities into the World.
Restores each entity’s key first when present in saved data, then deserializes component array entries.
world = world:deserialize( data, startClean, ignoreGenerator )Arguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
data |
SerializedWorld | Serialized world data |
startClean |
boolean | If true, existing Entities are cleared first |
ignoreGenerator |
boolean | If true, the World’s key generator state is left unchanged |
Returns
Section titled “Returns”| Name | Type | Description |
|---|---|---|
world |
World |