예제 #1
0
 internal void OnEntityComponentRemoved(object sender, EntityComponentChangedEventArgs args)
 {
     foreach (var system in (from s in scene.SystemMap.SelectAllSystems(args.Source)
                             where s.Selector.Supports(args.Component.KeyPart) && s.IsEntityRegistered(args.Source) select s))
     {
         system.UnregisterEntity(args.Source);
     }
 }
예제 #2
0
 internal void OnEntityComponentAdded(object sender, EntityComponentChangedEventArgs args)
 {
     AddEntityToSystems(args.Source);
 }
예제 #3
0
 private void OnEntityComponentAdded(EntityComponentChangedEventArgs args)
 {
     RaiseEvent(EntityComponentAdded, this, args);
 }