Skip to content

Instantly share code, notes, and snippets.

@Romain-P
Created October 19, 2017 00:38
Show Gist options
  • Select an option

  • Save Romain-P/448186dc05597eeeda6941b19a5d913c to your computer and use it in GitHub Desktop.

Select an option

Save Romain-P/448186dc05597eeeda6941b19a5d913c to your computer and use it in GitHub Desktop.
protocol generation test
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