UNPKG

hytopia

Version:

The HYTOPIA SDK makes it easy for developers to create massively multiplayer games using JavaScript or TypeScript.

56 lines (27 loc) 787 B
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [server](./server.md) &gt; [WorldManager](./server.worldmanager.md) &gt; [createWorld](./server.worldmanager.createworld.md) ## WorldManager.createWorld() method Creates a new world. **Signature:** ```typescript createWorld(options: Omit<WorldOptions, 'id'>): World; ``` ## Parameters <table><thead><tr><th> Parameter </th><th> Type </th><th> Description </th></tr></thead> <tbody><tr><td> options </td><td> Omit&lt;[WorldOptions](./server.worldoptions.md)<!-- -->, 'id'&gt; </td><td> The options for the world. </td></tr> </tbody></table> **Returns:** [World](./server.world.md) The created world.