Class IdGeneratorUShort
Namespace: LiteEntitySystem
Assembly: LiteEntitySystem.dll
Syntax
public class IdGeneratorUShort
Constructors
IdGeneratorUShort(ushort, ushort)
Declaration
public IdGeneratorUShort(ushort initialValue, ushort maxValue)
Parameters
| Type | Name | Description |
|---|---|---|
| ushort | initialValue | |
| ushort | maxValue |
Properties
AvailableIds
Declaration
public int AvailableIds { get; }
Property Value
| Type | Description |
|---|---|
| int |
Methods
GetNewId()
Declaration
public ushort GetNewId()
Returns
| Type | Description |
|---|---|
| ushort |
Reset()
Declaration
public void Reset()
ReuseId(ushort)
Declaration
public void ReuseId(ushort id)
Parameters
| Type | Name | Description |
|---|---|---|
| ushort | id |