1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-16 02:49:55 +00:00
openmw-tes3mp/components/openmw-mp/Base/WorldEvent.hpp

62 lines
1 KiB
C++
Raw Normal View History

#ifndef OPENMW_WORLDEVENT_HPP
#define OPENMW_WORLDEVENT_HPP
2016-10-22 17:15:32 +00:00
#include <components/esm/loadcell.hpp>
2016-10-20 19:15:47 +00:00
#include <components/esm/cellref.hpp>
#include <RakNetTypes.h>
namespace mwmp
{
struct WorldObject
{
std::string refId;
int refNumIndex;
int goldValue;
int count;
ESM::Position pos;
2016-11-21 21:40:50 +00:00
int state;
2016-10-24 10:20:04 +00:00
int lockLevel;
float scale;
2016-10-24 14:52:19 +00:00
2016-11-20 20:54:49 +00:00
std::string filename;
2016-10-24 14:52:19 +00:00
bool allowSkipping;
2016-10-27 13:09:02 +00:00
std::string animGroup;
int animMode;
int index;
int shortVal;
float floatVal;
std::string varName;
};
class WorldEvent
{
public:
WorldEvent(RakNet::RakNetGUID guid) : guid(guid)
{
}
WorldEvent()
{
}
struct ObjectChanges
{
std::vector<WorldObject> objects;
unsigned int count;
};
RakNet::RakNetGUID guid;
ObjectChanges objectChanges;
ESM::Cell cell;
};
}
#endif //OPENMW_WORLDEVENT_HPP