Skip to content

Commit ca4c168

Browse files
committed
ISSUE_018
Now state have material. Makefile was not updated due to it is not used. Also many significal changes are ecpected so it can be updated later.
1 parent 53b49fb commit ca4c168

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

material.h

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#pragma once
2+
3+
enum material_t{
4+
FLESH,
5+
WOOD,
6+
IRON,
7+
ICE,
8+
STONE,
9+
EFIR,
10+
BONES
11+
};

state.hpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
#include <map>
77

88
#include "spell.hpp"
9+
#include "material.h"
910
#include "object_defs.hpp"
1011
#include "text_field.hpp"
1112

@@ -23,6 +24,8 @@ struct state{
2324
map<property_t, int32_t> propertyes;
2425
map<effect_t, effect> effects;
2526

27+
material_t material;
28+
2629
#ifndef DONT_LOG_STATE
2730
static log* l;
2831
#endif

0 commit comments

Comments
 (0)