public void UpdateEntity(Entity e, Entity update) { HashSet <string> updated = new HashSet <string>(); OnUpdateEntity?.Invoke(e, update, updated); foreach (var comp in update.Components) { if (updated.Contains(comp.Key)) { continue; } e.Set(comp.Key, comp.Value); } }
public void UpdateEntity(EntityInfo entityInfo) { OnUpdateEntity?.Invoke(entityInfo); }