2021-07-21 18:17:30 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "GameScriptNamedBase.h"
|
|
|
|
#include "room.h"
|
|
|
|
|
|
|
|
namespace sol {
|
|
|
|
class state;
|
|
|
|
}
|
|
|
|
|
|
|
|
class GameScriptPosition;
|
|
|
|
class GameScriptColor;
|
|
|
|
|
|
|
|
class GameScriptMeshInfo : public GameScriptNamedBase<GameScriptMeshInfo, MESH_INFO &>
|
|
|
|
{
|
|
|
|
public:
|
2021-08-27 18:10:19 +01:00
|
|
|
using IdentifierType = std::reference_wrapper<MESH_INFO>;
|
2021-07-23 02:04:47 +01:00
|
|
|
GameScriptMeshInfo(MESH_INFO & id, bool temporary);
|
|
|
|
~GameScriptMeshInfo();
|
2021-07-21 18:17:30 +01:00
|
|
|
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;
|
2021-07-23 02:04:47 +01:00
|
|
|
bool m_temporary;
|
2021-07-21 18:17:30 +01:00
|
|
|
};
|