Merge branch 'main' of https://github.com/Crepe-Inc/CrepeSR
This commit is contained in:
commit
49767f7c4c
@ -37,7 +37,7 @@ export default class Packet {
|
||||
return str.startsWith("01234567") && str.endsWith("89abcdef");
|
||||
}
|
||||
|
||||
public static encode(name: string, body: {}, customCmdId?: number): Packet | null {
|
||||
public static encode(name: PacketType, body: {}, customCmdId?: number): Packet | null {
|
||||
try {
|
||||
// @ts-ignore - Bullshit. You can just get enums by name
|
||||
const cmdid = CmdID[name];
|
||||
@ -477,4 +477,4 @@ enum CmdID {
|
||||
FinishItemIdScRsp = 2706,
|
||||
FinishSectionIdCsReq = 2707,
|
||||
FinishSectionIdScRsp = 2708,
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user