protected virtual void HealthSystemAttackEventHandler(test.AttackEvent data, Player group) { var handler = HealthSystemAttackEventHandlerInstance; handler.System = this; handler.Event = data; handler.Group = group; handler.Execute(); }
protected void HealthSystemAttackEventFilter(test.AttackEvent data) { var PlayerItems = PlayerManager.Components; for (var PlayerIndex = 0 ; PlayerIndex < PlayerItems.Count; PlayerIndex++ ) { if (!PlayerItems[PlayerIndex].Enabled) { continue; } this.HealthSystemAttackEventHandler(data, PlayerItems[PlayerIndex]); } }