- All Known Implementing Classes:
JsonWorldIo
@NullMarked
public interface WorldIo
Defines the API contract for serializing and deserializing a
World.-
Method Details
-
stringify
Serializes aWorldinto a string.- Parameters:
world- theWorldto serialize- Returns:
- the serialized
World
-
parse
Deserializes a string into aWorld.- Parameters:
worldString- the string to deserialize- Returns:
- the deserialized
World
-
processWorldAfterDeserialize
Loops through eachEntityin aWorldand callsComponent.afterDeserialize(World)for eachComponentof theEntity.- Parameters:
world- theWorldto process
-