UNPKG

@woosh/meep-engine

Version:

Pure JavaScript game engine. Fully featured and production ready.

78 lines 2.08 kB
export class TooltipComponentSystem extends System<any, any, any, any, any> { /** * * @param {GraphicsEngine} graphics * @param {TooltipManager} tooltips * @param {PointerDevice} pointer * @param {Localization} localization */ constructor({ graphics, tooltips, pointer, localization }: GraphicsEngine); dependencies: (typeof TooltipComponent)[]; components_used: ResourceAccessSpecification<typeof Mesh>[]; /** * * @type {GraphicsEngine} */ graphics: GraphicsEngine; /** * * @type {TooltipManager} */ tooltips: TooltipManager; /** * * @type {PointerDevice} */ pointer: PointerDevice; /** * * @type {Localization} */ localization: Localization; /** * * @type {number} */ time_since_position_update: number; /** * Delay before tooltip appears, in seconds * @type {number} */ display_delay: number; /** * Screen-space rectangle, used by the tooltip system as the anchor to point to * @type {Rectangle} */ target: Rectangle; /** * * @type {VisualTip} */ tip: VisualTip; /** * * @type {number} * @private */ private __current_tip_entity; __clearTip(): void; __updateActiveBounds(): void; __updateTipTargetBounds(): void; /** * * @return {boolean} * @private */ private __isOnRenderCanvas; __computeTooltipTarget(): number; startup(entityManager: any): Promise<void>; shutdown(entityManager: any): Promise<void>; update(timeDelta: any): void; } import { System } from "../System.js"; import { TooltipComponent } from "./TooltipComponent.js"; import Mesh from "../../graphics/ecs/mesh/Mesh.js"; import { ResourceAccessSpecification } from "../../../core/model/ResourceAccessSpecification.js"; import Rectangle from "../../../core/geom/2d/Rectangle.js"; import { VisualTip } from "../../../view/tooltip/VisualTip.js"; //# sourceMappingURL=TooltipComponentSystem.d.ts.map