mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-20 10:53:51 +00:00
27 lines
348 B
C++
27 lines
348 B
C++
|
//
|
||
|
// Created by koncord on 02.01.18.
|
||
|
//
|
||
|
|
||
|
#include "BaseMgr.hpp"
|
||
|
#include "Player.hpp"
|
||
|
|
||
|
BaseMgr::BaseMgr(Player *player) : player(player), changed(false)
|
||
|
{
|
||
|
|
||
|
}
|
||
|
|
||
|
void BaseMgr::update()
|
||
|
{
|
||
|
if (!changed)
|
||
|
return;
|
||
|
changed = false;
|
||
|
|
||
|
processUpdate();
|
||
|
}
|
||
|
|
||
|
void BaseMgr::setChanged()
|
||
|
{
|
||
|
changed = true;
|
||
|
player->addToUpdateQueue();
|
||
|
}
|