openmw-tes3coop/components/openmw-mp/Base/BaseWorldstate.hpp
David Cernat 9102df7fde [General] Make WorldCollisionOverride also work with specific refIds
For now, this only makes it possible to enforce collision for specific refIds for placed objects.
2018-06-28 04:53:00 +03:00

63 lines
1.1 KiB
C++

#ifndef OPENMW_BASEWORLDSTATE_HPP
#define OPENMW_BASEWORLDSTATE_HPP
#include <vector>
#include <components/openmw-mp/Base/BaseStructs.hpp>
#include <RakNetTypes.h>
namespace mwmp
{
static const int maxImageDataSize = 1800;
struct MapTile
{
int x;
int y;
std::vector<char> imageData;
};
struct MapChanges
{
std::vector<MapTile> mapTiles;
};
class BaseWorldstate
{
public:
BaseWorldstate()
{
month = -1;
day = -1;
hour = -1;
daysPassed = -1;
timeScale = -1;
}
RakNet::RakNetGUID guid;
double hour;
int day;
int month;
int year;
int daysPassed;
float timeScale;
bool hasPlayerCollision;
bool hasActorCollision;
bool hasPlacedObjectCollision;
bool useActorCollisionForPlacedObjects;
std::vector<std::string> enforcedCollisionRefIds;
MapChanges mapChanges;
bool isValid;
};
}
#endif //OPENMW_BASEWORLDSTATE_HPP