rt-graphic-component/components/packages/Platform/JlPlatform.d.ts
2024-01-11 09:21:44 +08:00

56 lines
1.7 KiB
TypeScript

import { JlGraphic, VectorText } from 'jl-graphic';
import { Container, Graphics } from 'pixi.js';
import { IPlatformData, PlatformConstsConfig } from './PlatformConfig';
declare class RectGraphic extends Container {
rect: Graphics;
stateFillColor?: string;
constructor();
draw(platformConsts: PlatformConstsConfig): void;
clear(): void;
}
declare class DoorGraphic extends Container {
doorGraphic: Graphics;
doorCloseGraphic: Graphics;
stateFillColor?: string;
constructor();
draw(platformConsts: PlatformConstsConfig): void;
clear(): void;
}
declare class CodeGraphic extends Container {
character: VectorText;
runLevel: VectorText;
runTime: VectorText;
stopTime: VectorText;
circle: Graphics;
constructor(platformConsts: PlatformConstsConfig);
draw(platformConsts: PlatformConstsConfig): void;
clear(): void;
}
declare class LozengeGraphic extends Container {
lozenge: Graphics;
constructor();
draw(platformConsts: PlatformConstsConfig): void;
clear(): void;
}
export declare class DoorCodeLozenge extends Container {
private platformConsts;
doorGraphic: DoorGraphic;
lozengeGraphic: LozengeGraphic;
codeGraphic: CodeGraphic;
constructor(platformConsts: PlatformConstsConfig);
draw(hasDoor: boolean, direction: string): void;
}
export declare abstract class JlPlatform extends JlGraphic {
static Type: string;
private platformConsts;
rectGraphic: RectGraphic;
constructor(platformConsts: PlatformConstsConfig);
get datas(): IPlatformData;
get code(): string;
draw(): void;
buildCommonRelation(): void;
saveCommonRelations(): void;
loadCommonRelations(): void;
}
export {};