2018-05-18 03:40:28 +00:00
|
|
|
#ifndef OPENMW_BASEWORLDSTATE_HPP
|
|
|
|
#define OPENMW_BASEWORLDSTATE_HPP
|
|
|
|
|
2018-06-07 09:49:12 +00:00
|
|
|
#include <vector>
|
|
|
|
|
2018-05-18 03:40:28 +00:00
|
|
|
#include <components/openmw-mp/Base/BaseStructs.hpp>
|
|
|
|
|
|
|
|
#include <RakNetTypes.h>
|
|
|
|
|
|
|
|
namespace mwmp
|
|
|
|
{
|
2018-06-23 11:37:47 +00:00
|
|
|
static const int maxImageDataSize = 1800;
|
2018-06-22 23:33:34 +00:00
|
|
|
|
2018-06-07 09:49:12 +00:00
|
|
|
struct MapTile
|
|
|
|
{
|
|
|
|
int x;
|
|
|
|
int y;
|
|
|
|
std::vector<char> imageData;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct MapChanges
|
|
|
|
{
|
|
|
|
std::vector<MapTile> mapTiles;
|
|
|
|
};
|
2018-05-18 03:40:28 +00:00
|
|
|
|
|
|
|
class BaseWorldstate
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
|
|
|
|
BaseWorldstate()
|
|
|
|
{
|
2018-05-24 06:38:06 +00:00
|
|
|
month = -1;
|
|
|
|
day = -1;
|
|
|
|
hour = -1;
|
2018-05-24 11:02:04 +00:00
|
|
|
|
|
|
|
daysPassed = -1;
|
2018-05-24 06:38:06 +00:00
|
|
|
timeScale = -1;
|
2018-05-18 03:40:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
RakNet::RakNetGUID guid;
|
|
|
|
|
2018-05-21 04:14:08 +00:00
|
|
|
double hour;
|
2018-05-25 00:33:12 +00:00
|
|
|
int day;
|
|
|
|
int month;
|
|
|
|
int year;
|
2018-05-24 11:02:04 +00:00
|
|
|
|
|
|
|
int daysPassed;
|
2018-05-23 05:31:25 +00:00
|
|
|
float timeScale;
|
2018-05-21 04:14:08 +00:00
|
|
|
|
2018-05-27 13:05:40 +00:00
|
|
|
bool hasPlayerCollision;
|
|
|
|
bool hasActorCollision;
|
|
|
|
bool hasPlacedObjectCollision;
|
|
|
|
bool useActorCollisionForPlacedObjects;
|
|
|
|
|
2018-06-28 01:53:00 +00:00
|
|
|
std::vector<std::string> enforcedCollisionRefIds;
|
|
|
|
|
2018-06-07 09:49:12 +00:00
|
|
|
MapChanges mapChanges;
|
|
|
|
|
2018-05-18 03:40:28 +00:00
|
|
|
bool isValid;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif //OPENMW_BASEWORLDSTATE_HPP
|