public RawComponentMapProxy(IRawComponentMap <TEntityKey, TComponent> map)
 {
     if (map == null)
     {
         throw new ArgumentNullException(nameof(map));
     }
     _map = map;
 }
Esempio n. 2
0
 public void Add <TComponent>(IRawComponentMap <TEntityKey, TComponent> map)
     where TComponent : struct
 {
     if (map == null)
     {
         throw new ArgumentNullException(nameof(map));
     }
     _rawMapLookup.Add(typeof(TComponent), map);
     _mapLookup.Add(typeof(Nullable <>).MakeGenericType(typeof(TComponent)),
                    new RawComponentMapProxy <TEntityKey, TComponent>(map));
 }