Skip to content

Commit cc1ac5d

Browse files
author
kbengine
committed
up
1 parent 095c82d commit cc1ac5d

File tree

3 files changed

+10
-29
lines changed

3 files changed

+10
-29
lines changed

Assets/Scripts/u3d_scripts/UI.cs

Lines changed: 7 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -49,18 +49,14 @@ void installEvents()
4949
KBEngine.Event.registerOut("onLoginFailed", this, "onLoginFailed");
5050
KBEngine.Event.registerOut("onVersionNotMatch", this, "onVersionNotMatch");
5151
KBEngine.Event.registerOut("onScriptVersionNotMatch", this, "onScriptVersionNotMatch");
52-
KBEngine.Event.registerOut("onLoginGatewayFailed", this, "onLoginGatewayFailed");
52+
KBEngine.Event.registerOut("onLoginBaseappFailed", this, "onLoginBaseappFailed");
5353
KBEngine.Event.registerOut("onLoginSuccessfully", this, "onLoginSuccessfully");
54-
KBEngine.Event.registerOut("login_baseapp", this, "login_baseapp");
54+
KBEngine.Event.registerOut("onLoginBaseapp", this, "onLoginBaseapp");
5555
KBEngine.Event.registerOut("Loginapp_importClientMessages", this, "Loginapp_importClientMessages");
5656
KBEngine.Event.registerOut("Baseapp_importClientMessages", this, "Baseapp_importClientMessages");
5757
KBEngine.Event.registerOut("Baseapp_importClientEntityDef", this, "Baseapp_importClientEntityDef");
5858

59-
KBEngine.Event.registerOut("onImportClientMessages", this, "onImportClientMessages");
60-
KBEngine.Event.registerOut("onImportClientEntityDef", this, "onImportClientEntityDef");
61-
KBEngine.Event.registerOut("onImportServerErrorsDescr", this, "onImportServerErrorsDescr");
62-
63-
// selavatars
59+
// select-avatars
6460
KBEngine.Event.registerOut("onReqAvatarList", this, "onReqAvatarList");
6561
KBEngine.Event.registerOut("onCreateAvatarResult", this, "onCreateAvatarResult");
6662
KBEngine.Event.registerOut("onRemoveAvatar", this, "onRemoveAvatar");
@@ -351,14 +347,14 @@ public void onScriptVersionNotMatch(string verInfo, string serVerInfo)
351347
err("");
352348
}
353349

354-
public void onLoginGatewayFailed(UInt16 failedcode)
350+
public void onLoginBaseappFailed(UInt16 failedcode)
355351
{
356-
err("loginGateway is failed(登陆网关失败), err=" + KBEngineApp.app.serverErr(failedcode));
352+
err("loginBaseapp is failed(登陆网关失败), err=" + KBEngineApp.app.serverErr(failedcode));
357353
}
358354

359-
public void login_baseapp()
355+
public void onLoginBaseapp()
360356
{
361-
info("connect to loginGateway, please wait...(连接到网关, 请稍后...)");
357+
info("connect to loginBaseapp, please wait...(连接到网关, 请稍后...)");
362358
}
363359

364360
public void onLoginSuccessfully(UInt64 rndUUID, Int32 eid, Account accountEntity)
@@ -391,21 +387,6 @@ public void Baseapp_importClientEntityDef()
391387
info("importClientEntityDef ...");
392388
}
393389

394-
public void onImportClientMessages(string currserver, byte[] stream)
395-
{
396-
info("importClientMessages successfully!");
397-
}
398-
399-
public void onImportServerErrorsDescr(byte[] stream)
400-
{
401-
info("importServerErrorsDescr successfully!");
402-
}
403-
404-
public void onImportClientEntityDef(byte[] stream)
405-
{
406-
info("importClientEntityDef successfully!");
407-
}
408-
409390
public void onReqAvatarList(Dictionary<UInt64, Dictionary<string, object>> avatarList)
410391
{
411392
ui_avatarList = avatarList;

Assets/Scripts/u3d_scripts/World.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ void installEvents()
3535
KBEngine.Event.registerOut("onLeaveWorld", this, "onLeaveWorld");
3636
KBEngine.Event.registerOut("set_position", this, "set_position");
3737
KBEngine.Event.registerOut("set_direction", this, "set_direction");
38-
KBEngine.Event.registerOut("update_position", this, "update_position");
38+
KBEngine.Event.registerOut("updatePosition", this, "updatePosition");
3939
KBEngine.Event.registerOut("set_HP", this, "set_HP");
4040
KBEngine.Event.registerOut("set_MP", this, "set_MP");
4141
KBEngine.Event.registerOut("set_HP_Max", this, "set_HP_Max");
@@ -222,7 +222,7 @@ public void set_position(KBEngine.Entity entity)
222222
((UnityEngine.GameObject)entity.renderObj).GetComponent<GameEntity>().position = entity.position;
223223
}
224224

225-
public void update_position(KBEngine.Entity entity)
225+
public void updatePosition(KBEngine.Entity entity)
226226
{
227227
if(entity.renderObj == null)
228228
return;

0 commit comments

Comments
 (0)