2017-04-08 05:59:21 +00:00
|
|
|
#ifndef OPENMW_BASESTRUCTS_HPP
|
|
|
|
#define OPENMW_BASESTRUCTS_HPP
|
|
|
|
|
2017-04-17 12:12:11 +00:00
|
|
|
#include <RakNetTypes.h>
|
|
|
|
|
2017-04-08 05:59:21 +00:00
|
|
|
namespace mwmp
|
|
|
|
{
|
2017-04-17 12:12:11 +00:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
|
2017-04-08 05:59:21 +00:00
|
|
|
struct Animation
|
|
|
|
{
|
|
|
|
std::string groupname;
|
|
|
|
int mode;
|
|
|
|
int count;
|
|
|
|
bool persist;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif //OPENMW_BASESTRUCTS_HPP
|