forked from teamnwah/openmw-tes3coop
Conflicts: apps/openmw-mp/Script/Functions/Worldstate.cpp apps/openmw/mwmp/Worldstate.cpp components/openmw-mp/Base/BaseWorldstate.hpp
33 lines
659 B
C++
33 lines
659 B
C++
#ifndef OPENMW_WORLDSTATE_HPP
|
|
#define OPENMW_WORLDSTATE_HPP
|
|
|
|
#include <components/openmw-mp/Base/BaseWorldstate.hpp>
|
|
|
|
namespace mwmp
|
|
{
|
|
class Networking;
|
|
class Worldstate : public BaseWorldstate
|
|
{
|
|
public:
|
|
|
|
Worldstate();
|
|
virtual ~Worldstate();
|
|
|
|
bool containsExploredMapTile(int cellX, int cellY);
|
|
|
|
void markExploredMapTile(int cellX, int cellY);
|
|
|
|
void setMapExplored();
|
|
|
|
void sendMapExplored(int cellX, int cellY, const std::vector<char>& imageData);
|
|
|
|
private:
|
|
|
|
std::vector<BaseMapTile> exploredMapTiles;
|
|
|
|
Networking *getNetworking();
|
|
|
|
};
|
|
}
|
|
|
|
#endif //OPENMW_WORLDSTATE_HPP
|