diff --git a/distribution/openrct2.d.ts b/distribution/openrct2.d.ts index a3027ee54f..c44e70f382 100644 --- a/distribution/openrct2.d.ts +++ b/distribution/openrct2.d.ts @@ -267,7 +267,7 @@ declare global { subscribe(hook: "network.leave", callback: (e: NetworkEventArgs) => void): IDisposable; subscribe(hook: "ride.ratings.calculate", callback: (e: RideRatingsCalculateArgs) => void): IDisposable; subscribe(hook: "action.location", callback: (e: ActionLocationArgs) => void): IDisposable; - subscribe(hook: "guest.generation", callback: (id: number) => void): IDisposable; + subscribe(hook: "guest.generation", callback: (e: GuestGenerationArgs) => void): IDisposable; subscribe(hook: "vehicle.crash", callback: (e: VehicleCrashArgs) => void): IDisposable; /** @@ -519,6 +519,10 @@ declare global { result: boolean; } + interface GuestGenerationArgs { + readonly id: number; + } + type VehicleCrashIntoType = "another_vehicle" | "land" | "water"; interface VehicleCrashArgs {