namespace UnityEngine.Localization.Tables { /// /// Simple Key generator that increments the next key by 1 each time. /// public class SequentialIDGenerator : IKeyGenerator { [SerializeField] long m_NextAvailableId = 1; /// /// The next id value that will be provided by /// public long NextAvailableId => m_NextAvailableId; /// /// Create a new instance that starts at 1. /// public SequentialIDGenerator() { } /// /// Creates a new instance starting from . /// /// public SequentialIDGenerator(long startingId) { m_NextAvailableId = startingId; } /// /// Returns and increments it by 1. /// /// public long GetNextKey() => m_NextAvailableId++; } }