public static AllegianceInfoResponseEvent read(BinaryReader binaryReader) { AllegianceInfoResponseEvent newObj = new AllegianceInfoResponseEvent(); newObj.target = binaryReader.ReadUInt32(); newObj.prof = AllegianceProfile.read(binaryReader); return(newObj); }
public static AllegianceUpdate read(BinaryReader binaryReader) { AllegianceUpdate newObj = new AllegianceUpdate(); newObj.allegianceProfile = AllegianceProfile.read(binaryReader); newObj.etype = binaryReader.ReadUInt32(); return(newObj); }
public static AllegianceProfile read(BinaryReader binaryReader) { AllegianceProfile newObj = new AllegianceProfile(); newObj._total_members = binaryReader.ReadUInt32(); newObj._total_vassals = binaryReader.ReadUInt32(); // TODO: Read in profile return(newObj); }
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); }
/// <summary> /// Returns info related to a player's monarch, patron, and vassals. /// </summary> public GameEventAllegianceUpdate(Session session, Allegiance allegiance, AllegianceNode node) : base(GameEventType.AllegianceUpdate, GameMessageGroup.UIQueue, session) { var startPos = Writer.BaseStream.Position; // uint - rank - this player's rank within their allegiance // AllegianceProfile - prof uint rank = (node == null) ? 0 : node.Rank; //Console.WriteLine("Rank: " + rank); Writer.Write(rank); var prof = new AllegianceProfile(allegiance, node); Writer.Write(prof); var endPos = Writer.BaseStream.Position; var totalBytes = endPos - startPos; //Console.WriteLine("Allegiance bytes written: " + totalBytes); }
public GameEventAllegianceInfoResponse(Session session, uint playerGuid, AllegianceProfile profile) : base(GameEventType.AllegianceInfoResponse, GameMessageGroup.UIQueue, session) { Writer.Write(playerGuid); Writer.Write(profile); }