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.
33 lines
438 B
C++
33 lines
438 B
C++
//
|
|
// Created by koncord on 15.08.17.
|
|
//
|
|
|
|
#pragma once
|
|
|
|
#include <string>
|
|
|
|
class LuaState;
|
|
class Player;
|
|
|
|
class Books
|
|
{
|
|
public:
|
|
static void Init(LuaState &lua);
|
|
public:
|
|
|
|
explicit Books(Player *player);
|
|
~Books();
|
|
|
|
void addBook(const std::string &bookId);
|
|
std::string getBookId(unsigned i) const;
|
|
unsigned getChanges() const;
|
|
void reset();
|
|
|
|
void update();
|
|
private:
|
|
Player *player;
|
|
bool changed;
|
|
};
|
|
|
|
|