Example #1
0
        internal static void UnregisterEntityList(Type EntityType, int KeyId)
        {
            SortedList <int, EntityList> ListEL;

            if (!_List.TryGetValue(EntityType.Name, out ListEL))
            {
                return;
            }
            ListEL.Remove(KeyId);
        }
Example #2
0
        internal static int RegisterEntityList(Type EntityType, EntityList el)
        {
            SortedList <int, EntityList> ListEL;

            if (!_List.TryGetValue(EntityType.Name, out ListEL))
            {
                ListEL = new SortedList <int, EntityList>();
                _List.Add(EntityType.Name, ListEL);
            }
            ListEL.Add(LastKey, el);
            return(LastKey++);
        }