2016-10-20 11:28:19 +00:00
|
|
|
#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>
|
2016-10-20 11:28:19 +00:00
|
|
|
#include <RakNetTypes.h>
|
|
|
|
|
|
|
|
namespace mwmp
|
|
|
|
{
|
2017-01-28 10:34:45 +00:00
|
|
|
struct WorldObject
|
2016-10-20 11:28:19 +00:00
|
|
|
{
|
2017-01-28 10:34:45 +00:00
|
|
|
std::string refId;
|
|
|
|
int refNumIndex;
|
|
|
|
int goldValue;
|
|
|
|
int count;
|
2016-10-25 11:07:00 +00:00
|
|
|
ESM::Position pos;
|
2016-11-21 21:40:50 +00:00
|
|
|
|
2016-10-25 07:40:55 +00:00
|
|
|
int state;
|
2016-10-24 10:20:04 +00:00
|
|
|
int lockLevel;
|
2016-10-24 21:52:42 +00:00
|
|
|
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-26 09:25:50 +00:00
|
|
|
|
2016-10-27 13:09:02 +00:00
|
|
|
std::string animGroup;
|
|
|
|
int animMode;
|
|
|
|
|
2016-10-26 09:25:50 +00:00
|
|
|
int index;
|
|
|
|
int shortVal;
|
|
|
|
float floatVal;
|
2016-10-26 21:41:14 +00:00
|
|
|
std::string varName;
|
2016-10-20 11:28:19 +00:00
|
|
|
};
|
2017-01-28 10:34:45 +00:00
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
2016-10-20 11:28:19 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#endif //OPENMW_WORLDEVENT_HPP
|