public static TrainAttribute2nd read(BinaryReader binaryReader) { TrainAttribute2nd newObj = new TrainAttribute2nd(); newObj.i_atype = (STypeAttribute2nd)binaryReader.ReadUInt32(); Util.readToAlign(binaryReader); newObj.i_xp_spent = binaryReader.ReadUInt32(); Util.readToAlign(binaryReader); return(newObj); }
public override bool acceptMessageData(BinaryReader messageDataReader, TreeView outputTreeView) { bool handled = true; PacketOpcode opcode = Util.readOpcode(messageDataReader); switch (opcode) { case PacketOpcode.Evt_Train__TrainAttribute2nd_ID: { TrainAttribute2nd message = TrainAttribute2nd.read(messageDataReader); message.contributeToTreeView(outputTreeView); break; } case PacketOpcode.Evt_Train__TrainAttribute_ID: { TrainAttribute message = TrainAttribute.read(messageDataReader); message.contributeToTreeView(outputTreeView); break; } case PacketOpcode.Evt_Train__TrainSkill_ID: { TrainSkill message = TrainSkill.read(messageDataReader); message.contributeToTreeView(outputTreeView); break; } case PacketOpcode.Evt_Train__TrainSkillAdvancementClass_ID: { TrainSkillAdvancementClass message = TrainSkillAdvancementClass.read(messageDataReader); message.contributeToTreeView(outputTreeView); break; } default: { handled = false; break; } } return(handled); }