Class SequentialIDGenerator
Simple Key generator that increments the next key by 1 each time.
Namespace: UnityEngine.Localization.Tables
Syntax
public class SequentialIDGenerator : object, IKeyGenerator
Constructors
SequentialIDGenerator()
Create a new instance that starts at 1.
Declaration
public SequentialIDGenerator()
SequentialIDGenerator(Int64)
Creates a new instance starting from startingId.
Declaration
public SequentialIDGenerator(long startingId)
Parameters
| Type | Name | Description |
|---|---|---|
| Int64 | startingId |
Properties
NextAvailableId
The next id value that will be provided by GetNextKey()
Declaration
public long NextAvailableId { get; }
Property Value
| Type | Description |
|---|---|
| Int64 |
Methods
GetNextKey()
Returns NextAvailableId and increments it by 1.
Declaration
public long GetNextKey()
Returns
| Type | Description |
|---|---|
| Int64 |