1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-16 22:19:54 +00:00
openmw-tes3mp/components/openmw-mp/Base/BaseWorldstate.hpp
David Cernat d5b3d08ec9 Merge pull request #452 from TES3MP/0.6.3 while resolving conflicts
Conflicts:
	apps/openmw-mp/Script/Functions/Worldstate.cpp
	apps/openmw/mwmp/Worldstate.cpp
	components/openmw-mp/Base/BaseWorldstate.hpp
2018-06-25 04:44:30 +03:00

61 lines
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 BaseMapTile
{
int x;
int y;
std::vector<char> imageData;
};
struct MapChanges
{
std::vector<BaseMapTile> 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;
MapChanges mapChanges;
bool isValid;
};
}
#endif //OPENMW_BASEWORLDSTATE_HPP