public static void Write(this BinaryWriter writer, AllegianceProfile profile)
        {
            // uint - totalMembers - The number of allegiance members.
            // uint - totalVassals - Your personal number of followers.
            // AllegianceHeirarchy - allegianceHeirarchy

            uint totalMembers = 0;
            uint totalVassals = 0;

            if (profile.Allegiance != null && profile.Node != null)
            {
                totalMembers = (uint)profile.Node.Monarch.TotalFollowers;
                totalVassals = (uint)profile.Node.TotalFollowers;
            }

            writer.Write(totalMembers);
            writer.Write(totalVassals);

            var allegianceHeirarchy = new AllegianceHeirarchy(profile);

            writer.Write(allegianceHeirarchy);
        }
Exemple #2
0
 public AllegianceHierarchy(AllegianceProfile profile)
 {
     Profile = profile;
 }