add post-race msgs

This commit is contained in:
Tau
2019-11-06 17:28:29 -05:00
parent 1ced1e977d
commit 9bdc840019
19 changed files with 223 additions and 13 deletions
+9
View File
@@ -0,0 +1,9 @@
import { CheckRankResponse } from "../response/checkRank";
export function checkRank(res: CheckRankResponse): Buffer {
const buf = Buffer.alloc(0x00b0);
buf.writeUInt16LE(0x00ce, 0x0000);
return buf;
}
+7 -3
View File
@@ -1,10 +1,10 @@
import { Transform } from "stream";
import { _team } from "./_team";
import { lockProfile } from "./lockProfile";
import { unlockProfile } from "./unlockProfile";
import { checkRank } from "./checkRank";
import { discoverProfile } from "./discoverProfile";
import { generic } from "./generic";
import { lockProfile } from "./lockProfile";
import { load2on2 } from "./load2on2";
import { loadConfig } from "./loadConfig";
import { loadConfig2 } from "./loadConfig2";
@@ -15,16 +15,20 @@ import { loadRewardTable } from "./loadRewardTable";
import { loadServerList } from "./loadServerList";
import { loadStocker } from "./loadStocker";
import { loadTeamRanking } from "./loadTeamRanking";
import { loadTopTen } from "./loadTopTen";
import { saveExpedition } from "./saveExpedition";
import { saveGarage } from "./saveGarage";
import { saveTopic } from "./saveTopic";
import { unlockProfile } from "./unlockProfile";
import { updateProvisionalStoreRank } from "./updateProvisionalStoreRank";
import { updateStoryClearNum } from "./updateStoryClearNum";
import { Response } from "../response";
import { loadTopTen } from "./loadTopTen";
function encode(res: Response): Buffer {
switch (res.type) {
case "check_rank_res":
return checkRank(res);
case "create_team_res":
return _team(res);