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); }
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); }
public StructGroupEntityViews(SharedGroupedStructEntityViewsLists container) { _container = container; indices = new Dictionary <int, int>(); }