hytopia
Version:
The HYTOPIA SDK makes it easy for developers to create massively multiplayer games using JavaScript or TypeScript.
52 lines (25 loc) • 878 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [server](./server.md) > [World](./server.world.md) > [(constructor)](./server.world._constructor_.md)
## World.(constructor)
Creates a world instance with the provided options.
Use for: direct construction only when you need custom lifecycle control. Do NOT use for: routine world creation; prefer `WorldManager.createWorld`<!-- -->.
**Signature:**
```typescript
constructor(options: WorldOptions);
```
## Parameters
<table><thead><tr><th>
Parameter
</th><th>
Type
</th><th>
Description
</th></tr></thead>
<tbody><tr><td>
options
</td><td>
[WorldOptions](./server.worldoptions.md)
</td><td>
Initial world configuration. Options are applied once at construction.
</td></tr>
</tbody></table>