-
Notifications
You must be signed in to change notification settings - Fork 0
/
person.h
192 lines (189 loc) · 7.13 KB
/
person.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
#ifndef PERSON_H
#define PERSON_H
#include <QString>
#include <QList>
#include <QDateTime>
#include "json_macros.h"
class Person {
public:
Person(QJsonObject *d = NULL):
Forename(""),
Lastname(""),
CustomForename(""),
SpecialPerson(false),
TextColor(""),
Virgin(true),
AnalVirgin(true),
Job(""),
intFather(""),
intMother(""),
intLove(""),
Subject(""),
GoodInSubject(""),
//subjectStatLock(RuntimeHelpers.GetObjectValue(new object())),
ClubMember(""),
ImageLocation(""),
PaperDollEventFileName("PD_Default"),
MaleHeadFileName(""),
FemaleHeadFileName(""),
BodyFileName(""),
StomachFileName(""),
BreastFileName(""),
PenisFileName(""),
TesticleFileName(""),
CurrentOutfit(OutfitType::DefaultOutfit),
OutfitName(""),
intAnalSize(1.0),
intLoc(""),
intOldLoc(""),
intHome(""),
intBedroom(""),
intWork(""),
Trait("")
{
if (d) init(d);
}
long UID;
QString Forename;
QString Lastname;
QString CustomForename;
Gender gender;
QDateTime Birthday;
bool SpecialPerson;
QString TextColor;
QString InitParams;
//SerializableAttributeDictionary<Gender, double> GenderPreferences;
QList<Fetish> fetish;
bool Virgin;
bool AnalVirgin;
QString Job;
uint intJobSlot;
int Salary;
//static readonly object unemployedQListLock = RuntimeHelpers.GetObjectValue(new object());
//static readonly object jobLock = RuntimeHelpers.GetObjectValue(new object());
QList<QString> Children;
QString intFather;
QString intMother;
QString intLove;
bool Autoenroll;
int Schoolclass;
QString Subject;
QString GoodInSubject;
QList<QString> TeacherSubjects;
//SerializableAttributeDictionary<SchoolSubjectFamily, double> SubjectFamilyExp;
//SerializableAttributeDictionary<QString, double> SubjectInstanceExp;
//readonly object subjectStatLock;
//SerializableStringToDoubleDict DictProposalSupport;
bool HasDetention;
bool IsRogue;
QString ClubMember;
QString ImageLocation;
QString PaperDollEventFileName;
FacialExpressions FaceExpression;
QString MaleHeadFileName;
QString FemaleHeadFileName;
QString BodyFileName;
QString StomachFileName;
QString BreastFileName;
QString PenisFileName;
QString TesticleFileName;
int OutfitLevel;
OutfitType CurrentOutfit;
QString OutfitName;
bool OutfitUseEverywhere;
//SerializableAttributeDictionary<QString, double> dictStats;
//QList<StatusEffectInstance> StatusEffects;
double intBreastSize;
double intStomachSize;
double intPenisSize;
double intTesticleSize;
double intVaginaSize;
double intAnalSize;
QString intLoc;
QString intOldLoc;
QString intHome;
QString intBedroom;
QString intWork;
bool OutLateTonight;
bool OutLateLastNight;
bool UpEarly;
//InventoryCollection Inventory;
QString Trait;
//SerializableAttributeDictionary<QString, int> Skills;
QList<uint> AttachedEventIDs;
const static char TRAIT_SEPARATOR_CHAR = ',';
void init(QJsonObject *d)
{
for (QJsonObject::iterator it = d->begin(); it != d->end(); ++it) {
//long UID
__IF_VAR_FROM_JSON_AS(it, Forename, toString)
else __IF_VAR_FROM_JSON_AS(it, Lastname, toString)
else __IF_VAR_FROM_JSON_AS(it, CustomForename, toString)
else __IF_ENUM_FROM_JSON_AS(it, gender, Gender)
//DateTime Birthday
else __IF_VAR_FROM_JSON_AS(it, SpecialPerson, toBool)
else __IF_VAR_FROM_JSON_AS(it, TextColor, toString)
else __IF_VAR_FROM_JSON_AS(it, InitParams, toString)
//SerializableAttributeQHash<Gender, double> GenderPreferences;
else __IF_LIST_FROM_JSON_ENUM(it, fetish, static_cast<Fetish>)
else __IF_VAR_FROM_JSON_AS(it, Virgin, toBool)
else __IF_VAR_FROM_JSON_AS(it, AnalVirgin, toBool)
else __IF_VAR_FROM_JSON_AS(it, Job, toString)
else __IF_VAR_FROM_JSON_AS(it, intJobSlot, toInt)
else __IF_VAR_FROM_JSON_AS(it, Salary, toInt)
// readonly object unemployedQListLock = RuntimeHelpers.GetObjectValue(new object())
// readonly object jobLock = RuntimeHelpers.GetObjectValue(new object())
else __IF_LIST_FROM_JSON_TYPED(it, Children, toString)
else __IF_VAR_FROM_JSON_AS(it, intFather, toString)
else __IF_VAR_FROM_JSON_AS(it, intMother, toString)
else __IF_VAR_FROM_JSON_AS(it, intLove, toString)
else __IF_VAR_FROM_JSON_AS(it, Autoenroll, toBool)
else __IF_VAR_FROM_JSON_AS(it, Schoolclass, toInt)
else __IF_VAR_FROM_JSON_AS(it, Subject, toString)
else __IF_VAR_FROM_JSON_AS(it, GoodInSubject, toString)
else __IF_LIST_FROM_JSON_TYPED(it, TeacherSubjects, toString)
//SerializableAttributeQHash<SchoolSubjectFamily, double> SubjectFamilyExp;
//SerializableAttributeQHash<string, double> SubjectInstanceExp;
//readonly object subjectStatLock
//SerializableStringToDoubleDict DictProposalSupport
else __IF_VAR_FROM_JSON_AS(it, HasDetention, toBool)
else __IF_VAR_FROM_JSON_AS(it, IsRogue, toBool)
else __IF_VAR_FROM_JSON_AS(it, ClubMember, toString)
else __IF_VAR_FROM_JSON_AS(it, ImageLocation, toString)
else __IF_VAR_FROM_JSON_AS(it, PaperDollEventFileName, toString)
//FacialExpressions FaceExpression
else __IF_VAR_FROM_JSON_AS(it, MaleHeadFileName, toString)
else __IF_VAR_FROM_JSON_AS(it, FemaleHeadFileName, toString)
else __IF_VAR_FROM_JSON_AS(it, BodyFileName, toString)
else __IF_VAR_FROM_JSON_AS(it, StomachFileName, toString)
else __IF_VAR_FROM_JSON_AS(it, BreastFileName, toString)
else __IF_VAR_FROM_JSON_AS(it, PenisFileName, toString)
else __IF_VAR_FROM_JSON_AS(it, TesticleFileName, toString)
else __IF_VAR_FROM_JSON_AS(it, OutfitLevel, toInt)
//OutfitType CurrentOutfit
else __IF_VAR_FROM_JSON_AS(it, OutfitName, toString)
else __IF_VAR_FROM_JSON_AS(it, OutfitUseEverywhere, toBool)
//SerializableAttributeQHash<string, double> dictStats;
//QList<StatusEffectInstance> StatusEffects
else __IF_VAR_FROM_JSON_AS(it, intBreastSize, toDouble)
else __IF_VAR_FROM_JSON_AS(it, intStomachSize, toDouble)
else __IF_VAR_FROM_JSON_AS(it, intPenisSize, toDouble)
else __IF_VAR_FROM_JSON_AS(it, intTesticleSize, toDouble)
else __IF_VAR_FROM_JSON_AS(it, intVaginaSize, toDouble)
else __IF_VAR_FROM_JSON_AS(it, intAnalSize, toDouble)
else __IF_VAR_FROM_JSON_AS(it, intLoc, toString)
else __IF_VAR_FROM_JSON_AS(it, intOldLoc, toString)
else __IF_VAR_FROM_JSON_AS(it, intHome, toString)
else __IF_VAR_FROM_JSON_AS(it, intBedroom, toString)
else __IF_VAR_FROM_JSON_AS(it, intWork, toString)
else __IF_VAR_FROM_JSON_AS(it, OutLateTonight, toBool)
else __IF_VAR_FROM_JSON_AS(it, OutLateLastNight, toBool)
else __IF_VAR_FROM_JSON_AS(it, UpEarly, toBool)
//InventoryCollection Inventory
else __IF_VAR_FROM_JSON_AS(it, Trait, toString)
//SerializableAttributeQHash<string, int> Skills;
else __IF_LIST_FROM_JSON_TYPED(it, AttachedEventIDs, toInt)
}
}
};
#endif // PERSON_H