public static UpdateLegionMembers ( uint legion_id, |
||
legion_id | uint | |
member | ||
return | uint |
//加入成员 public void AddLegionMembers(uint legion_id, LegionMember members) { if (!mDicInfo.ContainsKey(legion_id)) { return; } uint id = Data.UpdateLegionMembers(legion_id, members); if (id == 0) { return; } members.id = id; mDicInfo[legion_id].list_member.Add(members); }
//更新军团 public void UpdateLegion(LegionInfo info) { if (!mDicInfo.ContainsKey(info.id)) { return; } mDicInfo[info.id] = info; //更新军团长信息 Data.UpdateLegion(info); //更新军团成员信息 for (int i = 0; i < info.list_member.Count; i++) { if (info.list_member[i].boChange) { Data.UpdateLegionMembers(info.id, info.list_member[i]); info.list_member[i].boChange = false; } } }