自動管理されるスクリプト
More...
#include <ManagedScript.hpp>
◆ ManagedScript() [1/2]
SIV3D_NODISCARD_CXX20 s3d::ManagedScript::ManagedScript |
( |
| ) |
|
◆ ManagedScript() [2/2]
SIV3D_NODISCARD_CXX20 s3d::ManagedScript::ManagedScript |
( |
FilePathView |
path | ) |
|
|
explicit |
◆ ~ManagedScript()
s3d::ManagedScript::~ManagedScript |
( |
| ) |
|
◆ compiled()
bool s3d::ManagedScript::compiled |
( |
| ) |
const |
スクリプトコードのコンパイルに成功したかを返します。
- Returns
- コンパイルに成功した場合 true, それ以外の場合は false
◆ getIncludedFiles()
const Array<FilePath>& s3d::ManagedScript::getIncludedFiles |
( |
| ) |
const |
|
noexcept |
インクルードされているファイル一覧を返します。
- Returns
- インクルードされているファイル一覧
◆ isEmpty()
bool s3d::ManagedScript::isEmpty |
( |
| ) |
const |
◆ operator bool()
s3d::ManagedScript::operator bool |
( |
| ) |
const |
|
explicit |
◆ run()
void s3d::ManagedScript::run |
( |
| ) |
const |
◆ setTriggerToReload()
void s3d::ManagedScript::setTriggerToReload |
( |
const std::function< bool()> & |
trigger | ) |
|
スクリプトのリロードを発生させるイベントを設定します。
- Parameters
-
trigger | スクリプトのリロードを発生させるイベント。この関数が true を返すとスクリプトをリロードする |
The documentation for this class was generated from the following file: