You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
openmw-tes3mp/apps/openmw-mp/Weather.hpp

44 lines
760 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>
#include "BaseMgr.hpp"
class Player;
class WeatherMgr final: public BaseMgr
{
public:
static void Init(LuaState &lua);
public:
explicit WeatherMgr(Player *player);
~WeatherMgr() = default;
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:
void processUpdate() final;
};