本文整理汇总了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);
}