forked from miki151/keeperrl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
attr_info.h
22 lines (20 loc) · 737 Bytes
/
attr_info.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#pragma once
#include "stdafx.h"
#include "util.h"
#include "view_id.h"
#include "fx_info.h"
#include "effect.h"
struct AttrInfo {
string SERIAL(name);
ViewId SERIAL(viewId);
string SERIAL(adjective);
int SERIAL(absorptionCap);
int SERIAL(modifierVariation) = 1;
int SERIAL(wishedItemIncrease) = 5;
bool SERIAL(isAttackAttr) = false;
optional<FXInfo> SERIAL(meleeFX);
string SERIAL(help);
optional<string> SERIAL(bodyPartInjury);
optional<Effect> SERIAL(onAttackedEffect);
SERIALIZE_ALL(NAMED(bodyPartInjury), NAMED(name), NAMED(viewId), NAMED(adjective), NAMED(absorptionCap), OPTION(modifierVariation), OPTION(wishedItemIncrease), OPTION(isAttackAttr), NAMED(meleeFX), NAMED(help), NAMED(onAttackedEffect))
};