Example #1
0
        public static AllegianceHierarchy read(BinaryReader binaryReader)
        {
            AllegianceHierarchy newObj = new AllegianceHierarchy();

            newObj.packed_nodes         = binaryReader.ReadUInt16();
            newObj.m_oldVersion         = (AllegianceVersion)binaryReader.ReadUInt16();
            newObj.m_AllegianceOfficers = PackableHashTable <uint, uint> .read(binaryReader);

            newObj.m_OfficerTitles = PList <PStringChar> .read(binaryReader);

            newObj.m_monarchBroadcastTime   = binaryReader.ReadInt32();
            newObj.m_monarchBroadcastsToday = binaryReader.ReadUInt32();
            newObj.m_spokesBroadcastTime    = binaryReader.ReadInt32();
            newObj.m_spokesBroadcastsToday  = binaryReader.ReadUInt32();
            newObj.m_motd            = PStringChar.read(binaryReader);
            newObj.m_motdSetBy       = PStringChar.read(binaryReader);
            newObj.m_chatRoomID      = binaryReader.ReadUInt32();
            newObj.m_BindPoint       = Position.read(binaryReader);
            newObj.m_AllegianceName  = PStringChar.read(binaryReader);
            newObj.m_NameLastSetTime = binaryReader.ReadInt32();
            newObj.m_isLocked        = binaryReader.ReadUInt32();
            newObj.m_ApprovedVassal  = binaryReader.ReadUInt32();
            if (newObj.packed_nodes > 0)
            {
                newObj.m_pMonarch = AllegianceNode.read(binaryReader, newObj.packed_nodes);
            }
            return(newObj);
        }
Example #2
0
        public static AllegianceProfile read(BinaryReader binaryReader)
        {
            AllegianceProfile newObj = new AllegianceProfile();

            newObj._total_members = binaryReader.ReadUInt32();
            newObj._total_vassals = binaryReader.ReadUInt32();
            newObj._allegiance    = AllegianceHierarchy.read(binaryReader);
            return(newObj);
        }
Example #3
0
        // TODO: Read in all the stuff

        public static AllegianceHierarchy read(BinaryReader binaryReader)
        {
            AllegianceHierarchy newObj = new AllegianceHierarchy();

            newObj.m_oldVersion = (AllegianceVersion)binaryReader.ReadByte();
            newObj.m_total      = binaryReader.ReadUInt32();
            // TODO: Read in profile
            return(newObj);
        }