public override void OnEntityRemoved(Entity entity) { foreach (ComponentBody item in entity.FindComponents <ComponentBody>()) { RemoveBody(item); } }
public override void OnEntityRemoved(Entity entity) { foreach (ComponentModel item in entity.FindComponents <ComponentModel>()) { m_componentModels.Remove(item); } }
public override void OnEntityRemoved(Entity entity) { foreach (IDrawable item in entity.FindComponents <IDrawable>()) { RemoveDrawable(item); } }
public override void OnEntityRemoved(Entity entity) { foreach (ComponentSpawn item in entity.FindComponents <ComponentSpawn>()) { m_spawns.Remove(item); } }
public override void OnEntityAdded(Entity entity) { foreach (ComponentSpawn item in entity.FindComponents <ComponentSpawn>()) { m_spawns.Add(item, value: true); } }
public override void OnEntityAdded(Entity entity) { foreach (IUpdateable item in entity.FindComponents <IUpdateable>()) { AddUpdateable(item); } }
public override void OnEntityRemoved(Entity entity) { foreach (ComponentName item in entity.FindComponents <ComponentName>()) { m_componentsByName.Remove(item.Name); } }
public override void OnEntityAdded(Entity entity) { foreach (ComponentName item in entity.FindComponents <ComponentName>()) { m_componentsByName.Add(item.Name, item); } }
public override void OnEntityAdded(Entity entity) { foreach (ComponentModel item in entity.FindComponents <ComponentModel>()) { ModelData value = new ModelData { ComponentModel = item, ComponentBody = item.Entity.FindComponent <ComponentBody>(), Light = m_subsystemSky.SkyLightIntensity }; m_componentModels.Add(item, value); } }