You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
47 lines
803 B
47 lines
803 B
#pragma once |
|
|
|
#include <map> |
|
#include <vector> |
|
|
|
#include "Item.h" |
|
#include "Player.h" |
|
#include "Towner.h" |
|
#include "Trigger.h" |
|
|
|
namespace DAPI { |
|
enum struct StoreOption { |
|
TALK, |
|
IDENTIFYANITEM, |
|
EXIT, |
|
HEAL, |
|
BUYITEMS, |
|
WIRTPEEK, |
|
BUYBASIC, |
|
BUYPREMIUM, |
|
SELL, |
|
REPAIR, |
|
RECHARGE, |
|
BACK, |
|
ACCESSSTORAGE |
|
}; |
|
|
|
struct GameData { |
|
bool menuOpen; |
|
int pcurs; |
|
bool chrflag; |
|
bool invflag; |
|
bool qtextflag; |
|
int currlevel; |
|
int stashGold; |
|
size_t lastLogSize; |
|
|
|
std::map<int, PlayerData> playerList; |
|
std::vector<ItemData> itemList; |
|
std::vector<int> groundItems; |
|
std::vector<int> stashItems; |
|
std::map<int, TownerData> townerList; |
|
std::vector<StoreOption> storeList; |
|
std::vector<int> storeItems; |
|
std::vector<TriggerData> triggerList; |
|
}; |
|
} // namespace DAPI
|
|
|