예제 #1
0
 public bool RemoveEntity(IRegistrable _entity)
 {
     var aEntityType = _entity.GetType();
     var networkId = _entity.GetUniqueKey();
     return TypeRegisterMap[aEntityType].Remove(networkId);
 }
예제 #2
0
 public void AddEntity(IRegistrable _entity)
 {
     var aEntityType = _entity.GetType();
     var networkId = _entity.GetUniqueKey();
     TypeRegisterMap[aEntityType][networkId] = _entity;
 }