kbengine java_死了吼/kbengine_js_plugins

何麻雀
2023-12-01

Entity events:

onEnterWorld

Description:

Entity enter the client-world.

Event-datas:

Enity

onLeaveWorld

Description:

Entity leave the client-world.

Event-datas:

Enity

onEnterSpace

Description:

Player enter the new space.

Event-datas:

Enity

onLeaveSpace

Description:

Player enter the space.

Event-datas:

Enity

onCreateAccountResult

Description:

Create account feedback results.

Event-datas:

uint16: retcode

http://kbengine.org/docs/configuration/server_errors.html

bytes: datas

If you use third-party account system, the system may fill some of the third-party additional datas.

onControlled

Description:

Triggered when the entity is controlled or out of control.

Event-datas:

Enity

bool: isControlled

onLoseControlledEntity

Description:

Lose controlled entity.

Event-datas:

Enity

set_position

Description:

Sets the current position of the entity.

Event-datas:

Enity

set_direction

Description:

Sets the current direction of the entity.

Event-datas:

Enity

updatePosition

Description:

The entity position is updated, you can smooth the moving entity to new location.

Event-datas:

Enity

Protocol events:

onVersionNotMatch

Description:

Engine version mismatch.

Event-datas:

string: clientVersion

string: serverVersion

onScriptVersionNotMatch

Description:

script version mismatch.

Event-datas:

string: clientScriptVersion

string: serverScriptVersion

Loginapp_importClientMessages

Description:

Importing the message protocol for loginapp and client.

Event-datas:

No datas.

Baseapp_importClientMessages

Description:

Importing the message protocol for baseapp and client.

Event-datas:

No datas.

Baseapp_importClientEntityDef

Description:

Protocol description for importing entities.

Event-datas:

No datas.

Login and Logout status:

onLoginBaseapp

Description:

Login to baseapp.

Event-datas:

No datas.

onReLoginBaseapp

Description:

Relogin to baseapp.

Event-datas:

No datas.

onKicked

Description:

Kicked of the current server.

Event-datas:

uint16: retcode

http://kbengine.org/docs/configuration/server_errors.html

onLoginFailed

Description:

Login failed.

Event-datas:

uint16: retcode

http://kbengine.org/docs/configuration/server_errors.html

onLoginBaseappFailed

Description:

Login baseapp failed.

Event-datas:

uint16: retcode

http://kbengine.org/docs/configuration/server_errors.html

onReLoginBaseappFailed

Description:

Relogin baseapp failed.

Event-datas:

uint16: retcode

http://kbengine.org/docs/configuration/server_errors.html

onReLoginBaseappSuccessfully

Description:

Relogin baseapp success.

Event-datas:

No datas.

Space events:

addSpaceGeometryMapping

Description:

The current space is specified by the geometry mapping.

Popular said is to load the specified Map Resources.

Event-datas:

string: resPath

onSetSpaceData

Description:

Server spaceData set data.

Event-datas:

int32: spaceID

string: key

string value

onDelSpaceData

Description:

Server spaceData delete data.

Event-datas:

int32: spaceID

string: key

Network events:

onConnectStatus

Description:

Status of connection server.

Event-datas:

bool: success or fail

onDisableConnect

Description:

Status of connection server.

Event-datas:

No datas.

 类似资料: