Skip to content

Commit

Permalink
feat: move momentum zone types out of types repo
Browse files Browse the repository at this point in the history
  • Loading branch information
PeenScreeker committed Aug 1, 2024
1 parent bbfa351 commit f3a087f
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 1 deletion.
54 changes: 54 additions & 0 deletions scripts/pages/zoning/zoning.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,57 @@
/***************************************************************************************** */

interface Region extends JsonObject {
points: number[][];
bottom: number;
height: number;
teleDestTargetname: string; // mutually exclusive to other two teleport fields
teleDestPos: number[]; // TODO: This below are required if region is part of a volume used by stafe or major checkpoint zone
teleDestYaw: number; // See convo in mom red 25/09/23 02:00 GMT
safeHeight: number;
}

interface Zone extends JsonObject {
regions: Region[];
filtername: string;
}

interface Segment extends JsonObject {
limitStartGroundSpeed: boolean;
checkpointsRequired: boolean;
checkpointsOrdered: boolean;
checkpoints: Zone[];
cancel: Zone[];
name: string;
}

interface TrackZones extends JsonObject {
segments: Segment[];
end: Zone;
}

interface MainTrack extends JsonObject {
zones: TrackZones;
stagesEndAtStageStarts: boolean;
}

interface BonusTrack extends JsonObject {
zones: TrackZones;
defragFlags: number;
}

interface MapTracks extends JsonObject {
main: MainTrack;
bonuses: BonusTrack[];
}

interface ZoneDef extends JsonObject {
formatVersion: number;
dataTimestamp: number;
maxVelocity: number;
tracks: MapTracks;
}
/**************************************************************************************************************/

/**
* Zoning UI logic
*/
Expand Down
2 changes: 1 addition & 1 deletion scripts/types

0 comments on commit f3a087f

Please sign in to comment.