idz: Implement team member add/remove
This commit is contained in:
@@ -29,6 +29,7 @@ import { saveTopic } from "./saveTopic";
|
||||
import { unlockProfile } from "./unlockProfile";
|
||||
import { updateProvisionalStoreRank } from "./updateProvisionalStoreRank";
|
||||
import { updateStoryClearNum } from "./updateStoryClearNum";
|
||||
import { updateTeamMember } from "./updateTeamMember";
|
||||
import { Response } from "../response";
|
||||
|
||||
function encode(res: Response): Buffer {
|
||||
@@ -120,6 +121,9 @@ function encode(res: Response): Buffer {
|
||||
case "update_story_clear_num_res":
|
||||
return updateStoryClearNum(res);
|
||||
|
||||
case "update_team_member_res":
|
||||
return updateTeamMember(res);
|
||||
|
||||
case "save_topic_res":
|
||||
return saveTopic(res);
|
||||
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
import { UpdateTeamMemberResponse } from "../response/updateTeamMember";
|
||||
|
||||
export function updateTeamMember(res: UpdateTeamMemberResponse): Buffer {
|
||||
const buf = Buffer.alloc(0x0010);
|
||||
|
||||
buf.writeUInt16LE(0x0074, 0x0000);
|
||||
buf.writeUInt32LE(res.status, 0x0004);
|
||||
|
||||
return buf;
|
||||
}
|
||||
Reference in New Issue
Block a user