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.
This commit is contained in:
Tau
2019-11-06 17:28:30 -05:00
parent 7c96253160
commit c2b0bcabc4
70 changed files with 238 additions and 341 deletions
+2 -3
View File
@@ -1,7 +1,6 @@
import { RequestCode } from "./_defs";
import { LoadGachaRequest } from "../request/loadGacha";
import { ExtId } from "../model/base";
import { Profile } from "../model/profile";
import { AimeId } from "../../model";
loadGacha.msgCode = 0x00c1 as RequestCode;
loadGacha.msgLen = 0x0010;
@@ -9,6 +8,6 @@ loadGacha.msgLen = 0x0010;
export function loadGacha(buf: Buffer): LoadGachaRequest {
return {
type: "load_gacha_req",
profileId: buf.readUInt32LE(0x0004) as ExtId<Profile>,
aimeId: buf.readUInt32LE(0x0004) as AimeId,
};
}