53 lines
1.7 KiB
TypeScript
53 lines
1.7 KiB
TypeScript
import { JlGraphic, VectorText } from 'jl-graphic';
|
|
import { Container, Graphics } from 'pixi.js';
|
|
import { CategoryType, IPlatformData, PlatformConstsConfig } from './PlatformConfig';
|
|
declare class RectGraphic extends Container {
|
|
categoryType: CategoryType;
|
|
rect: Graphics;
|
|
stateFillColor?: string;
|
|
constructor(categoryType: CategoryType);
|
|
draw(platformConsts: PlatformConstsConfig): void;
|
|
clear(): void;
|
|
}
|
|
declare class DoorGraphic extends Container {
|
|
categoryType: CategoryType;
|
|
doorGraphic: Graphics;
|
|
doorCloseGraphic: Graphics;
|
|
stateFillColor?: string;
|
|
constructor(categoryType: CategoryType);
|
|
draw(platformConsts: PlatformConstsConfig): void;
|
|
clear(): void;
|
|
}
|
|
declare class CodeGraphic extends Container {
|
|
categoryType: CategoryType;
|
|
character: VectorText;
|
|
runLevel: VectorText;
|
|
runTime: VectorText;
|
|
stopTime: VectorText;
|
|
circle: Graphics;
|
|
constructor(categoryType: CategoryType, platformConsts: PlatformConstsConfig);
|
|
draw(platformConsts: PlatformConstsConfig): void;
|
|
clear(): void;
|
|
}
|
|
declare class LozengeGraphic extends Container {
|
|
categoryType: CategoryType;
|
|
lozenge: Graphics;
|
|
constructor(categoryType: CategoryType);
|
|
draw(platformConsts: PlatformConstsConfig): void;
|
|
clear(): void;
|
|
}
|
|
export declare abstract class JlPlatform extends JlGraphic {
|
|
static Type: string;
|
|
private categoryType;
|
|
private platformConsts;
|
|
rectGraphic: RectGraphic;
|
|
doorGraphic?: DoorGraphic;
|
|
lozengeGraphic?: LozengeGraphic;
|
|
codeGraphic?: CodeGraphic;
|
|
constructor(categoryType: CategoryType);
|
|
get datas(): IPlatformData;
|
|
get code(): string;
|
|
doRepaint(): void;
|
|
}
|
|
export {};
|