2023-12-25 17:20:03 +08:00
|
|
|
import { JlGraphic, JlGraphicTemplate, VectorText } from "jl-graphic";
|
2023-12-25 13:25:01 +08:00
|
|
|
import { Container, Graphics } from 'pixi.js';
|
2023-12-25 17:20:03 +08:00
|
|
|
import { CategoryType, IBriJingPlatformState, IPlatformData, IXiAnPlatformState, PlatformConstsConfig } from './PlatformConfig';
|
|
|
|
type IPlatformState = IBriJingPlatformState | IXiAnPlatformState;
|
2023-12-25 13:25:01 +08:00
|
|
|
declare class RectGraphic extends Container {
|
|
|
|
static Type: string;
|
|
|
|
rectGraphic: Graphics;
|
|
|
|
constructor();
|
2023-12-25 17:20:03 +08:00
|
|
|
draw(state: IPlatformState, platformConsts: PlatformConstsConfig): void;
|
2023-12-25 13:25:01 +08:00
|
|
|
clear(): void;
|
|
|
|
}
|
2023-12-25 17:20:03 +08:00
|
|
|
export declare class DoorGraphic extends Container {
|
2023-12-25 13:25:01 +08:00
|
|
|
static Type: string;
|
|
|
|
doorGraphic: Graphics;
|
|
|
|
doorCloseGraphic: Graphics;
|
|
|
|
constructor();
|
2023-12-25 17:20:03 +08:00
|
|
|
draw(stateData: IXiAnPlatformState, ipRtuStusDown: boolean, platformConsts: PlatformConstsConfig): void;
|
|
|
|
clear(): void;
|
|
|
|
changeState(stateData: IXiAnPlatformState): 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(stateData: IXiAnPlatformState, platformConsts: PlatformConstsConfig): void;
|
|
|
|
}
|
|
|
|
declare class LozengeGraphic extends Container {
|
|
|
|
static Type: string;
|
|
|
|
lozengeGraphic: Graphics;
|
|
|
|
constructor();
|
|
|
|
draw(platformConsts: PlatformConstsConfig): void;
|
2023-12-25 13:25:01 +08:00
|
|
|
clear(): void;
|
2023-12-25 17:20:03 +08:00
|
|
|
changeState(stateData: IXiAnPlatformState): void;
|
2023-12-25 13:25:01 +08:00
|
|
|
}
|
|
|
|
export declare class Platform extends JlGraphic {
|
|
|
|
static Type: string;
|
|
|
|
private categoryType;
|
|
|
|
rectGraphic: RectGraphic;
|
2023-12-25 17:20:03 +08:00
|
|
|
doorGraphic?: DoorGraphic;
|
|
|
|
lozengeGraphic?: LozengeGraphic;
|
|
|
|
codeGraph?: CodeGraph;
|
2023-12-25 13:25:01 +08:00
|
|
|
constructor(categoryType: CategoryType);
|
|
|
|
get datas(): IPlatformData;
|
|
|
|
get states(): IPlatformState;
|
|
|
|
doRepaint(): void;
|
2023-12-25 17:20:03 +08:00
|
|
|
changeState(): void;
|
2023-12-25 13:25:01 +08:00
|
|
|
}
|
|
|
|
export declare class PlatformTemplate extends JlGraphicTemplate<Platform> {
|
|
|
|
categoryType: CategoryType;
|
|
|
|
constructor(dataTemplate: IPlatformData, stateTemplate: IPlatformState, gategoryConsts: CategoryType);
|
|
|
|
new(): Platform;
|
|
|
|
}
|
|
|
|
export {};
|