Esempio n. 1
0
        public override ActionEnd End(List <Action> actions)
        {
            if (getVarMethod == GetVarMethod.GlobalVariable ||
                getVarMethod == GetVarMethod.LocalVariable ||
                getVarMethod == GetVarMethod.ComponentVariable)
            {
                if (runtimeCompareVariable == null)
                {
                    LogWarning("The 'Variable: Check' Action halted the ActionList because it cannot find the " + getVarMethod.ToString() + " to compare with.");
                    return(GenerateStopActionEnd());
                }
            }

            if (runtimeVariable != null)
            {
                return(ProcessResult(CheckCondition(runtimeVariable, runtimeCompareVariable), actions));
            }

            LogWarning("The 'Variable: Check' Action halted the ActionList because it cannot find the " + location.ToString() + " Variable with an ID of " + variableID);
            return(GenerateStopActionEnd());
        }