idz: Rename model Id<> to ExtId<>
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user