35 lines
1.2 KiB
TypeScript
35 lines
1.2 KiB
TypeScript
|
import { JlGraphic, JlGraphicTemplate } from "jl-graphic";
|
||
|
import { Container, Graphics } from 'pixi.js';
|
||
|
import { CategoryType, DoorConstsConfig, IPlatformData, IPlatformState, PlatformConstsConfig } from './PlatformConfig';
|
||
|
declare class RectGraphic extends Container {
|
||
|
static Type: string;
|
||
|
rectGraphic: Graphics;
|
||
|
constructor();
|
||
|
draw(platformConsts: PlatformConstsConfig): void;
|
||
|
clear(): void;
|
||
|
}
|
||
|
declare class DoorGraphic extends Container {
|
||
|
static Type: string;
|
||
|
doorGraphic: Graphics;
|
||
|
doorCloseGraphic: Graphics;
|
||
|
constructor();
|
||
|
draw(platformConsts: PlatformConstsConfig, doorConstsConfig: DoorConstsConfig): void;
|
||
|
clear(): void;
|
||
|
}
|
||
|
export declare class Platform extends JlGraphic {
|
||
|
static Type: string;
|
||
|
private categoryType;
|
||
|
rectGraphic: RectGraphic;
|
||
|
doorGraphic: DoorGraphic;
|
||
|
constructor(categoryType: CategoryType);
|
||
|
get datas(): IPlatformData;
|
||
|
get states(): IPlatformState;
|
||
|
doRepaint(): void;
|
||
|
}
|
||
|
export declare class PlatformTemplate extends JlGraphicTemplate<Platform> {
|
||
|
categoryType: CategoryType;
|
||
|
constructor(dataTemplate: IPlatformData, stateTemplate: IPlatformState, gategoryConsts: CategoryType);
|
||
|
new(): Platform;
|
||
|
}
|
||
|
export {};
|