UNPKG

hytopia

Version:

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

72 lines (34 loc) 880 B
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [server](./server.md) &gt; [TickAllocator](./server.tickallocator.md) &gt; [getSet](./server.tickallocator.getset.md) ## TickAllocator.getSet() method Gets a set from the pool. Set is reset to empty state and ready for use. **Signature:** ```typescript getSet<T>(copyFromA?: Set<T> | T[], copyFromB?: Set<T> | T[]): Set<T>; ``` ## Parameters <table><thead><tr><th> Parameter </th><th> Type </th><th> Description </th></tr></thead> <tbody><tr><td> copyFromA </td><td> Set&lt;T&gt; \| T\[\] </td><td> _(Optional)_ </td></tr> <tr><td> copyFromB </td><td> Set&lt;T&gt; \| T\[\] </td><td> _(Optional)_ </td></tr> </tbody></table> **Returns:** Set&lt;T&gt; A reusable set.