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
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [server](./server.md) > [TickAllocator](./server.tickallocator.md) > [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<T> \| T\[\]
</td><td>
_(Optional)_
</td></tr>
<tr><td>
copyFromB
</td><td>
Set<T> \| T\[\]
</td><td>
_(Optional)_
</td></tr>
</tbody></table>
**Returns:**
Set<T>
A reusable set.