mirror of
https://github.com/djhackersdev/minime.git
synced 2026-03-27 04:24:58 -05:00
idz: Fill in Load2on2Request details
This commit is contained in:
parent
5b6534ae9a
commit
dfdd775370
|
|
@ -1,4 +1,7 @@
|
|||
import { RequestCode } from "./_defs";
|
||||
import { ExtId } from "../model/base";
|
||||
import { Profile } from "../model/profile";
|
||||
import { Team } from "../model/team";
|
||||
import { Load2on2Request } from "../request/load2on2";
|
||||
|
||||
load2on2.msgCode = 0x00b0 as RequestCode;
|
||||
|
|
@ -8,7 +11,7 @@ export function load2on2(buf: Buffer): Load2on2Request {
|
|||
return {
|
||||
type: "load_2on2_req",
|
||||
field_0002: buf.readUInt16LE(0x0002),
|
||||
field_0004: buf.readUInt32LE(0x0004),
|
||||
field_0008: buf.readUInt32LE(0x0008),
|
||||
profileId: buf.readUInt32LE(0x0004) as ExtId<Profile>,
|
||||
teamId: buf.readUInt32LE(0x0008) as ExtId<Team>,
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,10 @@
|
|||
import { ExtId } from "../model/base";
|
||||
import { Profile } from "../model/profile";
|
||||
import { Team } from "../model/team";
|
||||
|
||||
export interface Load2on2Request {
|
||||
type: "load_2on2_req";
|
||||
field_0002: number;
|
||||
field_0004: number;
|
||||
field_0008: number;
|
||||
profileId: ExtId<Profile>;
|
||||
teamId: ExtId<Team>;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user