示例#1
0
        // PUBLIC METHODS: ------------------------------------------------------------------------

        public object Get(GameObject invoker)
        {
            ListVariables list   = this.GetListVariables(invoker);
            Variable      result = VariablesManager.GetListItem(list, this.select, this.index);

            return(result != null?result.Get() : null);
        }
示例#2
0
        // PUBLIC METHODS: ------------------------------------------------------------------------

        public override object Get(GameObject invoker = null)
        {
            return(VariablesManager.GetLocal(
                       this.GetGameObject(invoker),
                       this.name,
                       this.inChildren
                       ));
        }
示例#3
0
 public override void Set(object value, GameObject invoker = null)
 {
     VariablesManager.SetLocal(
         this.GetGameObject(invoker),
         this.name,
         value,
         this.inChildren
         );
 }
示例#4
0
        public override string ToStringValue(GameObject invoker = null)
        {
            object value = VariablesManager.GetLocal(
                this.GetGameObject(invoker),
                this.name,
                this.inChildren
                );

            return(value != null ? value.ToString() : "null");
        }
示例#5
0
 public static void ListClear(ListVariables target)
 {
     if (target == null)
     {
         return;
     }
     for (int i = target.variables.Count - 1; i >= 0; --i)
     {
         VariablesManager.ListRemove(target, i);
     }
 }
        public override string ToStringValue(GameObject invoker = null)
        {
            object value = VariablesManager.GetGlobal(this.name);

            return(value != null ? value.ToString() : "null");
        }
 public override void Set(object value, GameObject invoker = null)
 {
     VariablesManager.SetGlobal(this.name, value);
 }
        // PUBLIC METHODS: ------------------------------------------------------------------------

        public override object Get(GameObject invoker = null)
        {
            return(VariablesManager.GetGlobal(this.name));
        }
        public override Variable.DataType GetDataType(GameObject invoker = null)
        {
            GameObject vars = this.GetGameObject(invoker);

            return(VariablesManager.GetLocalType(vars, this.name, true));
        }
示例#10
0
        // EXECUTABLE: ----------------------------------------------------------------------------

        public override bool InstantExecute(GameObject target, IAction[] actions, int index)
        {
            VariablesManager.Reset();
            return(true);
        }
示例#11
0
 public override Variable.DataType GetDataType(GameObject invoker = null)
 {
     return(VariablesManager.GetGlobalType(this.name, true));
 }