idz: Add idz2 decoders
This commit is contained in:
committed by
da5669c09fdb0a288ba01e259a609d7779ac7fc9
parent
4c36e0abf0
commit
2474879c89
@@ -2,10 +2,10 @@ import { CreateTeamRequest } from "../request/createTeam";
|
||||
import { AimeId } from "../../../model";
|
||||
import { readAsciiStr, readSjisStr } from "../../util/bin";
|
||||
|
||||
createTeam.msgCode = 0x0071;
|
||||
createTeam.msgLen = 0x0050;
|
||||
createTeam1.msgCode = 0x0071;
|
||||
createTeam1.msgLen = 0x0050;
|
||||
|
||||
export function createTeam(buf: Buffer): CreateTeamRequest {
|
||||
export function createTeam1(buf: Buffer): CreateTeamRequest {
|
||||
return {
|
||||
type: "create_team_req",
|
||||
aimeId: buf.readUInt32LE(0x0004) as AimeId,
|
||||
@@ -19,3 +19,21 @@ export function createTeam(buf: Buffer): CreateTeamRequest {
|
||||
pcbId: readAsciiStr(buf, 0x0038, 0x0050),
|
||||
};
|
||||
}
|
||||
|
||||
createTeam2.msgCode = 0x006d;
|
||||
createTeam2.msgLen = 0x0050;
|
||||
|
||||
export function createTeam2(buf: Buffer): CreateTeamRequest {
|
||||
return {
|
||||
type: "create_team_req",
|
||||
aimeId: buf.readUInt32LE(0x0004) as AimeId,
|
||||
version: 2,
|
||||
teamName: readSjisStr(buf, 0x0008, 0x0028),
|
||||
field_0028: buf.readUInt16LE(0x0028),
|
||||
field_002C: buf.readUInt32LE(0x002c),
|
||||
nameBg: buf.readUInt8(0x0030),
|
||||
field_0032: buf.readUInt16LE(0x0032),
|
||||
prevTeamId: buf.readUInt32LE(0x0034),
|
||||
pcbId: readAsciiStr(buf, 0x0038, 0x0050),
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user