SmartboyDevelopments.Haxxit.GameEngine.GameState.HandleActions C# (CSharp) Method

HandleActions() protected method

protected HandleActions ( GameEngine engine, IEnumerable actions ) : void
engine GameEngine
actions IEnumerable
return void
        protected virtual void HandleActions(GameEngine engine, IEnumerable<StateAction> actions)
        {
            if (actions == null || actions.Count() == 0)
                return;
            foreach (StateAction action in actions)
            {
                if(action != null)
                    action.Execute(engine);
            }
        }