1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-19 22:53:50 +00:00
openmw-tes3mp/components/openmw-mp/Base/BaseStructs.hpp

38 lines
711 B
C++
Raw Normal View History

#ifndef OPENMW_BASESTRUCTS_HPP
#define OPENMW_BASESTRUCTS_HPP
#include <RakNetTypes.h>
namespace mwmp
{
class Attack
{
public:
RakNet::RakNetGUID target;
RakNet::RakNetGUID attacker;
char type; // 0 - melee, 1 - magic, 2 - throwable
enum TYPE
{
MELEE = 0,
MAGIC,
THROWABLE
};
std::string refId; // id of spell (e.g. "fireball")
char success;
char block;
float damage;
char pressed;
char knockdown;
};
struct Animation
{
std::string groupname;
int mode;
int count;
bool persist;
};
}
#endif //OPENMW_BASESTRUCTS_HPP