public static CharacterHash read(BinaryReader binaryReader) { var newObj = new CharacterHash(); newObj.i_character_id = binaryReader.ReadUInt32(); newObj.character_info = SquelchInfo.read(binaryReader); return(newObj); }
public static SetSquelchDB read(BinaryReader binaryReader) { var newObj = new SetSquelchDB(); // Note: Even if the user applies a squelch to an account using the ModifyAccountSquelch message (0x0059) it does not appear // in this account squelch info section but rather in the character squelch info section of the server response which comes next. // It appears based on pcaps that the account squelch info will always be 0 and therefore will not need to be unpacked. newObj.account_num_buckets = binaryReader.ReadUInt16(); newObj.account_table_size = binaryReader.ReadUInt16(); newObj.character_num_buckets = binaryReader.ReadUInt16(); newObj.character_table_size = binaryReader.ReadUInt16(); for (int i = 0; i < newObj.character_num_buckets; i++) { newObj.character_list.Add(CharacterHash.read(binaryReader)); } newObj.global_squelch = SquelchInfo.read(binaryReader); return(newObj); }