forked from miki151/keeperrl
/
creature_attributes.cpp
60 lines (56 loc) · 1.27 KB
/
creature_attributes.cpp
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
#include "stdafx.h"
#include "creature_attributes.h"
#include "creature.h"
template <class Archive>
void CreatureAttributes::serialize(Archive& ar, const unsigned int version) {
ar& SVAR(viewId)
& SVAR(name)
& SVAR(speed)
& SVAR(size)
& SVAR(strength)
& SVAR(dexterity)
& SVAR(weight)
& SVAR(chatReactionFriendly)
& SVAR(chatReactionHostile)
& SVAR(firstName)
& SVAR(speciesName)
& SVAR(specialMonster)
& SVAR(barehandedDamage)
& SVAR(barehandedAttack)
& SVAR(attackEffect)
& SVAR(harmlessApply)
& SVAR(passiveAttack)
& SVAR(gender)
& SVAR(legs)
& SVAR(arms)
& SVAR(wings)
& SVAR(heads)
& SVAR(innocent)
& SVAR(noBody)
& SVAR(fireResistant)
& SVAR(poisonResistant)
& SVAR(fireCreature)
& SVAR(breathing)
& SVAR(humanoid)
& SVAR(animal)
& SVAR(healer)
& SVAR(flyer)
& SVAR(undead)
& SVAR(notLiving)
& SVAR(brain)
& SVAR(walker)
& SVAR(isFood)
& SVAR(stationary)
& SVAR(noSleep)
& SVAR(courage)
& SVAR(maxLevel)
& SVAR(carryAnything)
& SVAR(permanentlyBlind)
& SVAR(invincible)
& SVAR(damageMultiplier)
& SVAR(skills)
& SVAR(skillGain)
& SVAR(spells);
CHECK_SERIAL;
}
SERIALIZABLE(CreatureAttributes);