Add team creation stubs

This commit is contained in:
Tau
2019-11-06 17:28:29 -05:00
parent 2da9276176
commit cacf10816a
15 changed files with 141 additions and 2 deletions
+11
View File
@@ -0,0 +1,11 @@
import { CreateTeamResponse } from "../response/createTeam";
export function createTeam(res: CreateTeamResponse): Buffer {
const buf = Buffer.alloc(0x0010);
buf.writeUInt16LE(0x0072, 0x0000);
buf.writeUInt32LE(res.status, 0x0004);
buf.writeUInt32LE(res.teamId, 0x0008);
return buf;
}