mirror of
https://github.com/TombEngine/TombEngine.git
synced 2025-05-10 12:36:45 +03:00
Move GameScriptMirror, GameScriptSinkInfo and GameScriptSkyLayer to Scripting.
This commit is contained in:
parent
e0cbde2135
commit
7df2b154a3
9 changed files with 24 additions and 12 deletions
36
Scripting/include/GameScriptSinkInfo.h
Normal file
36
Scripting/include/GameScriptSinkInfo.h
Normal file
|
@ -0,0 +1,36 @@
|
|||
#pragma once
|
||||
|
||||
#include "GameScriptNamedBase.h"
|
||||
#include "Specific/phd_global.h"
|
||||
|
||||
namespace sol {
|
||||
class state;
|
||||
}
|
||||
class GameScriptPosition;
|
||||
|
||||
class GameScriptSinkInfo : public GameScriptNamedBase<GameScriptSinkInfo, SINK_INFO &>
|
||||
{
|
||||
public:
|
||||
using IdentifierType = std::reference_wrapper<SINK_INFO>;
|
||||
GameScriptSinkInfo(SINK_INFO& ref, bool temp);
|
||||
~GameScriptSinkInfo();
|
||||
GameScriptSinkInfo& operator=(GameScriptSinkInfo const& other) = delete;
|
||||
GameScriptSinkInfo(GameScriptSinkInfo const& other) = delete;
|
||||
|
||||
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;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue