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
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [server](./server.md) > [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<[EntityOptions](./server.entityoptions.md)<!-- -->, 'rigidBodyOptions'> & { rigidBodyOptions?: Omit<NonNullable<[EntityOptions](./server.entityoptions.md)<!-- -->\['rigidBodyOptions'\]>, 'type'> & { type?: any; }; }; }
</td><td>
_(Optional)_ The entities in the map.
</td></tr>
</tbody></table>