mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-07-04 05: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/creaturestats.hpp>
|
||||||
#include <components/esm/loadclas.hpp>
|
#include <components/esm/loadclas.hpp>
|
||||||
#include <components/esm/loadspel.hpp>
|
#include <components/esm/loadspel.hpp>
|
||||||
|
|
||||||
|
#include <components/openmw-mp/Base/BaseStructs.hpp>
|
||||||
|
|
||||||
#include <RakNetTypes.h>
|
#include <RakNetTypes.h>
|
||||||
|
|
||||||
namespace mwmp
|
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
|
struct CurrentContainer
|
||||||
{
|
{
|
||||||
std::string refId;
|
std::string refId;
|
||||||
|
|
|
@ -1,8 +1,30 @@
|
||||||
#ifndef OPENMW_BASESTRUCTS_HPP
|
#ifndef OPENMW_BASESTRUCTS_HPP
|
||||||
#define OPENMW_BASESTRUCTS_HPP
|
#define OPENMW_BASESTRUCTS_HPP
|
||||||
|
|
||||||
|
#include <RakNetTypes.h>
|
||||||
|
|
||||||
namespace mwmp
|
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
|
struct Animation
|
||||||
{
|
{
|
||||||
std::string groupname;
|
std::string groupname;
|
||||||
|
|
Loading…
Reference in a new issue