[deploy] Merge pull request #33 from KiwanoEngine/dev
[chore] fix comments
This commit is contained in:
commit
a3fe24c99c
|
|
@ -149,7 +149,7 @@ namespace kiwano
|
|||
// 获取父角色
|
||||
inline Actor* GetParent() const { return parent_; }
|
||||
|
||||
// 获取所在场景
|
||||
// 获取所在舞台
|
||||
inline Stage* GetStage() const { return stage_; }
|
||||
|
||||
// 设置是否显示
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@
|
|||
|
||||
namespace kiwano
|
||||
{
|
||||
// 场景
|
||||
// 舞台
|
||||
class KGE_API Stage
|
||||
: public Actor
|
||||
{
|
||||
|
|
@ -35,10 +35,10 @@ namespace kiwano
|
|||
|
||||
virtual ~Stage();
|
||||
|
||||
// 进入场景
|
||||
// 进入舞台
|
||||
virtual void OnEnter();
|
||||
|
||||
// 退出场景
|
||||
// 退出舞台
|
||||
virtual void OnExit();
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ namespace kiwano
|
|||
{
|
||||
class Director;
|
||||
|
||||
// 场景过渡
|
||||
// 舞台过渡
|
||||
class KGE_API Transition
|
||||
: public Object
|
||||
{
|
||||
|
|
|
|||
|
|
@ -26,6 +26,7 @@
|
|||
|
||||
namespace kiwano
|
||||
{
|
||||
// 导演
|
||||
class KGE_API Director
|
||||
: public Singleton<Director>
|
||||
, public Component
|
||||
|
|
@ -33,18 +34,18 @@ namespace kiwano
|
|||
KGE_DECLARE_SINGLETON(Director);
|
||||
|
||||
public:
|
||||
// 切换场景
|
||||
// 切换舞台
|
||||
void EnterStage(
|
||||
StagePtr scene /* 场景 */
|
||||
StagePtr scene /* 舞台 */
|
||||
);
|
||||
|
||||
// 切换场景
|
||||
// 切换舞台
|
||||
void EnterStage(
|
||||
StagePtr scene, /* 场景 */
|
||||
TransitionPtr transition /* 场景动画 */
|
||||
StagePtr scene, /* 舞台 */
|
||||
TransitionPtr transition /* 过渡动画 */
|
||||
);
|
||||
|
||||
// 获取当前场景
|
||||
// 获取当前舞台
|
||||
StagePtr GetCurrentStage();
|
||||
|
||||
// 启用或禁用角色边界渲染功能
|
||||
|
|
|
|||
Loading…
Reference in New Issue