Interface IIdProvider<T>
Custom id provider to generate unique ids
Namespace: AltV.Net.EntitySync
Assembly: AltV.Net.EntitySync.dll
Syntax
public interface IIdProvider<T>
Type Parameters
| Name | Description |
|---|---|
| T |
Methods
| Improve this Doc View SourceFree(T)
Tell the provider that the given id is not in use anymore and can be reused
Declaration
void Free(T id)
Parameters
| Type | Name | Description |
|---|---|---|
| T | id | id to reuse |
GetNext()
Returns the next free id
Declaration
T GetNext()
Returns
| Type | Description |
|---|---|
| T | Next free id |