Lib
QOLを高める
|
使用リソース登録関数。 More...
#include <script_export.h>
Static Public Member Functions | |
static int | addTexture (lua_State *L) |
テクスチャリソースを登録する。 More... | |
static int | addFont (lua_State *L) |
フォントリソースを登録する。 More... | |
static int | addSe (lua_State *L) |
効果音リソースを登録する。 More... | |
static int | addBgm (lua_State *L) |
BGMリソースを登録する。 More... | |
使用リソース登録関数。
リソースはリソースセットID(整数)とリソースID(文字列)で識別されます。 リソースの登録は yappy::framework::Application::sealResource() で 許可されている間にしかできません(違反するとエラーが発生します)。 リソースを登録した後、C++側で yappy::framework::Application::loadResourceSet() を呼ぶとリソースが使用可能になります。
Definition at line 91 of file script_export.h.
|
static |
BGMリソースを登録する。
[in] | setId | リソースセットID(整数値) |
[in] | resId | リソースID(文字列) |
[in] | path | ファイルパス |
Definition at line 543 of file script_export.cpp.
|
static |
フォントリソースを登録する。
[in] | setId | リソースセットID(整数値) |
[in] | resId | リソースID(文字列) |
[in] | path | ファイルパス |
Definition at line 483 of file script_export.cpp.
|
static |
効果音リソースを登録する。
[in] | setId | リソースセットID(整数値) |
[in] | resId | リソースID(文字列) |
[in] | path | ファイルパス |
Definition at line 518 of file script_export.cpp.
|
static |
テクスチャリソースを登録する。
[in] | setId | リソースセットID(整数値) |
[in] | resId | リソースID(文字列) |
[in] | path | ファイルパス |
Definition at line 458 of file script_export.cpp.