本文整理匯總了TypeScript中@csegames/camelot-unchained.events.fire方法的典型用法代碼示例。如果您正苦於以下問題:TypeScript events.fire方法的具體用法?TypeScript events.fire怎麽用?TypeScript events.fire使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類@csegames/camelot-unchained.events
的用法示例。
在下文中一共展示了events.fire方法的8個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的TypeScript代碼示例。
示例1: setActiveWarbandID
export function setActiveWarbandID(id: string) {
const stateObjectID = getStateObject().id;
if (stateObjectID) {
events.fire('chat-leave-room', stateObjectID);
}
if (typeof id === 'string') {
events.fire('chat-show-room', id, 'Warband');
}
getStateObject().id = id;
getStateObject().membersMap = {};
getStateObject().membersEntityIDMap = {};
}
示例2: releaseUIKeydown
export function releaseUIKeydown() {
const shouldFullscreenListen = true;
events.fire('hudfullscreen-shouldListenKeydown', shouldFullscreenListen);
}
示例3: requestUIKeydown
export function requestUIKeydown() {
const shouldFullscreenListen = false;
events.fire('hudfullscreen-shouldListenKeydown', shouldFullscreenListen);
}
示例4:
client.OnToggleHUDItem((name: string) => {
events.fire('hudnav--navigate', name);
});
示例5: showCompassTooltip
export function showCompassTooltip(tooltip: CompassTooltipData) {
events.fire('compass-tooltip--show', tooltip);
}
示例6: hideCompassTooltip
export function hideCompassTooltip(id: string) {
events.fire('compass-tooltip--hide', id);
}
示例7: updateCompassTooltip
export function updateCompassTooltip(tooltip: CompassTooltipData) {
events.fire('compass-tooltip--update', tooltip);
}
示例8: hideTooltip
export function hideTooltip() {
events.fire(HIDE_TOOLTIP);
}