protected override LuaValue _OnGetLuaValue() { LuaInteger rtn = new LuaInteger(); rtn.init(_isEmpty ? -1 : _data); return(rtn); }
protected override LuaValue _OnGetLuaValue() { switch (_type) { case NumberType.Integer: LuaInteger iRtn = new LuaInteger(); iRtn.init(_isEmpty ? 0 : _iData); return(iRtn); case NumberType.Double: LuaDouble rtn = new LuaDouble(); rtn.init(_isEmpty ? 0 : _data); return(rtn); } Debug.Exception("NumberVal类型错误"); return(new LuaNil()); }