impl garage lock request

This commit is contained in:
Tau
2019-11-06 17:28:29 -05:00
parent 3c4087a35c
commit e5f661d405
7 changed files with 35 additions and 1 deletions
+2
View File
@@ -13,6 +13,7 @@ import { loadServerList } from "./loadServerList";
import { loadStocker } from "./loadStocker";
import { loadTeam } from "./loadTeam";
import { loadTeamRanking, loadTeamRanking2 } from "./loadTeamRanking";
import { lockGarage } from "./lockGarage";
import { lockProfile } from "./lockProfile";
import { saveExpedition } from "./saveExpedition";
import { saveProfile } from "./saveProfile";
@@ -47,6 +48,7 @@ const funcList: ReaderFn[] = [
loadTeamRanking,
loadTeamRanking2,
loadTopTen,
lockGarage,
lockProfile,
saveExpedition,
saveProfile,
+1 -1
View File
@@ -6,6 +6,6 @@ loadTopTen.msgLen = 0x00e0;
export function loadTopTen(buf: Buffer): LoadTopTenRequest {
return {
type: "load_top_ten",
type: "load_top_ten_req",
};
}
+12
View File
@@ -0,0 +1,12 @@
import { RequestCode } from "../defs";
import { LockGarageRequest } from "../request/lockGarage";
lockGarage.msgCode = 0x00a9 as RequestCode;
lockGarage.msgLen = 0x0010;
export function lockGarage(buf: Buffer): LockGarageRequest {
return {
type: "lock_garage_request",
field_0004: buf.readUInt32LE(0x0004),
};
}