UNPKG

hytopia

Version:

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

72 lines (34 loc) 774 B
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [server](./server.md) &gt; [IterationMap](./server.iterationmap.md) &gt; [set](./server.iterationmap.set.md) ## IterationMap.set() method Sets the value for the key in the IterationMap. **Signature:** ```typescript set(key: K, value: V): this; ``` ## Parameters <table><thead><tr><th> Parameter </th><th> Type </th><th> Description </th></tr></thead> <tbody><tr><td> key </td><td> K </td><td> The key to set. </td></tr> <tr><td> value </td><td> V </td><td> The value to set. </td></tr> </tbody></table> **Returns:** this The IterationMap instance for chaining.