Skip to content

Commit 222db72

Browse files
committed
更新注释
1 parent 79ed31f commit 222db72

1 file changed

Lines changed: 8 additions & 7 deletions

File tree

‎assets/scripts/base/kbengine.py‎

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,20 @@ def onBaseAppReady(bootstrapIdx):
66
"""
77
KBEngine method.
88
baseapp已经准备好了
9-
@param isBootstrap: 是否是第一个baseapp启动
10-
@type isBootstrap: bool
9+
@param bootstrapIdx: baseapp启动的顺序, 如果启动参数由用户填写,请确保第一个启动的baseappIdx等于1,
10+
否则实体自动加载等功能将不正确。
11+
@type bootstrapIdx: int
1112
"""
1213
INFO_MSG('onBaseAppReady: bootstrapIdx=%s' % bootstrapIdx)
13-
14+
1415
def onBaseAppShutDown(state):
1516
"""
1617
KBEngine method.
1718
这个baseapp被关闭前的回调函数
18-
@param state: 0 : 在断开所有客户端之前
19-
1 : 在将所有entity写入数据库之前
20-
2 : 所有entity被写入数据库之后
21-
@type state: int
19+
@param state: 0 : 在断开所有客户端之前
20+
1 : 在将所有entity写入数据库之前
21+
2 : 所有entity被写入数据库之后
22+
@type state: int
2223
"""
2324
INFO_MSG('onBaseAppShutDown: state=%i' % state)
2425

0 commit comments

Comments
 (0)