コード例 #1
0
 public override void OnEntityRemoved(Entity entity)
 {
     foreach (ComponentBody item in entity.FindComponents <ComponentBody>())
     {
         RemoveBody(item);
     }
 }
コード例 #2
0
 public override void OnEntityRemoved(Entity entity)
 {
     foreach (ComponentModel item in entity.FindComponents <ComponentModel>())
     {
         m_componentModels.Remove(item);
     }
 }
コード例 #3
0
 public override void OnEntityRemoved(Entity entity)
 {
     foreach (IDrawable item in entity.FindComponents <IDrawable>())
     {
         RemoveDrawable(item);
     }
 }
コード例 #4
0
 public override void OnEntityRemoved(Entity entity)
 {
     foreach (ComponentSpawn item in entity.FindComponents <ComponentSpawn>())
     {
         m_spawns.Remove(item);
     }
 }
コード例 #5
0
 public override void OnEntityAdded(Entity entity)
 {
     foreach (ComponentSpawn item in entity.FindComponents <ComponentSpawn>())
     {
         m_spawns.Add(item, value: true);
     }
 }
コード例 #6
0
 public override void OnEntityAdded(Entity entity)
 {
     foreach (IUpdateable item in entity.FindComponents <IUpdateable>())
     {
         AddUpdateable(item);
     }
 }
コード例 #7
0
 public override void OnEntityRemoved(Entity entity)
 {
     foreach (ComponentName item in entity.FindComponents <ComponentName>())
     {
         m_componentsByName.Remove(item.Name);
     }
 }
コード例 #8
0
 public override void OnEntityAdded(Entity entity)
 {
     foreach (ComponentName item in entity.FindComponents <ComponentName>())
     {
         m_componentsByName.Add(item.Name, item);
     }
 }
コード例 #9
0
 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);
     }
 }