Files
2025-01-25 04:38:09 +08:00

40 lines
835 B
Lua
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

--作者: ws,gzg
--日期: 2020-02-18
--文件: XmRateInfo.lua
--模块: XmRateInfo
--描述: 仙盟战中仙盟的评价信息
-----------------------------------------------
local XmRateInfo =
{
--名字
Name = "",
--评级等级
Type = 0,
--标记: 0晋级 1 普通 2降级
Flag = 0
}
function XmRateInfo:New(pb_msg)
if pb_msg then
local _m = Utils.DeepCopy(self);
_m.Name = pb_msg.guildName;
_m.Type = pb_msg.type;
_m.Flag = pb_msg.flag;
return _m;
else
return nil;
end
end
--对xmRateInfoList进行排序
function XmRateInfo:SortList(rateList)
if rateList ~= nil then
rateList:Sort(
function(a,b)
return a.Flag < b.Flag;
end
);
end
end
return XmRateInfo;