Exemple #1
0
        public static Recv_UpdateHAR read(BinaryReader binaryReader)
        {
            Recv_UpdateHAR newObj = new Recv_UpdateHAR();

            newObj.version = binaryReader.ReadUInt32();
            newObj.har     = HAR.read(binaryReader);
            return(newObj);
        }
Exemple #2
0
        public GameEventUpdateHAR(Session session)
            : base(GameEventType.UpdateHAR, GameMessageGroup.UIQueue, session)
        {
            //Console.WriteLine("Sending 0x257 - Update House Access Records (HAR)");

            var har = new HAR();

            Writer.Write(har);
        }
Exemple #3
0
        public static HAR read(BinaryReader binaryReader)
        {
            HAR newObj = new HAR();

            newObj._bitmask     = binaryReader.ReadUInt32();
            newObj._monarch_iid = binaryReader.ReadUInt32();
            newObj._buckets     = binaryReader.ReadUInt16();
            newObj._table_size  = binaryReader.ReadUInt16();
            newObj._guest_table = new List <GuestInfo>();
            for (int i = 0; i < newObj._buckets; i++)
            {
                newObj._guest_table.Add(GuestInfo.read(binaryReader));
            }
            newObj._roommate_list = new PList <uint>();
            newObj._roommate_list = PList <uint> .read(binaryReader);

            return(newObj);
        }