#ifndef OPENMW_BASESTRUCTS_HPP #define OPENMW_BASESTRUCTS_HPP #include #include namespace mwmp { struct Item { std::string refId; int count; int charge; inline bool operator==(const Item& rhs) { return refId == rhs.refId && count == rhs.count && charge == rhs.charge; } }; struct Target { std::string refId; int refNumIndex; int mpNum; RakNet::RakNetGUID guid; }; class Attack { public: Target target; char type; // 0 - melee, 1 - magic, 2 - throwable enum TYPE { MELEE = 0, MAGIC, THROWABLE }; std::string spellId; // id of spell (e.g. "fireball") float damage; bool success; bool block; bool pressed; bool instant; bool knockdown; bool shouldSend; }; struct Animation { std::string groupname; int mode; int count; bool persist; }; struct SimpleCreatureStats { ESM::StatState mDynamic[3]; bool mDead; }; } #endif //OPENMW_BASESTRUCTS_HPP