# WorldClass

A script class that is instanced for every [World](../Game-Script-Environment/Userdata/World.md) in the game.

**Kind:** API page

**Environments:** Game

## Game

[Open the full Game reference](../Game-Script-Environment/Classes/WorldClass.md)

When entering a warehouse floor, the player is entering a new world.

Can receive events sent with [sm.event.sendToWorld](../Game-Script-Environment/Static-Functions/sm.event.md#sendtoworld).

### Fields

| Name | Type | Description |
| --- | --- | --- |
| `world` | [World](../Game-Script-Environment/Userdata/World.md) | The [World](../Game-Script-Environment/Userdata/World.md) game object belonging to this class instance. |
| `network` | [Network](../Game-Script-Environment/Userdata/Network.md) | A [Network](../Game-Script-Environment/Userdata/Network.md) object that can be used to send messages between client and server. |
| `storage` | [Storage](../Game-Script-Environment/Userdata/Storage.md) | (Server side only.) A [Storage](../Game-Script-Environment/Userdata/Storage.md) 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](../Game-Script-Environment/Static-Functions/sm.world.md#createworld). |
