mirror of
https://github.com/TombEngine/TombEngine.git
synced 2025-05-10 04:26:42 +03:00
Move GameScriptAudioTrack and GameScriptMeshInfo to Scripting.
This commit is contained in:
parent
a2ecc0e55c
commit
e0cbde2135
8 changed files with 20 additions and 14 deletions
39
Scripting/include/GameScriptMeshInfo.h
Normal file
39
Scripting/include/GameScriptMeshInfo.h
Normal file
|
@ -0,0 +1,39 @@
|
|||
#pragma once
|
||||
|
||||
#include "GameScriptNamedBase.h"
|
||||
#include "Game/room.h"
|
||||
|
||||
namespace sol {
|
||||
class state;
|
||||
}
|
||||
|
||||
class GameScriptPosition;
|
||||
class GameScriptColor;
|
||||
|
||||
class GameScriptMeshInfo : public GameScriptNamedBase<GameScriptMeshInfo, MESH_INFO &>
|
||||
{
|
||||
public:
|
||||
using IdentifierType = std::reference_wrapper<MESH_INFO>;
|
||||
GameScriptMeshInfo(MESH_INFO & id, bool temporary);
|
||||
~GameScriptMeshInfo();
|
||||
GameScriptMeshInfo& operator=(GameScriptMeshInfo const& other) = delete;
|
||||
GameScriptMeshInfo(GameScriptMeshInfo const& other) = delete;
|
||||
|
||||
static void Register(sol::state *);
|
||||
|
||||
GameScriptPosition GetPos() const;
|
||||
void SetPos(GameScriptPosition const & pos);
|
||||
int GetRot() const;
|
||||
void SetRot(int yRot);
|
||||
std::string GetName() const;
|
||||
void SetName(std::string const & name);
|
||||
int GetStaticNumber() const;
|
||||
void SetStaticNumber(int staticNumber);
|
||||
GameScriptColor GetColor() const;
|
||||
void SetColor(GameScriptColor const & col);
|
||||
int GetHP() const;
|
||||
void SetHP(int hp);
|
||||
private:
|
||||
MESH_INFO & m_mesh;
|
||||
bool m_temporary;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue