assorted shit
This commit is contained in:
@@ -11,9 +11,9 @@ export function car(buf: Buffer): Car {
|
||||
field_00: buf.readUInt16LE(0x0000),
|
||||
field_02: buf.readUInt16LE(0x0002),
|
||||
field_04,
|
||||
model: buf.readUInt16LE(0x0044),
|
||||
color: buf.readUInt16LE(0x0046),
|
||||
transmission: buf.readUInt16LE(0x0048),
|
||||
field_44: buf.readUInt16LE(0x0044),
|
||||
field_46: buf.readUInt16LE(0x0046),
|
||||
field_48: buf.readUInt16LE(0x0048),
|
||||
field_4A: buf.readUInt16LE(0x004a),
|
||||
field_4C: buf.readUInt32LE(0x004c),
|
||||
field_50_lo: buf.readUInt32LE(0x0050),
|
||||
|
||||
@@ -32,6 +32,7 @@ import { loadTopTen } from "./loadTopTen";
|
||||
import { updateResult } from "./updateResult";
|
||||
import { updateTeamPoints } from "./updateTeamPoints";
|
||||
import { updateUiReport } from "./updateUiReport";
|
||||
import { updateUserLog } from "./updateUserLog";
|
||||
|
||||
export type ReaderFn = ((buf: Buffer) => Request) & {
|
||||
msgCode: RequestCode;
|
||||
@@ -70,6 +71,7 @@ const funcList: ReaderFn[] = [
|
||||
updateStoryClearNum,
|
||||
updateTeamPoints,
|
||||
updateUiReport,
|
||||
updateUserLog,
|
||||
];
|
||||
|
||||
const readerFns = new Map<RequestCode, ReaderFn>();
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import { car } from "./_car";
|
||||
import { RequestCode } from "./_defs";
|
||||
import { Id, TitleCode } from "../model/base";
|
||||
import { Profile } from "../model/profile";
|
||||
@@ -35,6 +36,7 @@ export function saveProfile(buf: Buffer): SaveProfileRequest {
|
||||
fame: buf.readUInt32LE(0x0468),
|
||||
dpoint: buf.readUInt32LE(0x0464),
|
||||
titles: bitmap(buf.slice(0x0042, 0x00f6)) as TitleCode[],
|
||||
car: car(buf.slice(0x0834, 0x0894)),
|
||||
story: {
|
||||
x: buf.readUInt16LE(0x06fc),
|
||||
y: buf.readUInt8(0x06e0),
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
import { RequestCode } from "./_defs";
|
||||
import { UpdateUserLogRequest } from "../request/updateUserLog";
|
||||
|
||||
updateUserLog.msgCode = 0x00bd as RequestCode;
|
||||
updateUserLog.msgLen = 0x0050;
|
||||
|
||||
export function updateUserLog(buf: Buffer): UpdateUserLogRequest {
|
||||
return { type: "update_user_log_req" };
|
||||
}
|
||||
Reference in New Issue
Block a user