mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-25 14:03:33 -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;
|
||||
};
|
||||
|
||||
struct ActiveSpell
|
||||
{
|
||||
std::string id;
|
||||
ESM::ActiveSpells::ActiveSpellParams params;
|
||||
};
|
||||
|
||||
struct CellState
|
||||
{
|
||||
ESM::Cell cell;
|
||||
@ -132,18 +126,6 @@ namespace mwmp
|
||||
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
|
||||
{
|
||||
REGULAR = 0,
|
||||
|
@ -3,6 +3,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include <components/esm/activespells.hpp>
|
||||
#include <components/esm/loadcell.hpp>
|
||||
#include <components/esm/statstate.hpp>
|
||||
|
||||
@ -156,6 +157,24 @@ namespace mwmp
|
||||
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
|
||||
{
|
||||
std::string groupname;
|
||||
|
Loading…
x
Reference in New Issue
Block a user