Client Character
Import
Methods
listenSelectedCharacter(callback, on_destroy_callback)
listenSelectedCharacter(callback, on_destroy_callback)
callback
(function) - The callback function that will be called when a character is selected.char_id
(number) - The character id of the selected character.
on_destroy_callback
(function, optional) - The callback function that will be called when the listener is destroyed.event_handler_api
(NssLibsSharedHelperEventHandlerApi) - The event handler api instance.If the callback returns
false
the listener will not be destroyed.
Returns an NssLibsSharedHelperEventHandlerApi instance. The listener is initially active.
resetAllSelectedCharacterListener()
resetAllSelectedCharacterListener()
Resets only all "on selected character" event handler of the given resource name.
Returns the current used NssLibsClientCharacterApi instance.
resetApi()
resetApi()
Resets the whole character api for the given resource name.
Returns the current used NssLibsClientCharacterApi instance.
Last updated