public static KillerDeathNotice read(BinaryReader binaryReader) { KillerDeathNotice newObj = new KillerDeathNotice(); newObj.DeathMessageText = 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.PLAYER_DEATH_EVENT: { PlayerDeathEvent message = PlayerDeathEvent.read(messageDataReader); message.contributeToTreeView(outputTreeView); break; } case PacketOpcode.VICTIM_NOTIFICATION_EVENT: { VictimDeathNotice message = VictimDeathNotice.read(messageDataReader); message.contributeToTreeView(outputTreeView); break; } case PacketOpcode.KILLER_NOTIFICATION_EVENT: { KillerDeathNotice message = KillerDeathNotice.read(messageDataReader); message.contributeToTreeView(outputTreeView); break; } default: { handled = false; break; } } return(handled); }