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