internal void PushValue() { switch (_type) { case VariableType.Float: GameInterface.Script_PushFloat(Convert.ToSingle(_value)); break; case VariableType.Integer: GameInterface.Script_PushInt(Convert.ToInt32(_value)); break; case VariableType.String: GameInterface.Script_PushString(Convert.ToString(_value)); break; case VariableType.Entity: GameInterface.Script_PushEntRef(((Entity)_value).EntRef); break; case VariableType.Vector: var v = (Vector3)_value; GameInterface.Script_PushVector(v.X, v.Y, v.Z); break; } }