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.
21 lines
643 B
TypeScript
21 lines
643 B
TypeScript
import { bitmap } from "./_bitmap";
|
|
import { chara } from "./_chara";
|
|
import { RequestCode } from "./_defs";
|
|
import { CarSelector } from "../model/car";
|
|
import { SaveStockerRequest } from "../request/saveStocker";
|
|
import { AimeId } from "../../model";
|
|
|
|
saveStocker.msgCode = 0x00a6 as RequestCode;
|
|
saveStocker.msgLen = 0x00c0;
|
|
|
|
export function saveStocker(buf: Buffer): SaveStockerRequest {
|
|
return {
|
|
type: "save_stocker_req",
|
|
aimeId: buf.readUInt32LE(0x0004) as AimeId,
|
|
|
|
backgrounds: bitmap(buf.slice(0x0008, 0x002c)),
|
|
selectedCar: buf.readUInt16LE(0x009c) as CarSelector,
|
|
chara: chara(buf.slice(0x009e, 0x00b2)),
|
|
};
|
|
}
|