public override void Write(PythonWriter pw) { pw.WriteTuple(1); pw.WriteDictionary(9); pw.WriteString("SlotId"); pw.WriteUInt(SlotId); pw.WriteString("IsSelected"); pw.WriteInt(IsSelected ? 1 : 0); pw.WriteString("BodyData"); pw.WriteStruct(BodyData); pw.WriteString("CharacterData"); pw.WriteStruct(CharacterData); pw.WriteString("AppearanceData"); pw.WriteDictionary(AppearanceData.Count); foreach (var appearance in AppearanceData) { appearance.Value.Write(pw); } pw.WriteString("UserName"); if (FamilyName != null) { pw.WriteUnicodeString(FamilyName); } else { pw.WriteNoneStruct(); } pw.WriteString("GameContextId"); if (GameContextId == 0) { pw.WriteNoneStruct(); } else { pw.WriteUInt(GameContextId); } pw.WriteString("LoginData"); pw.WriteStruct(LoginData); pw.WriteString("ClanData"); pw.WriteStruct(ClanData); }
public void Write(PythonWriter pw) { pw.WriteInt(SlotId); pw.WriteTuple(2); pw.WriteInt(ClassId); pw.WriteStruct(Color); }
public void Write(PythonWriter pw) { pw.WriteInt((int)SlotId); pw.WriteTuple(3); pw.WriteUInt(Class); pw.WriteStruct(Color); Color.WriteEmpty(pw); }