idz: Rename model Id<> to ExtId<>

This commit is contained in:
Tau
2019-11-06 17:28:30 -05:00
parent 84541e245c
commit 6516dc812d
28 changed files with 75 additions and 72 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
import { bitmap } from "./_bitmap";
import { chara } from "./_chara";
import { RequestCode } from "./_defs";
import { BackgroundCode, Id } from "../model/base";
import { BackgroundCode, ExtId } from "../model/base";
import { CarSelector } from "../model/car";
import { Profile } from "../model/profile";
import { SaveStockerRequest } from "../request/saveStocker";
@@ -12,7 +12,7 @@ saveStocker.msgLen = 0x00c0;
export function saveStocker(buf: Buffer): SaveStockerRequest {
return {
type: "save_stocker_req",
profileId: buf.readUInt32LE(0x0004) as Id<Profile>,
profileId: buf.readUInt32LE(0x0004) as ExtId<Profile>,
backgrounds: bitmap(buf.slice(0x0008, 0x002c)) as BackgroundCode[],
selectedCar: buf.readUInt16LE(0x009c) as CarSelector,