OSDN Git Service

fix cmake/Macros.cmake
[moflib/moflib.git] / saisei-1.0 / rpg / rpg / oldcode / ItemData.h
1 #pragma once
2 #include "mof/tstring.h"
3
4 namespace et{
5         struct ItemData
6         {
7                 enum ItemType{
8                                 POTION , ARMS
9                 };
10         
11                 mof::tstring name;
12                 mof::tstring explanation;
13                 int effect;
14                 ItemType type;
15         
16                 ItemData()
17                         : name(_T("")) , explanation(_T("")) , effect(0) , type(ItemData::POTION)
18                 { 
19
20                 }
21
22                 ItemData(const TCHAR* _name , const TCHAR* _explanation , const int _effect , ItemType _type)
23                         : name(_name) , explanation(_explanation) , effect(_effect) , type(_type)
24                 { 
25
26                 }
27
28         
29         };
30
31
32 }