2021-07-23 15:59:13 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "GameScriptNamedBase.h"
|
|
|
|
#include "phd_global.h"
|
|
|
|
|
|
|
|
namespace sol {
|
|
|
|
class state;
|
|
|
|
}
|
|
|
|
class GameScriptPosition;
|
|
|
|
|
|
|
|
class GameScriptSinkInfo : public GameScriptNamedBase<GameScriptSinkInfo, SINK_INFO &>
|
|
|
|
{
|
|
|
|
public:
|
2021-08-27 18:10:19 +01:00
|
|
|
using IdentifierType = std::reference_wrapper<SINK_INFO>;
|
2021-07-23 15:59:13 +01:00
|
|
|
GameScriptSinkInfo(SINK_INFO& ref, bool temp);
|
|
|
|
~GameScriptSinkInfo();
|
2021-07-26 18:25:50 +01:00
|
|
|
GameScriptSinkInfo& operator=(GameScriptSinkInfo const& other) = delete;
|
|
|
|
GameScriptSinkInfo(GameScriptSinkInfo const& other) = delete;
|
|
|
|
|
2021-07-23 15:59:13 +01:00
|
|
|
static void Register(sol::state *);
|
|
|
|
GameScriptPosition GetPos() const;
|
|
|
|
void SetPos(GameScriptPosition const& pos);
|
|
|
|
|
|
|
|
int GetStrength() const;
|
|
|
|
void SetStrength(int strength);
|
|
|
|
|
|
|
|
int GetBoxIndex() const;
|
|
|
|
void SetBoxIndex(int Room);
|
|
|
|
|
|
|
|
std::string GetName() const;
|
|
|
|
void SetName(std::string const &);
|
|
|
|
|
|
|
|
private:
|
|
|
|
SINK_INFO & m_sink;
|
|
|
|
bool m_temporary;
|
|
|
|
};
|