60 lines
2.2 KiB
TypeScript
60 lines
2.2 KiB
TypeScript
import { JlGraphic, JlGraphicTemplate, VectorText } from "jl-graphic";
|
|
import { Container, Graphics } from 'pixi.js';
|
|
import { CategoryType, IBeiJingPlatformState, IPlatformData, IXiAnPlatformState, PlatformConstsConfig } from './PlatformConfig';
|
|
type IPlatformState = IBeiJingPlatformState | IXiAnPlatformState;
|
|
declare class RectGraphic extends Container {
|
|
static Type: string;
|
|
rectGraphic: Graphics;
|
|
constructor();
|
|
draw(categoryType: CategoryType, stateData: IPlatformState, platformConsts: PlatformConstsConfig): void;
|
|
clear(): void;
|
|
}
|
|
export declare class DoorGraphic extends Container {
|
|
static Type: string;
|
|
doorGraphic: Graphics;
|
|
doorCloseGraphic: Graphics;
|
|
constructor();
|
|
draw(categoryType: CategoryType, stateData: IPlatformState, platformConsts: PlatformConstsConfig, ipRtuStusDown: boolean): void;
|
|
clear(): void;
|
|
changeState(categoryType: CategoryType, stateData: IPlatformState): void;
|
|
}
|
|
declare class CodeGraph extends Container {
|
|
static Type: string;
|
|
character: VectorText;
|
|
runLevel: VectorText;
|
|
runTime: VectorText;
|
|
stopTime: VectorText;
|
|
circle: Graphics;
|
|
constructor(platformConsts: PlatformConstsConfig);
|
|
draw(platformConsts: PlatformConstsConfig): void;
|
|
clear(): void;
|
|
changeState(categoryType: CategoryType, stateData: IPlatformState, platformConsts: PlatformConstsConfig): void;
|
|
}
|
|
declare class LozengeGraphic extends Container {
|
|
static Type: string;
|
|
lozengeGraphic: Graphics;
|
|
constructor();
|
|
draw(platformConsts: PlatformConstsConfig): void;
|
|
clear(): void;
|
|
changeState(categoryType: CategoryType, stateData: IPlatformState): void;
|
|
}
|
|
export declare class Platform extends JlGraphic {
|
|
static Type: string;
|
|
private categoryType;
|
|
rectGraphic: RectGraphic;
|
|
doorGraphic?: DoorGraphic;
|
|
lozengeGraphic?: LozengeGraphic;
|
|
codeGraph?: CodeGraph;
|
|
constructor(categoryType: CategoryType);
|
|
get datas(): IPlatformData;
|
|
get states(): IPlatformState;
|
|
doRepaint(): void;
|
|
changeState(): void;
|
|
}
|
|
export declare class PlatformTemplate extends JlGraphicTemplate<Platform> {
|
|
categoryType: CategoryType;
|
|
constructor(dataTemplate: IPlatformData, stateTemplate: IPlatformState, categoryType: CategoryType);
|
|
new(): Platform;
|
|
}
|
|
export {};
|