wip crack decoder

This commit is contained in:
Tau
2019-11-06 17:28:29 -05:00
parent 6a8d9a4d28
commit 1d5971b2d5
23 changed files with 464 additions and 307 deletions
+14
View File
@@ -0,0 +1,14 @@
import { RequestCode } from "../defs";
import { SaveTopicRequest } from "../request/saveTopic";
saveTopic.msgCode = 0x009a as RequestCode;
saveTopic.msgLen = 0x0010;
export function saveTopic(buf: Buffer): SaveTopicRequest {
const aimeId = buf.readUInt32LE(0x0004);
return {
type: "save_topic_req",
aimeId: aimeId !== 0xffffffff ? aimeId : undefined,
};
}