예제 #1
0
        public int GetId(int?id = null)
        {
            if (!id.HasValue)
            {
                return(IdPool.AllocateInstance());
            }

            IdPool.AllocateSpecificId(id.Value);
            return(id.Value);
        }
예제 #2
0
 public void Destroy(int entityId)
 {
     IdPool.ReleaseInstance(entityId);
 }