Skip to content

Commit a0b88b9

Browse files
committed
修改API名称
readyForLogin->onReadyForLogin
1 parent 59d4f11 commit a0b88b9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

demo/res/scripts/base/kbengine.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def onBaseAppShutDown(state):
3838
"""
3939
INFO_MSG('onBaseAppShutDown: state=%i' % state)
4040

41-
def readyForLogin(bootstrapIdx):
41+
def onReadyForLogin(bootstrapIdx):
4242
"""
4343
KBEngine method.
4444
如果返回值大于等于1.0则初始化全部完成, 否则返回准备的进度值0.0~1.0。

kbe/src/server/baseapp/initprogress_handler.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,11 @@ bool InitProgressHandler::process()
6767
float v = 0.0f;
6868
bool completed = false;
6969

70-
if(PyObject_HasAttrString(Baseapp::getSingleton().getEntryScript().get(), "readyForLogin") > 0)
70+
if(PyObject_HasAttrString(Baseapp::getSingleton().getEntryScript().get(), "onReadyForLogin") > 0)
7171
{
7272
// ËùÓнű¾¶¼¼ÓÔØÍê±Ï
7373
PyObject* pyResult = PyObject_CallMethod(Baseapp::getSingleton().getEntryScript().get(),
74-
const_cast<char*>("readyForLogin"),
74+
const_cast<char*>("onReadyForLogin"),
7575
const_cast<char*>("i"),
7676
g_componentGroupOrder);
7777

0 commit comments

Comments
 (0)