wipfuckingloadgrind

This commit is contained in:
Tau
2019-11-06 17:28:29 -05:00
parent 25bdc7d9dd
commit e1d484768c
6 changed files with 79 additions and 0 deletions
+13
View File
@@ -50,6 +50,12 @@ export class Encoder extends Transform {
break;
case "get_2on2_res":
buf = Buffer.alloc(0x04c0);
buf.writeUInt16LE(MSG.GET_2ON2_RES, 0x0000);
break;
case "get_config_res":
buf = Buffer.alloc(0x01a0);
buf.writeUInt16LE(MSG.GET_CONFIG_RES, 0x0000);
@@ -126,6 +132,13 @@ export class Encoder extends Transform {
break;
case "get_team_res":
buf = Buffer.alloc(0x0ca0);
buf.writeUInt16LE(MSG.GET_TEAM_RES, 0x0000);
iconv.encode(obj.name, sjis).copy(buf, 0x0024);
break;
case "update_provisional_store_rank_res":
buf = Buffer.alloc(0x02b0);
buf.writeUInt16LE(MSG.UPDATE_PROVISIONAL_STORE_RANK_RES, 0x0000);