mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-07-04 13:51:34 +00:00
[General] Move mwmp::Attack to BaseStructs
This commit is contained in:
parent
cf155c9279
commit
2397afc6ce
2 changed files with 25 additions and 20 deletions
|
@ -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;
|
||||
|
|
|
@ -1,8 +1,30 @@
|
|||
#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;
|
||||
|
|
Loading…
Reference in a new issue