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

            EntityController.RegisterReceiver(new EventReceiverFilter(this, new[] {
                typeof(Equipment)
            }));
        }
Ejemplo n.º 6
0
        public EquipmentSystem()
        {
            TemplateFilter <EquipmentTemplate> .Setup();

            EntityController.RegisterReceiver(new EventReceiverFilter(this, new[] {
                typeof(Equipment)
            }));
        }
Ejemplo n.º 7
0
 public RadiusSystem()
 {
     EntityController.RegisterReceiver(
         new EventReceiverFilter(
             this, new[] {
         typeof(ImpactRadius)
     }));
 }
Ejemplo n.º 8
0
 public AnimationGraphSystem()
 {
     EntityController.RegisterReceiver(new EventReceiverFilter(this, new [] {
         typeof(AnimationGraphComponent)
     }));
     _graphList = EntityController.GetComponentArray <AnimationGraphComponent>();
     _graphDel  = RunUpdate;
 }
Ejemplo n.º 9
0
 public DamageSystem()
 {
     EntityController.RegisterReceiver(
         new EventReceiverFilter(
             this, new[] {
         typeof(DamageImpact)
     }));
 }
Ejemplo n.º 10
0
 public LeachVitalSystem()
 {
     EntityController.RegisterReceiver(
         new EventReceiverFilter(
             this, new[] {
         typeof(LeachImpact)
     }));
 }
Ejemplo n.º 11
0
 public HealingSystem()
 {
     EntityController.RegisterReceiver(
         new EventReceiverFilter(
             this, new[] {
         typeof(HealImpact)
     }));
 }
Ejemplo n.º 12
0
 public TransformSystem()
 {
     EntityController.RegisterReceiver(new EventReceiverFilter(this, new [] { typeof(DisableTrOnDeath) }));
     _moveDel         = RunUpdate;
     _setMoveDel      = RunUpdate;
     _setRotDel       = RunUpdate;
     _setLocalMoveDel = RunUpdate;
     _setLocalRotDel  = RunUpdate;
 }
Ejemplo n.º 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)
            }));
        }
Ejemplo n.º 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)
            }));
        }
Ejemplo n.º 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)
            }));
        }
Ejemplo n.º 17
0
 public StatusUpdateSystem()
 {
     EntityController.RegisterReceiver(new EventReceiverFilter(this, new[] {
         typeof(StatusUpdateComponent), typeof(FloatingTextStatusComponent), typeof(FloatingTextCombatComponent),
     }));
 }
Ejemplo n.º 18
0
 public CameraSystem()
 {
     EntityController.RegisterReceiver(new EventReceiverFilter(this, new[] {
         typeof(CameraShakeOnDamage)
     }));
 }
Ejemplo n.º 19
0
 public RadiusSystem()
 {
     EntityController.RegisterReceiver(new EventReceiverFilter(this, new[] { typeof(ImpactRadius) }));
     World.Get <RulesSystem>().AddHandler <ImpactEvent>(this);
 }
Ejemplo n.º 20
0
 public SkillSystem()
 {
     EntityController.RegisterReceiver(new EventReceiverFilter(this, new[] {
         typeof(SkillRequirement)
     }));
 }
Ejemplo n.º 21
0
 public ModifierSystem()
 {
     EntityController.RegisterReceiver(new EventReceiverFilter(this, new[] {
         typeof(AddModImpact)
     }));
 }
Ejemplo n.º 22
0
 public AnimatorSystem()
 {
     EntityController.RegisterReceiver(new EventReceiverFilter(this, new[] {
         typeof(DeathAnimation), typeof(HurtAnimation),
     }));
 }
Ejemplo n.º 23
0
 public InventorySystem()
 {
     EntityController.RegisterReceiver(new EventReceiverFilter(this, new[] {
         typeof(InventoryItem)
     }));
 }
Ejemplo n.º 24
0
 public MoveTargetSystem()
 {
     EntityController.RegisterReceiver(new EventReceiverFilter(this, new[] {
         typeof(MoveTarget)
     }));
 }
Ejemplo n.º 25
0
 public ModelSystem()
 {
     EntityController.RegisterReceiver(new EventReceiverFilter(this, new[] {
         typeof(ModelLoaderComponent)
     }));
 }
Ejemplo n.º 26
0
 public UnityParticleSystem()
 {
     EntityController.RegisterReceiver(new EventReceiverFilter(this, new[] {
         typeof(HitParticlesComponent), typeof(ParticleTrailComponent),
     }));
 }
Ejemplo n.º 27
0
 public SpellSystem()
 {
     EntityController.RegisterReceiver(new EventReceiverFilter(this, new[] {
         typeof(SpellsContainer)
     }));
 }
Ejemplo n.º 28
0
 public TransformSystem()
 {
     EntityController.RegisterReceiver(new EventReceiverFilter(this, new [] { typeof(DisableTrOnDeath) }));
 }
Ejemplo n.º 29
0
 public PhysicsSystem()
 {
     EntityController.RegisterReceiver(new EventReceiverFilter(this, new[] {
         typeof(PhysicsOnDamageComponent)
     }));
 }
Ejemplo n.º 30
0
 public SpawnSystem()
 {
     EntityController.RegisterReceiver(new EventReceiverFilter(this, new[] {
         typeof(DespawnTimer)
     }));
 }