Skip to content

five-on-it / packages/protocol/src/platform / RunResult

Variable: RunResult ​

const RunResult: ZodObject<{ debug: ZodOptional<ZodBoolean>; forfeit: ZodOptional<ZodBoolean>; missionHash: ZodString; outcome: ZodEnum<{ abandoned: "abandoned"; complete: "complete"; draw: "draw"; failed: "failed"; won: "won"; }>; runId: ZodString; seats: ZodArray<ZodObject<{ account: ZodString; afkS: ZodNumber; catches: ZodOptional<ZodNumber>; caught: ZodOptional<ZodNumber>; connectedS: ZodNumber; credit: ZodNumber; downs: ZodNumber; joinedS: ZodOptional<ZodNumber>; kickedBy: ZodOptional<ZodNumber>; kickRoom: ZodOptional<ZodNumber>; kickVoters: ZodOptional<ZodArray<ZodString>>; leftEarly: ZodBoolean; leftS: ZodOptional<ZodNumber>; place: ZodOptional<ZodNumber>; sabotage: ZodOptional<ZodNumber>; takedowns: ZodOptional<ZodNumber>; team: ZodString; teamDamage: ZodNumber; teamHitPeak: ZodOptional<ZodNumber>; teamKills: ZodNumber; }, $strip>>; seconds: ZodNumber; winner: ZodOptional<ZodString>; }, $strip>

Defined in: packages/protocol/src/platform.ts:181

How a run ended, as its game server reports it to the platform (POST /runs/:id/result with the run's token): complete, failed (the retries used up) or abandoned (everyone left, or the room closed under it); a versus run won (by its winner, a team's id; forfeit when every other team was left empty) or a draw; how long it ran (s); the SHA-256 of its mission's document (P3 counts a mission's plays by it); and each seat's part: its account and team, how long it was connected (s), whether it left before the end, its credit (the objectives it did, the mission's enemies it hit, the rivals it caught and put down), how often it went down, the damage it did to teammates and the teammates it killed, how long it stood idle while connected (s), and in versus how often it was caught, the rivals it caught and put down, and its place in a race between the players. Then what the platform's conduct reads (P3): the attempts of the run that failed by this seat's hit on one of the mission's people it was not meant to hurt (sabotage), the yes votes from outside its party that voted it out of the room (kickedBy, with those voters' accounts, kickVoters, and how many players outside its party were in the room then, kickRoom; present only when it was voted out), and the most it hurt any one teammate, as a share of that teammate's health (teamHitPeak). A seat's span when it was not the whole run (P4: seats filled under way): when it joined (joinedS, s after the run went live: a seat added under way) and when it was given up for good (leftS: its player dropped and never came back, or never came); the platform judges its presence and pays its Respect against that span. debug says a debug command was honoured in the run's room (a player whose join token carried debug): such a run pays nothing and counts for nothing. The object takes keys it does not know.