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