hytopia
Version:
The HYTOPIA SDK makes it easy for developers to create massively multiplayer games using JavaScript or TypeScript.
191 lines (83 loc) • 3.02 kB
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [server](./server.md) > [WorldEventPayloads](./server.worldeventpayloads.md)
## WorldEventPayloads interface
Event payloads for World emitted events.
**Signature:**
```typescript
export interface WorldEventPayloads
```
## Properties
<table><thead><tr><th>
Property
</th><th>
Modifiers
</th><th>
Type
</th><th>
Description
</th></tr></thead>
<tbody><tr><td>
["WORLD.SET\_AMBIENT\_LIGHT\_COLOR"](./server.worldeventpayloads._world.set_ambient_light_color_.md)
</td><td>
</td><td>
{ world: [World](./server.world.md)<!-- -->; color: [RgbColor](./server.rgbcolor.md)<!-- -->; }
</td><td>
Emitted when the color of the world's ambient light is set.
</td></tr>
<tr><td>
["WORLD.SET\_AMBIENT\_LIGHT\_INTENSITY"](./server.worldeventpayloads._world.set_ambient_light_intensity_.md)
</td><td>
</td><td>
{ world: [World](./server.world.md)<!-- -->; intensity: number; }
</td><td>
Emitted when the intensity of the world's ambient light is set.
</td></tr>
<tr><td>
["WORLD.SET\_DIRECTIONAL\_LIGHT\_COLOR"](./server.worldeventpayloads._world.set_directional_light_color_.md)
</td><td>
</td><td>
{ world: [World](./server.world.md)<!-- -->; color: [RgbColor](./server.rgbcolor.md)<!-- -->; }
</td><td>
Emitted when the color of the world's directional light is set.
</td></tr>
<tr><td>
["WORLD.SET\_DIRECTIONAL\_LIGHT\_INTENSITY"](./server.worldeventpayloads._world.set_directional_light_intensity_.md)
</td><td>
</td><td>
{ world: [World](./server.world.md)<!-- -->; intensity: number; }
</td><td>
Emitted when the intensity of the world's directional light is set.
</td></tr>
<tr><td>
["WORLD.SET\_DIRECTIONAL\_LIGHT\_POSITION"](./server.worldeventpayloads._world.set_directional_light_position_.md)
</td><td>
</td><td>
{ world: [World](./server.world.md)<!-- -->; position: [Vector3Like](./server.vector3like.md)<!-- -->; }
</td><td>
Emitted when the position of the world's directional light is set.
</td></tr>
<tr><td>
["WORLD.SET\_SKYBOX\_INTENSITY"](./server.worldeventpayloads._world.set_skybox_intensity_.md)
</td><td>
</td><td>
{ world: [World](./server.world.md)<!-- -->; intensity: number; }
</td><td>
Emitted when the intensity of the world's skybox brightness is set.
</td></tr>
<tr><td>
["WORLD.START"](./server.worldeventpayloads._world.start_.md)
</td><td>
</td><td>
{ world: [World](./server.world.md)<!-- -->; startedAtMs: number; }
</td><td>
Emitted when the world starts.
</td></tr>
<tr><td>
["WORLD.STOP"](./server.worldeventpayloads._world.stop_.md)
</td><td>
</td><td>
{ world: [World](./server.world.md)<!-- -->; stoppedAtMs: number; }
</td><td>
Emitted when the world stops.
</td></tr>
</tbody></table>