コード例 #1
0
ファイル: Program.cs プロジェクト: pce1991/ASCII_RPG
        public static void AddEntity()
        {
            entityCount++;

            int index = 0;

            if (freeList.count > 0)
            {
                index = freeList.PopBack();
            }
            else
            {
                index = nextID;
                nextID++;
            }

            entities[index] = new Entity(index);
        }