Created
October 19, 2017 00:38
-
-
Save Romain-P/448186dc05597eeeda6941b19a5d913c to your computer and use it in GitHub Desktop.
protocol generation test
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.ankamagames.dofus.network.messages.common.basic; | |
| @SuppressWarnings("all") | |
| public class AggregateStatMessage extends NetworkMessage { | |
| public static final int PROTOCOL_ID = 6669; | |
| // vi16 | |
| public statId; | |
| public AggregateStatMessage() { } | |
| public AggregateStatMessage( statId) { | |
| this.statId = statId; | |
| } | |
| @Override | |
| public int getProtocolId() { | |
| return 6669; | |
| } | |
| @Override | |
| public void serialize(DataWriter writer) { | |
| writer.write_vi16(this.statId); | |
| } | |
| @Override | |
| public void deserialize(DataReader reader) { | |
| this.statId = reader.read_vi16(); | |
| } | |
| @Override | |
| public String toString() { | |
| return "AggregateStatMessage(" + | |
| "statId=" + | |
| this.statId + | |
| ')'; | |
| } | |
| } | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment