mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-15 11:03:00 +01:00
Improve type definitions
This commit is contained in:
28
distribution/openrct2.d.ts
vendored
28
distribution/openrct2.d.ts
vendored
@@ -2243,51 +2243,61 @@ declare global {
|
||||
'restart' |
|
||||
'end';
|
||||
|
||||
interface TitleSequenceCommand {
|
||||
interface TitleSequenceCommandBase {
|
||||
type: TitleSequenceCommandType;
|
||||
}
|
||||
|
||||
interface LoadTitleSequenceCommand extends TitleSequenceCommand {
|
||||
interface LoadTitleSequenceCommand extends TitleSequenceCommandBase {
|
||||
type: 'load';
|
||||
index: number;
|
||||
}
|
||||
|
||||
interface LocationTitleSequenceCommand extends TitleSequenceCommand {
|
||||
interface LocationTitleSequenceCommand extends TitleSequenceCommandBase {
|
||||
type: 'location';
|
||||
x: number;
|
||||
y: number;
|
||||
}
|
||||
|
||||
interface RotateTitleSequenceCommand extends TitleSequenceCommand {
|
||||
interface RotateTitleSequenceCommand extends TitleSequenceCommandBase {
|
||||
type: 'rotate';
|
||||
rotations: number;
|
||||
}
|
||||
|
||||
interface ZoomTitleSequenceCommand extends TitleSequenceCommand {
|
||||
interface ZoomTitleSequenceCommand extends TitleSequenceCommandBase {
|
||||
type: 'zoom';
|
||||
zoom: number;
|
||||
}
|
||||
|
||||
interface FollowTitleSequenceCommand extends TitleSequenceCommand {
|
||||
interface FollowTitleSequenceCommand extends TitleSequenceCommandBase {
|
||||
type: 'follow';
|
||||
id: number | null;
|
||||
}
|
||||
|
||||
interface SpeedTitleSequenceCommand extends TitleSequenceCommand {
|
||||
interface SpeedTitleSequenceCommand extends TitleSequenceCommandBase {
|
||||
type: 'speed';
|
||||
speed: number;
|
||||
}
|
||||
|
||||
interface WaitTitleSequenceCommand extends TitleSequenceCommand {
|
||||
interface WaitTitleSequenceCommand extends TitleSequenceCommandBase {
|
||||
type: 'wait';
|
||||
duration: number;
|
||||
}
|
||||
|
||||
interface LoadScenarioTitleSequenceCommand extends TitleSequenceCommand {
|
||||
interface LoadScenarioTitleSequenceCommand extends TitleSequenceCommandBase {
|
||||
type: 'loadsc';
|
||||
scenario: string;
|
||||
}
|
||||
|
||||
type TitleSequenceCommand =
|
||||
LoadTitleSequenceCommand |
|
||||
LocationTitleSequenceCommand |
|
||||
RotateTitleSequenceCommand |
|
||||
ZoomTitleSequenceCommand |
|
||||
FollowTitleSequenceCommand |
|
||||
SpeedTitleSequenceCommand |
|
||||
WaitTitleSequenceCommand |
|
||||
LoadScenarioTitleSequenceCommand;
|
||||
|
||||
interface TitleSequenceManager {
|
||||
/**
|
||||
* Gets all the available title sequences.
|
||||
|
||||
Reference in New Issue
Block a user