This commit is contained in:
Tau
2019-11-06 17:28:30 -05:00
parent fecc0e7981
commit 5b6534ae9a
11 changed files with 61 additions and 1 deletions
+4
View File
@@ -9,6 +9,7 @@ import { lockProfile } from "./lockProfile";
import { load2on2 } from "./load2on2";
import { loadConfig } from "./loadConfig";
import { loadConfig2 } from "./loadConfig2";
import { loadEventInfo } from "./loadEventInfo";
import { loadGarage } from "./loadGarage";
import { loadGeneralReward } from "./loadGeneralReward";
import { loadGhost } from "./loadGhost";
@@ -54,6 +55,9 @@ function encode(res: Response): Buffer {
case "load_config_v2_res":
return loadConfig2(res);
case "load_event_info_res":
return loadEventInfo(res);
case "load_garage_res":
return loadGarage(res);
+9
View File
@@ -0,0 +1,9 @@
import { LoadEventInfoResponse } from "../response/loadEventInfo";
export function loadEventInfo(res: LoadEventInfoResponse): Buffer {
const buf = Buffer.alloc(0x01b0);
buf.writeUInt16LE(0x00bf, 0x0000);
return buf;
}