Files
djhackersdev_minime/src/idz/request/saveProfile.ts
T
Tau c2b0bcabc4 idz: Remove profile ext id
Turns out (while researching team creation) the profile ext id
is just the aime id. After creating a team a profile discovery
request is immediately issued with the "profile id" in the field
that holds the aime id during initial profile load.
2019-11-06 17:28:30 -05:00

39 lines
1018 B
TypeScript

import { BackgroundCode, CourseNo, ExtId, TitleCode } from "../model/base";
import { Car } from "../model/car";
import { MissionState } from "../model/mission";
import { Settings } from "../model/settings";
import { Story } from "../model/story";
import { Tickets } from "../model/tickets";
import { Unlocks } from "../model/unlocks";
import { AimeId } from "../../model";
interface SaveProfileRequestBase {
type: "save_profile_req";
aimeId: AimeId;
lv: number;
exp: number;
fame: number;
dpoint: number;
mileage: number;
title: TitleCode;
titles: Set<TitleCode>;
background: BackgroundCode;
coursePlays: Map<CourseNo, number>;
missions: MissionState;
car: Car;
story: Story;
unlocks: Unlocks;
tickets: Tickets;
settings: Settings;
}
export interface SaveProfileRequest2 extends SaveProfileRequestBase {
format: 2;
}
export interface SaveProfileRequest3 extends SaveProfileRequestBase {
format: 3;
}
export type SaveProfileRequest = SaveProfileRequest2 | SaveProfileRequest3;