[chore] fix comments

This commit is contained in:
Nomango 2019-08-12 18:36:19 +08:00
parent 62d8c4507d
commit 645603775d
4 changed files with 12 additions and 11 deletions

View File

@ -149,7 +149,7 @@ namespace kiwano
// 获取父角色
inline Actor* GetParent() const { return parent_; }
// 获取所在场景
// 获取所在舞台
inline Stage* GetStage() const { return stage_; }
// 设置是否显示

View File

@ -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();
};
}

View File

@ -26,7 +26,7 @@ namespace kiwano
{
class Director;
// 场景过渡
// 舞台过渡
class KGE_API Transition
: public Object
{

View File

@ -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();
// 启用或禁用角色边界渲染功能