[deploy] Merge pull request #33 from KiwanoEngine/dev

[chore] fix comments
This commit is contained in:
Haibo 2019-08-12 18:37:03 +08:00 committed by GitHub
commit a3fe24c99c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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();
// 启用或禁用角色边界渲染功能