Exemplo n.º 1
0
            internal static Dictionary <int, IFasterList> GetGroup <T>(SharedGroupedStructEntityViewsLists list) where T : struct
            {
                Dictionary <int, IFasterList> dic;

                if (list._collection.TryGetValue(typeof(T), out dic))
                {
                    return(dic);
                }

                dic = new Dictionary <int, IFasterList>();

                list._collection.Add(typeof(T), dic);

                return(dic);
            }
Exemplo n.º 2
0
            internal static IFasterList GetList <T>(SharedGroupedStructEntityViewsLists list, int groupID) where T : struct
            {
                Dictionary <int, IFasterList> dic = GetGroup <T>(list);
                IFasterList localList;

                if (dic.TryGetValue(groupID, out localList))
                {
                    return(localList);
                }

                localList = new FasterList <T>();
                dic.Add(groupID, localList);

                return(localList);
            }
Exemplo n.º 3
0
 public StructGroupEntityViews(SharedGroupedStructEntityViewsLists container)
 {
     _container = container;
     indices    = new Dictionary <int, int>();
 }