Exemplo n.º 1
0
        private NpcInfo NewNpcInfo(int id)
        {
            NpcInfo npc = null;

            if (m_UnusedNpcs.Count > 0)
            {
                npc = m_UnusedNpcs.Dequeue();
                npc.Reset();
                npc.InitId(id);
            }
            else
            {
                npc = new NpcInfo(id);
            }
            return(npc);
        }