static int IntToEnum(IntPtr L) { int arg0 = (int)LuaDLL.lua_tonumber(L, 1); fogs.proto.msg.GoodsCategory o = (fogs.proto.msg.GoodsCategory)arg0; LuaScriptMgr.Push(L, o); return(1); }
static int GetCategory(IntPtr L) { LuaScriptMgr.CheckArgsCount(L, 1); Goods obj = (Goods)LuaScriptMgr.GetNetObjectSelf(L, 1, "Goods"); fogs.proto.msg.GoodsCategory o = obj.GetCategory(); LuaScriptMgr.Push(L, o); return(1); }