Ejemplo n.º 1
0
 public RawComponentMapProxy(IRawComponentMap <TEntityKey, TComponent> map)
 {
     if (map == null)
     {
         throw new ArgumentNullException(nameof(map));
     }
     _map = map;
 }
Ejemplo 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));
 }