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); } }
internal void OnEntityComponentAdded(object sender, EntityComponentChangedEventArgs args) { AddEntityToSystems(args.Source); }
private void OnEntityComponentAdded(EntityComponentChangedEventArgs args) { RaiseEvent(EntityComponentAdded, this, args); }