|
|
|
@ -11,30 +11,13 @@
|
|
|
|
|
#include <components/esm/creaturestats.hpp>
|
|
|
|
|
#include <components/esm/loadclas.hpp>
|
|
|
|
|
#include <components/esm/loadspel.hpp>
|
|
|
|
|
|
|
|
|
|
#include <components/openmw-mp/Base/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 CurrentContainer
|
|
|
|
|
{
|
|
|
|
|
std::string refId;
|
|
|
|
|