Exemplo n.º 1
0
 @Override
 public void _serialize(JoyBuffer out) {
   out.putInt(id);
   out.putPrefixedString(name, JoyBuffer.STRING_TYPE_SHORT);
   out.putPrefixedString(desc, JoyBuffer.STRING_TYPE_SHORT);
   out.putInt(award);
 }
Exemplo n.º 2
0
 @Override
 public void deserialize(JoyBuffer in) {
   this.id = in.getInt();
   this.name = in.getPrefixedString(JoyBuffer.STRING_TYPE_SHORT);
   this.desc = in.getPrefixedString(JoyBuffer.STRING_TYPE_SHORT);
   this.award = in.getInt();
 }
Exemplo n.º 3
0
 public void serialize(JoyBuffer out) {
   int[] styls = getStyles(style);
   out.putInt(styls.length);
   for (int i = 0; i < styls.length; i++) {
     out.putInt(styls[i]);
     out.putInt(getStyles(classid)[i]);
     out.putInt(getStyles(count)[i]);
     out.putInt(getStyles(remark)[i]);
   }
 }