1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-21 09:23:51 +00:00
openmw-tes3mp/apps/openmw-mp/Weather.hpp
2017-12-10 09:51:03 +08:00

45 lines
741 B
C++

//
// Created by koncord on 30.11.17.
//
#pragma once
#include <components/openmw-mp/Base/BasePlayer.hpp>
#include <apps/openmw-mp/Script/LuaState.hpp>
class Player;
class WeatherMgr
{
public:
static void Init(LuaState &lua);
public:
explicit WeatherMgr(Player *player);
~WeatherMgr() = default;
void update();
void setWeather(int weather);
void setCurrent(int weather);
int getCurrent() const;
void setNext(int weather);
int getNext() const;
void setTransition(float time);
float getTransition() const;
void setUpdate(float time);
float getUpdate() const;
void requestWeather();
void copy(const WeatherMgr &other);
private:
Player *player;
bool changed;
};