Lib
QOLを高める
Static Public Member Functions | List of all members
yappy::lua::export::resource Struct Reference

使用リソース登録関数。 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...
 

Detailed Description

使用リソース登録関数。

リソースはリソースセットID(整数)とリソースID(文字列)で識別されます。 リソースの登録は yappy::framework::Application::sealResource() で 許可されている間にしかできません(違反するとエラーが発生します)。 リソースを登録した後、C++側で yappy::framework::Application::loadResourceSet() を呼ぶとリソースが使用可能になります。

See also
yappy::framework::Application
yappy::framework::ResourceManager

Definition at line 91 of file script_export.h.

Member Function Documentation

int yappy::lua::export::resource::addBgm ( lua_State *  L)
static

BGMリソースを登録する。

function resource.addBgm(int setId, str resId, str path)
end
Parameters
[in]setIdリソースセットID(整数値)
[in]resIdリソースID(文字列)
[in]pathファイルパス
Returns
なし

Definition at line 543 of file script_export.cpp.

int yappy::lua::export::resource::addFont ( lua_State *  L)
static

フォントリソースを登録する。

function resource.addFont(int setId, str resId, str path)
end
Parameters
[in]setIdリソースセットID(整数値)
[in]resIdリソースID(文字列)
[in]pathファイルパス
Returns
なし

Definition at line 483 of file script_export.cpp.

int yappy::lua::export::resource::addSe ( lua_State *  L)
static

効果音リソースを登録する。

function resource.addSe(int setId, str resId, str path)
end
Parameters
[in]setIdリソースセットID(整数値)
[in]resIdリソースID(文字列)
[in]pathファイルパス
Returns
なし

Definition at line 518 of file script_export.cpp.

int yappy::lua::export::resource::addTexture ( lua_State *  L)
static

テクスチャリソースを登録する。

function resource.addTexture(int setId, str resId, str path)
end
Parameters
[in]setIdリソースセットID(整数値)
[in]resIdリソースID(文字列)
[in]pathファイルパス
Returns
なし

Definition at line 458 of file script_export.cpp.


The documentation for this struct was generated from the following files: