UNPKG

@game-vir/entity

Version:

Entity system for game development.

33 lines (32 loc) 1.26 kB
import { type PartialWithUndefined } from '@augment-vir/common'; import { Application, Container, Rectangle, Ticker, type ApplicationOptions } from 'pixi.js'; /** * Create a mock Pixi.js Application. Additional Application mocks can be provided that will be * merged with the base mock. (Clashing properties will be overridden by what is provided in the * additional mocks.) * * @category Mock */ export declare function createMockPixi({ mocks, options, }?: PartialWithUndefined<{ options: Partial<ApplicationOptions>; mocks: Partial<Application>; }>): MockPixiApp & Application<import("pixi.js").Renderer>; /** * Mock Pixi.js Application. This is not a complete mock (yet) and only implements partial * functionality. * * @category Internal */ export declare class MockPixiApp { /** A live Pixi.js Ticker so it can be used to trigger updates. */ readonly ticker: Ticker; readonly stage: Container<import("pixi.js").ContainerChild>; readonly screen: Rectangle; constructor(options?: Partial<ApplicationOptions>); } /** * Create an initialize a Pixi.js app all in one call. * * @category Util */ export declare function createPixi(options?: Partial<ApplicationOptions>): Promise<Application<import("pixi.js").Renderer>>;