Пример #1
0
 public TagTimerSystem() {
     EntityController.RegisterReceiver(
         new EventReceiverFilter(
             this, new[] {
                 typeof(ApplyTagImpact)
             }));
 }
Пример #2
0
 public CameraSystem()
 {
     EntityController.RegisterReceiver(new EventReceiverFilter(this, new[] {
         typeof(CameraShakeOnDamage), typeof(PlayerCameraComponent)
     }));
     BuildEventDictionary();
 }
Пример #3
0
 public EntityFlightSystem()
 {
     EntityController.RegisterReceiver(new EventReceiverFilter(this, new[] {
         typeof(FlightMoveInput)
     }));
     _del = UpdateNode;
 }
Пример #4
0
 public SpriteSystem()
 {
     EntityController.RegisterReceiver(new EventReceiverFilter(this, new[] {
         typeof(SpriteColorComponent)
     }));
     _del = UpdateSprite;
 }
Пример #5
0
        public EquipmentSystem()
        {
            NodeFilter <EquipmentNode> .Setup(EquipmentNode.GetTypes());

            EntityController.RegisterReceiver(new EventReceiverFilter(this, new[] {
                typeof(Equipment)
            }));
        }
Пример #6
0
        public EquipmentSystem()
        {
            TemplateFilter <EquipmentTemplate> .Setup();

            EntityController.RegisterReceiver(new EventReceiverFilter(this, new[] {
                typeof(Equipment)
            }));
        }
Пример #7
0
 public RadiusSystem()
 {
     EntityController.RegisterReceiver(
         new EventReceiverFilter(
             this, new[] {
         typeof(ImpactRadius)
     }));
 }
Пример #8
0
 public AnimationGraphSystem()
 {
     EntityController.RegisterReceiver(new EventReceiverFilter(this, new [] {
         typeof(AnimationGraphComponent)
     }));
     _graphList = EntityController.GetComponentArray <AnimationGraphComponent>();
     _graphDel  = RunUpdate;
 }
Пример #9
0
 public DamageSystem()
 {
     EntityController.RegisterReceiver(
         new EventReceiverFilter(
             this, new[] {
         typeof(DamageImpact)
     }));
 }
Пример #10
0
 public LeachVitalSystem()
 {
     EntityController.RegisterReceiver(
         new EventReceiverFilter(
             this, new[] {
         typeof(LeachImpact)
     }));
 }
Пример #11
0
 public HealingSystem()
 {
     EntityController.RegisterReceiver(
         new EventReceiverFilter(
             this, new[] {
         typeof(HealImpact)
     }));
 }
Пример #12
0
 public TransformSystem()
 {
     EntityController.RegisterReceiver(new EventReceiverFilter(this, new [] { typeof(DisableTrOnDeath) }));
     _moveDel         = RunUpdate;
     _setMoveDel      = RunUpdate;
     _setRotDel       = RunUpdate;
     _setLocalMoveDel = RunUpdate;
     _setLocalRotDel  = RunUpdate;
 }
Пример #13
0
 public DeathSystem()
 {
     EntityController.RegisterReceiver(
         new EventReceiverFilter(
             this, new[] {
         typeof(InstantKillImpact),
         typeof(RaiseDeadImpact)
     }));
 }
        public FirstPersonAnimationSystem()
        {
            TemplateFilter <FirstPersonAnimationTemplate> .Setup();

            _animTemplates = EntityController.GetTemplateList <FirstPersonAnimationTemplate>();
            EntityController.RegisterReceiver(new EventReceiverFilter(this, new [] {
                typeof(WeaponModelComponent),
                typeof(PoseAnimatorComponent)
            }));
        }
Пример #15
0
        public SensorSystem()
        {
            NodeFilter <SensorDetectingNode> .Setup(SensorDetectingNode.GetTypes());

            _sensorNodes = EntityController.GetNodeList <SensorDetectingNode>();
            NodeFilter <UnitySensorNode> .Setup(UnitySensorNode.GetTypes());

            _unitySensorNodes = EntityController.GetNodeList <UnitySensorNode>();
            EntityController.RegisterReceiver(new EventReceiverFilter(this, new[] {
                typeof(SensorTargetsComponent)
            }));
        }
Пример #16
0
        public SensorSystem()
        {
            _sensorDel      = RunUpdate;
            _unitySensorDel = RunUpdate;
            TemplateFilter <SensorDetectingTemplate> .Setup();

            _sensorTemplates = EntityController.GetTemplateList <SensorDetectingTemplate>();
            TemplateFilter <UnitySensorTemplate> .Setup();

            _unitySensorTemplates = EntityController.GetTemplateList <UnitySensorTemplate>();
            EntityController.RegisterReceiver(new EventReceiverFilter(this, new[] {
                typeof(SensorTargetsComponent)
            }));
        }
Пример #17
0
 public StatusUpdateSystem()
 {
     EntityController.RegisterReceiver(new EventReceiverFilter(this, new[] {
         typeof(StatusUpdateComponent), typeof(FloatingTextStatusComponent), typeof(FloatingTextCombatComponent),
     }));
 }
Пример #18
0
 public CameraSystem()
 {
     EntityController.RegisterReceiver(new EventReceiverFilter(this, new[] {
         typeof(CameraShakeOnDamage)
     }));
 }
Пример #19
0
 public RadiusSystem()
 {
     EntityController.RegisterReceiver(new EventReceiverFilter(this, new[] { typeof(ImpactRadius) }));
     World.Get <RulesSystem>().AddHandler <ImpactEvent>(this);
 }
Пример #20
0
 public SkillSystem()
 {
     EntityController.RegisterReceiver(new EventReceiverFilter(this, new[] {
         typeof(SkillRequirement)
     }));
 }
Пример #21
0
 public ModifierSystem()
 {
     EntityController.RegisterReceiver(new EventReceiverFilter(this, new[] {
         typeof(AddModImpact)
     }));
 }
Пример #22
0
 public AnimatorSystem()
 {
     EntityController.RegisterReceiver(new EventReceiverFilter(this, new[] {
         typeof(DeathAnimation), typeof(HurtAnimation),
     }));
 }
Пример #23
0
 public InventorySystem()
 {
     EntityController.RegisterReceiver(new EventReceiverFilter(this, new[] {
         typeof(InventoryItem)
     }));
 }
Пример #24
0
 public MoveTargetSystem()
 {
     EntityController.RegisterReceiver(new EventReceiverFilter(this, new[] {
         typeof(MoveTarget)
     }));
 }
Пример #25
0
 public ModelSystem()
 {
     EntityController.RegisterReceiver(new EventReceiverFilter(this, new[] {
         typeof(ModelLoaderComponent)
     }));
 }
Пример #26
0
 public UnityParticleSystem()
 {
     EntityController.RegisterReceiver(new EventReceiverFilter(this, new[] {
         typeof(HitParticlesComponent), typeof(ParticleTrailComponent),
     }));
 }
Пример #27
0
 public SpellSystem()
 {
     EntityController.RegisterReceiver(new EventReceiverFilter(this, new[] {
         typeof(SpellsContainer)
     }));
 }
Пример #28
0
 public TransformSystem()
 {
     EntityController.RegisterReceiver(new EventReceiverFilter(this, new [] { typeof(DisableTrOnDeath) }));
 }
Пример #29
0
 public PhysicsSystem()
 {
     EntityController.RegisterReceiver(new EventReceiverFilter(this, new[] {
         typeof(PhysicsOnDamageComponent)
     }));
 }
Пример #30
0
 public SpawnSystem()
 {
     EntityController.RegisterReceiver(new EventReceiverFilter(this, new[] {
         typeof(DespawnTimer)
     }));
 }