Rename CreateAutoTeam req/res

This commit is contained in:
Tau
2019-11-06 17:28:29 -05:00
parent 697ed5f58d
commit 18654f1459
14 changed files with 45 additions and 45 deletions
-14
View File
@@ -1,14 +0,0 @@
import { RequestCode } from "./_defs";
import { CreateTeamRequest } from "../request/createTeam";
createTeam.msgCode = 0x007b as RequestCode;
createTeam.msgLen = 0x0010;
export function createTeam(buf: Buffer): CreateTeamRequest {
return {
type: "create_team_req",
field_0004: buf.readUInt32LE(0x0004),
field_0008: buf.readUInt32LE(0x0008),
field_000C: buf.readUInt8(0x000c),
};
}
+2 -2
View File
@@ -2,7 +2,7 @@ import { Transform } from "stream";
import { saveTimeAttack } from "./saveTimeAttack";
import { createProfile } from "./createProfile";
import { createTeam } from "./createTeam";
import { joinAutoTeam } from "./joinAutoTeam";
import { discoverProfile } from "./discoverProfile";
import { load2on2 } from "./load2on2";
import { loadConfig } from "./loadConfig";
@@ -42,7 +42,7 @@ export type ReaderFn = ((buf: Buffer) => Request) & {
const funcList: ReaderFn[] = [
createProfile,
createTeam,
joinAutoTeam,
discoverProfile,
load2on2,
loadConfig,
+14
View File
@@ -0,0 +1,14 @@
import { RequestCode } from "./_defs";
import { JoinAutoTeamRequest } from "../request/joinAutoTeam";
joinAutoTeam.msgCode = 0x007b as RequestCode;
joinAutoTeam.msgLen = 0x0010;
export function joinAutoTeam(buf: Buffer): JoinAutoTeamRequest {
return {
type: "join_auto_team_req",
field_0004: buf.readUInt32LE(0x0004),
field_0008: buf.readUInt32LE(0x0008),
field_000C: buf.readUInt8(0x000c),
};
}