mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-25 22:10:41 -04:00
[General] Move active spell structs from BasePlayer to BaseStructs
This commit is contained in:
parent
cedf70f367
commit
4acf9e289b
@ -75,12 +75,6 @@ namespace mwmp
|
|||||||
int type;
|
int type;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct ActiveSpell
|
|
||||||
{
|
|
||||||
std::string id;
|
|
||||||
ESM::ActiveSpells::ActiveSpellParams params;
|
|
||||||
};
|
|
||||||
|
|
||||||
struct CellState
|
struct CellState
|
||||||
{
|
{
|
||||||
ESM::Cell cell;
|
ESM::Cell cell;
|
||||||
@ -132,18 +126,6 @@ namespace mwmp
|
|||||||
int action; // 0 - Clear and set in entirety, 1 - Add spell, 2 - Remove spell
|
int action; // 0 - Clear and set in entirety, 1 - Add spell, 2 - Remove spell
|
||||||
};
|
};
|
||||||
|
|
||||||
struct SpellsActiveChanges
|
|
||||||
{
|
|
||||||
std::vector<ActiveSpell> activeSpells;
|
|
||||||
enum ACTION_TYPE
|
|
||||||
{
|
|
||||||
SET = 0,
|
|
||||||
ADD,
|
|
||||||
REMOVE
|
|
||||||
};
|
|
||||||
int action; // 0 - Clear and set in entirety, 1 - Add spell, 2 - Remove spell
|
|
||||||
};
|
|
||||||
|
|
||||||
enum RESURRECT_TYPE
|
enum RESURRECT_TYPE
|
||||||
{
|
{
|
||||||
REGULAR = 0,
|
REGULAR = 0,
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
|
#include <components/esm/activespells.hpp>
|
||||||
#include <components/esm/loadcell.hpp>
|
#include <components/esm/loadcell.hpp>
|
||||||
#include <components/esm/statstate.hpp>
|
#include <components/esm/statstate.hpp>
|
||||||
|
|
||||||
@ -156,6 +157,24 @@ namespace mwmp
|
|||||||
bool shouldSend;
|
bool shouldSend;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
struct ActiveSpell
|
||||||
|
{
|
||||||
|
std::string id;
|
||||||
|
ESM::ActiveSpells::ActiveSpellParams params;
|
||||||
|
};
|
||||||
|
|
||||||
|
struct SpellsActiveChanges
|
||||||
|
{
|
||||||
|
std::vector<ActiveSpell> activeSpells;
|
||||||
|
enum ACTION_TYPE
|
||||||
|
{
|
||||||
|
SET = 0,
|
||||||
|
ADD,
|
||||||
|
REMOVE
|
||||||
|
};
|
||||||
|
int action; // 0 - Clear and set in entirety, 1 - Add spell, 2 - Remove spell
|
||||||
|
};
|
||||||
|
|
||||||
struct Animation
|
struct Animation
|
||||||
{
|
{
|
||||||
std::string groupname;
|
std::string groupname;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user