mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-07-14 01:21:42 +00:00
[General] Move active spell structs from BasePlayer to BaseStructs
This commit is contained in:
parent
cedf70f367
commit
4acf9e289b
2 changed files with 19 additions and 18 deletions
|
@ -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…
Reference in a new issue