/// <summary> /// 填充物品信息 /// </summary> private static void FillBaseItemInfo(s_itemtypeInfo info, ref ItemTypeInfo I) { if (I == null || info == null) { return; } I.SetType(info.type); I.itemType = info.id; I.m_stype = info.stype; I.m_Icon = info.icon; I.m_Quality = info.quality; I.m_Name = info.name; I.m_Supperpose_limit = info.superpose_limit; I.m_isuser = info.isuse; I.m_level = info.level; I.m_money = info.money; I.m_emoney = info.emoney; I.m_sellemoney = info.sellmoney; I.m_title = info.title; I.m_message = info.message; I.m_gtype = info.gtype; I.m_gid = info.gid; I.m_args = info.args; I.m_func = info.func; }
public static ItemTypeInfo GetItemInfo(s_itemtypeInfo info) { if (info == null) { return(null); } ItemTypeInfo I = new ItemTypeInfo(); I.SetType(info.type); I.m_stype = info.stype; I.m_Icon = info.icon; I.m_Quality = info.quality; I.m_Name = info.name; I.m_Supperpose_limit = info.superpose_limit; I.m_isuser = info.isuse; I.m_level = info.level; I.m_money = info.money; I.m_emoney = info.emoney; I.m_sellemoney = info.sellmoney; I.m_title = info.title; I.m_message = info.message; I.m_gtype = info.gtype; I.m_gid = info.gid; return(I); }