public override void ReadByte(ByteBuffer byteBuf) { Id = byteBuf.ReadInt(); IsLeader = byteBuf.ReadBool(); Race = StringConvert.IndexToEnum <ERaceType>(byteBuf.ReadInt()); Name = LANG.Convert(byteBuf.ReadInt()); Model = byteBuf.ReadUTF(); Age = byteBuf.ReadInt(); Power = byteBuf.ReadLong(); Speed = byteBuf.ReadFloat(); Hp = byteBuf.ReadDouble(); SomeIntParams = byteBuf.ReadListInt(); SomeLongParams = byteBuf.ReadListLong(); SomeFloatParams = byteBuf.ReadListFloat(); SomeDoubleParams = byteBuf.ReadListDouble(); SomeStringParams = byteBuf.ReadListUTF(); SomeLanguageParams = LANG.Convert(byteBuf.ReadListInt()); SkillWrapper = SkillWrapper.Parse(byteBuf); }