mirror of
https://github.com/TombEngine/TombEngine.git
synced 2025-05-10 04:26:42 +03:00
Move Color to Scripting.
This commit is contained in:
parent
416be03d95
commit
7c484d2510
11 changed files with 16 additions and 20 deletions
34
Scripting/include/GameScriptCameraInfo.h
Normal file
34
Scripting/include/GameScriptCameraInfo.h
Normal file
|
@ -0,0 +1,34 @@
|
|||
#pragma once
|
||||
|
||||
#include "GameScriptNamedBase.h"
|
||||
#include "Specific/phd_global.h"
|
||||
|
||||
namespace sol {
|
||||
class state;
|
||||
}
|
||||
class GameScriptPosition;
|
||||
|
||||
class GameScriptCameraInfo : public GameScriptNamedBase<GameScriptCameraInfo, LEVEL_CAMERA_INFO &>
|
||||
{
|
||||
public:
|
||||
using IdentifierType = std::reference_wrapper<LEVEL_CAMERA_INFO>;
|
||||
GameScriptCameraInfo(LEVEL_CAMERA_INFO& ref, bool temp);
|
||||
~GameScriptCameraInfo();
|
||||
|
||||
GameScriptCameraInfo& operator=(GameScriptCameraInfo const& other) = delete;
|
||||
GameScriptCameraInfo(GameScriptCameraInfo const& other) = delete;
|
||||
|
||||
static void Register(sol::state *);
|
||||
GameScriptPosition GetPos() const;
|
||||
void SetPos(GameScriptPosition const& pos);
|
||||
|
||||
short GetRoom() const;
|
||||
void SetRoom(short Room);
|
||||
|
||||
std::string GetName() const;
|
||||
void SetName(std::string const &);
|
||||
|
||||
private:
|
||||
LEVEL_CAMERA_INFO & m_camera;
|
||||
bool m_temporary;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue