public void Serialize(IGenericWriter writer) { writer.Write(0); // Version writer.Write(Name); writer.Write(m_Leader); writer.WriteGuildList(m_Members, true); writer.WriteGuildList(m_PendingMembers, true); if (!Alliances.ContainsKey(Name.ToLower())) { Alliances.Add(Name.ToLower(), this); } }
public AllianceInfo(Guild leader, string name, Guild partner) { m_Leader = leader; Name = name; m_Members = new List <Guild>(); m_PendingMembers = new List <Guild>(); leader.Alliance = this; partner.Alliance = this; if (!Alliances.ContainsKey(Name.ToLower())) { Alliances.Add(Name.ToLower(), this); } }