public static RemoveAllegianceOfficer read(BinaryReader binaryReader) { RemoveAllegianceOfficer newObj = new RemoveAllegianceOfficer(); newObj.i_char_name = PStringChar.read(binaryReader); return(newObj); }
public override bool acceptMessageData(BinaryReader messageDataReader, TreeView outputTreeView) { bool handled = true; PacketOpcode opcode = Util.readOpcode(messageDataReader); switch (opcode) { case PacketOpcode.Evt_Allegiance__QueryAllegianceName_ID: case PacketOpcode.Evt_Allegiance__ClearAllegianceName_ID: case PacketOpcode.Evt_Allegiance__ListAllegianceOfficerTitles_ID: case PacketOpcode.Evt_Allegiance__ClearAllegianceOfficerTitles_ID: case PacketOpcode.Evt_Allegiance__QueryMotd_ID: case PacketOpcode.Evt_Allegiance__ClearMotd_ID: case PacketOpcode.Evt_Allegiance__ListAllegianceBans_ID: case PacketOpcode.Evt_Allegiance__ListAllegianceOfficers_ID: case PacketOpcode.Evt_Allegiance__ClearAllegianceOfficers_ID: case PacketOpcode.Evt_Allegiance__RecallAllegianceHometown_ID: { EmptyMessage message = new EmptyMessage(opcode); message.contributeToTreeView(outputTreeView); break; } case PacketOpcode.Evt_Allegiance__AllegianceUpdateAborted_ID: { AllegianceUpdateAborted message = AllegianceUpdateAborted.read(messageDataReader); message.contributeToTreeView(outputTreeView); break; } case PacketOpcode.Evt_Allegiance__SwearAllegiance_ID: { SwearAllegiance message = SwearAllegiance.read(messageDataReader); message.contributeToTreeView(outputTreeView); break; } case PacketOpcode.Evt_Allegiance__BreakAllegiance_ID: { BreakAllegiance message = BreakAllegiance.read(messageDataReader); message.contributeToTreeView(outputTreeView); break; } case PacketOpcode.Evt_Allegiance__UpdateRequest_ID: { UpdateRequest message = UpdateRequest.read(messageDataReader); message.contributeToTreeView(outputTreeView); break; } case PacketOpcode.ALLEGIANCE_UPDATE_EVENT: { AllegianceUpdate message = AllegianceUpdate.read(messageDataReader); message.contributeToTreeView(outputTreeView); break; } case PacketOpcode.Evt_Allegiance__SetAllegianceName_ID: { SetAllegianceName message = SetAllegianceName.read(messageDataReader); message.contributeToTreeView(outputTreeView); break; } case PacketOpcode.Evt_Allegiance__SetAllegianceOfficer_ID: { SetAllegianceOfficer message = SetAllegianceOfficer.read(messageDataReader); message.contributeToTreeView(outputTreeView); break; } case PacketOpcode.Evt_Allegiance__SetAllegianceOfficerTitle_ID: { SetAllegianceOfficerTitle message = SetAllegianceOfficerTitle.read(messageDataReader); message.contributeToTreeView(outputTreeView); break; } case PacketOpcode.Evt_Allegiance__DoAllegianceLockAction_ID: { DoAllegianceLockAction message = DoAllegianceLockAction.read(messageDataReader); message.contributeToTreeView(outputTreeView); break; } case PacketOpcode.Evt_Allegiance__SetAllegianceApprovedVassal_ID: { SetAllegianceApprovedVassal message = SetAllegianceApprovedVassal.read(messageDataReader); message.contributeToTreeView(outputTreeView); break; } case PacketOpcode.Evt_Allegiance__AllegianceChatGag_ID: { AllegianceChatGag message = AllegianceChatGag.read(messageDataReader); message.contributeToTreeView(outputTreeView); break; } case PacketOpcode.Evt_Allegiance__DoAllegianceHouseAction_ID: { DoAllegianceHouseAction message = DoAllegianceHouseAction.read(messageDataReader); message.contributeToTreeView(outputTreeView); break; } // TODO: PacketOpcode.Evt_Allegiance__AllegianceUpdateDone_ID case PacketOpcode.Evt_Allegiance__SetMotd_ID: { SetMotd message = SetMotd.read(messageDataReader); message.contributeToTreeView(outputTreeView); break; } case PacketOpcode.Evt_Allegiance__BreakAllegianceBoot_ID: { BreakAllegianceBoot message = BreakAllegianceBoot.read(messageDataReader); message.contributeToTreeView(outputTreeView); break; } case PacketOpcode.Evt_Allegiance__AllegianceLoginNotificationEvent_ID: { AllegianceLoginNotificationEvent message = AllegianceLoginNotificationEvent.read(messageDataReader); message.contributeToTreeView(outputTreeView); break; } case PacketOpcode.Evt_Allegiance__AllegianceInfoRequest_ID: { AllegianceInfoRequest message = AllegianceInfoRequest.read(messageDataReader); message.contributeToTreeView(outputTreeView); break; } case PacketOpcode.Evt_Allegiance__AllegianceInfoResponseEvent_ID: { AllegianceInfoResponseEvent message = AllegianceInfoResponseEvent.read(messageDataReader); message.contributeToTreeView(outputTreeView); break; } case PacketOpcode.Evt_Allegiance__AllegianceChatBoot_ID: { AllegianceChatBoot message = AllegianceChatBoot.read(messageDataReader); message.contributeToTreeView(outputTreeView); break; } case PacketOpcode.Evt_Allegiance__AddAllegianceBan_ID: { AddAllegianceBan message = AddAllegianceBan.read(messageDataReader); message.contributeToTreeView(outputTreeView); break; } case PacketOpcode.Evt_Allegiance__RemoveAllegianceBan_ID: { RemoveAllegianceBan message = RemoveAllegianceBan.read(messageDataReader); message.contributeToTreeView(outputTreeView); break; } // TODO: PacketOpcode.Evt_Allegiance__AddAllegianceOfficer_ID case PacketOpcode.Evt_Allegiance__RemoveAllegianceOfficer_ID: { RemoveAllegianceOfficer message = RemoveAllegianceOfficer.read(messageDataReader); message.contributeToTreeView(outputTreeView); break; } default: { handled = false; break; } } return(handled); }