forked from mirror/openmw-tes3mp
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.
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();
|
|
}
|