Files
djhackersdev_minime/src/idz/encoder/loadConfig.ts
T
Tau 6b58c4d722 idz: Add server version to config message
This allows idz v1.31 to proceed with network startup.
2019-11-06 17:28:30 -05:00

12 lines
291 B
TypeScript

import { LoadConfigResponse } from "../response/loadConfig";
export function loadConfig(res: LoadConfigResponse) {
const buf = Buffer.alloc(0x01a0);
buf.writeInt16LE(0x0005, 0x0000);
buf.writeInt8(res.status, 0x0002);
buf.writeUInt16LE(res.serverVersion, 0x0016);
return buf;
}