WorldClass
A script class that is instanced for every World in the game.
Kind: API page
Environments: Game
Game
When entering a warehouse floor, the player is entering a new world.
Can receive events sent with sm.event.sendToWorld.
Fields
| Name | Type | Description |
|---|---|---|
world |
World | The World game object belonging to this class instance. |
network |
Network | A Network object that can be used to send messages between client and server. |
storage |
Storage | (Server side only.) A Storage object that can be used to store data for the next time loading this object after being unloaded. |
data |
any | Parameters from sm.world.createWorld. |