本文整理匯總了TypeScript中@csegames/camelot-unchained.events.off方法的典型用法代碼示例。如果您正苦於以下問題:TypeScript events.off方法的具體用法?TypeScript events.off怎麽用?TypeScript events.off使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類@csegames/camelot-unchained.events
的用法示例。
在下文中一共展示了events.off方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的TypeScript代碼示例。
示例1: unregisterOtherPatcherHubEvents
function unregisterOtherPatcherHubEvents(apiHost: string) {
if (
!window[PATCHER_HUB_WINDOW_ID] ||
!window[PATCHER_HUB_WINDOW_ID].hubs ||
!window[PATCHER_HUB_WINDOW_ID].eventListeners
) {
return;
}
const characterUpdatedEvent = signalr.getPatcherEventName(apiHost, signalr.PATCHER_EVENTS_CHARACTERUPDATED);
events.off(window[PATCHER_HUB_WINDOW_ID].eventListeners[characterUpdatedEvent]);
window[PATCHER_HUB_WINDOW_ID].hubs.eventListeners[characterUpdatedEvent] = null;
const characterRemovedEvent = signalr.getPatcherEventName(apiHost, signalr.PATCHER_EVENTS_CHARACTERREMOVED);
events.off(window[PATCHER_HUB_WINDOW_ID].eventListeners[characterRemovedEvent]);
window[PATCHER_HUB_WINDOW_ID].hubs.eventListeners[characterRemovedEvent] = null;
}
示例2: offHideContextMenu
export function offHideContextMenu(handle: number) {
events.off(handle);
}
示例3: offHideTooltip
export function offHideTooltip(handle: number) {
events.off(handle);
}
示例4: offSystemMessage
export function offSystemMessage(handle: number) {
events.off(handle);
}