Rename CreateAutoTeam req/res
This commit is contained in:
@@ -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,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,
|
||||
|
||||
@@ -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),
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user