impl garage lock request
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -6,6 +6,6 @@ loadTopTen.msgLen = 0x00e0;
|
||||
|
||||
export function loadTopTen(buf: Buffer): LoadTopTenRequest {
|
||||
return {
|
||||
type: "load_top_ten",
|
||||
type: "load_top_ten_req",
|
||||
};
|
||||
}
|
||||
|
||||
@@ -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),
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user