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; } }
public ScriptVariable() { Value = 0; Name = "NULL"; Type = Var_Types.INT; State = Var_State.PUBLIC; }
public ScriptVariable() { Value = (int)0; Name = "NULL"; Type = Var_Types.INT; State = Var_State.PUBLIC; }
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; } }