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