示例#1
0
        public ScriptVariable(object value, string name, Var_Types type, Var_State state)
        {
            Name  = name;
            Type  = type;
            State = state;

            Value = value;

            switch (Type)
            {
            case Var_Types.BYTEBUFFER:
                if (value == null)
                {
                    Value = null;
                }
                else
                {
                    Value = new ByteBuffer((ByteBuffer)value);
                }

                break;

            default:
                Value = value;
                break;
            }
        }
示例#2
0
 public ScriptVariable()
 {
     Value = 0;
     Name  = "NULL";
     Type  = Var_Types.INT;
     State = Var_State.PUBLIC;
 }
示例#3
0
		public ScriptVariable()
		{
			Value = (int)0;
			Name = "NULL";
			Type = Var_Types.INT;
            State = Var_State.PUBLIC;
		}
示例#4
0
        public ScriptVariable(object value, string name, Var_Types type, Var_State state)
        {
            Name = name;
            Type = type;
            State = state;

            Value = value;

            switch(Type)
            {
                case Var_Types.BYTEBUFFER:
                    if (value == null)
                        Value = null;
                    else
                        Value = new ByteBuffer((ByteBuffer)value);
                    break;
                default:
                    Value = value;
                    break;
            }
        }