mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-15 21:19:57 +00:00
d163f1b6da
Rename the old WorldKillCount that was a Player packet into PlayerPlaceholder. Rename the unused CellCreate that was a Worldstate packet into WorldKillCount. On the server, move kill count-related script functions from QuestFunctions to WorldstateFunctions.
47 lines
1.4 KiB
C++
47 lines
1.4 KiB
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();
|
|
|
|
void addRecords();
|
|
|
|
bool containsExploredMapTile(int cellX, int cellY);
|
|
void markExploredMapTile(int cellX, int cellY);
|
|
|
|
void setKills();
|
|
void setMapExplored();
|
|
void setWeather();
|
|
|
|
void sendKill(const std::string& refId, int number);
|
|
void sendMapExplored(int cellX, int cellY, const std::vector<char>& imageData);
|
|
void sendWeather(std::string region, int currentWeather, int nextWeather, int queuedWeather, float transitionFactor);
|
|
|
|
void sendEnchantmentRecord(const ESM::Enchantment* enchantment);
|
|
void sendPotionRecord(const ESM::Potion* potion);
|
|
void sendSpellRecord(const ESM::Spell* spell);
|
|
|
|
void sendArmorRecord(const ESM::Armor* armor, std::string baseRefId = "");
|
|
void sendBookRecord(const ESM::Book* book, std::string baseRefId = "");
|
|
void sendClothingRecord(const ESM::Clothing* clothing, std::string baseRefId = "");
|
|
void sendWeaponRecord(const ESM::Weapon* weapon, std::string baseRefId = "");
|
|
|
|
private:
|
|
|
|
std::vector<MapTile> exploredMapTiles;
|
|
|
|
Networking *getNetworking();
|
|
|
|
};
|
|
}
|
|
|
|
#endif //OPENMW_WORLDSTATE_HPP
|