2017-02-06 15:40:32 +00:00
|
|
|
#ifndef OPENMW_WORLDEVENT_HPP
|
|
|
|
#define OPENMW_WORLDEVENT_HPP
|
2017-01-27 18:57:47 +00:00
|
|
|
|
2017-02-06 10:53:41 +00:00
|
|
|
#include <components/openmw-mp/Base/BaseEvent.hpp>
|
2017-01-27 18:57:47 +00:00
|
|
|
#include "../mwworld/cellstore.hpp"
|
|
|
|
#include <RakNetTypes.h>
|
|
|
|
|
|
|
|
namespace mwmp
|
|
|
|
{
|
|
|
|
class Networking;
|
2017-02-06 15:40:32 +00:00
|
|
|
class WorldEvent : public BaseEvent
|
2017-01-27 18:57:47 +00:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
|
2017-02-06 15:40:32 +00:00
|
|
|
WorldEvent(RakNet::RakNetGUID guid);
|
|
|
|
virtual ~WorldEvent();
|
2017-01-27 18:57:47 +00:00
|
|
|
|
2017-01-28 10:34:45 +00:00
|
|
|
void addObject(WorldObject worldObject);
|
2017-02-04 18:14:39 +00:00
|
|
|
void addContainerItem(ContainerItem containerItem);
|
2017-01-28 10:34:45 +00:00
|
|
|
|
2017-02-05 16:45:23 +00:00
|
|
|
void editContainer(MWWorld::CellStore* cellStore);
|
2017-01-28 10:34:45 +00:00
|
|
|
void placeObjects(MWWorld::CellStore* cellStore);
|
|
|
|
void deleteObjects(MWWorld::CellStore* cellStore);
|
|
|
|
void lockObjects(MWWorld::CellStore* cellStore);
|
|
|
|
void unlockObjects(MWWorld::CellStore* cellStore);
|
|
|
|
void scaleObjects(MWWorld::CellStore* cellStore);
|
|
|
|
void moveObjects(MWWorld::CellStore* cellStore);
|
|
|
|
void rotateObjects(MWWorld::CellStore* cellStore);
|
|
|
|
void animateObjects(MWWorld::CellStore* cellStore);
|
|
|
|
void activateDoors(MWWorld::CellStore* cellStore);
|
|
|
|
|
|
|
|
void setLocalShorts(MWWorld::CellStore* cellStore);
|
|
|
|
void setLocalFloats(MWWorld::CellStore* cellStore);
|
|
|
|
void setMemberShorts();
|
|
|
|
void setGlobalShorts();
|
|
|
|
|
|
|
|
void playMusic();
|
|
|
|
void playVideo();
|
2017-01-27 18:57:47 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
Networking *getNetworking();
|
|
|
|
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
2017-02-06 15:40:32 +00:00
|
|
|
#endif //OPENMW_WORLDEVENT_HPP
|