Begin garage ops

This commit is contained in:
Tau
2019-11-06 17:28:29 -05:00
parent 9da2c7f8a6
commit 443c327680
16 changed files with 143 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
import { RequestCode } from "./_defs";
import { Id } from "../model/base";
import { Profile } from "../model/profile";
import { LoadGarageRequest } from "../request/loadGarage";
loadGarage.msgCode = 0x0090 as RequestCode;
loadGarage.msgLen = 0x0010;
export function loadGarage(buf: Buffer): LoadGarageRequest {
return {
type: "load_garage_req",
profileId: buf.readUInt32LE(0x0004) as Id<Profile>,
fetchOffset: buf.readUInt8(0x0008),
field_000A: buf.readUInt16LE(0x000a),
};
}