UNPKG

hytopia

Version:

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

96 lines (43 loc) 1.34 kB
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [server](./server.md) &gt; [WorldMap](./server.worldmap.md) ## WorldMap interface A map representation for a world. **Signature:** ```typescript export interface WorldMap ``` ## Properties <table><thead><tr><th> Property </th><th> Modifiers </th><th> Type </th><th> Description </th></tr></thead> <tbody><tr><td> [blocks?](./server.worldmap.blocks.md) </td><td> </td><td> { \[coordinate: string\]: number; } </td><td> _(Optional)_ The blocks in the map </td></tr> <tr><td> [blockTypes?](./server.worldmap.blocktypes.md) </td><td> </td><td> [BlockTypeOptions](./server.blocktypeoptions.md)<!-- -->\[\] </td><td> _(Optional)_ The block types in the map. </td></tr> <tr><td> [entities?](./server.worldmap.entities.md) </td><td> </td><td> { \[position: string\]: Omit&lt;[EntityOptions](./server.entityoptions.md)<!-- -->, 'rigidBodyOptions'&gt; &amp; { rigidBodyOptions?: Omit&lt;NonNullable&lt;[EntityOptions](./server.entityoptions.md)<!-- -->\['rigidBodyOptions'\]&gt;, 'type'&gt; &amp; { type?: any; }; }; } </td><td> _(Optional)_ The entities in the map. </td></tr> </tbody></table>