mirror of
https://github.com/djhackersdev/minime.git
synced 2026-04-03 16:05:07 -05:00
Turns out (while researching team creation) the profile ext id is just the aime id. After creating a team a profile discovery request is immediately issued with the "profile id" in the field that holds the aime id during initial profile load.
29 lines
753 B
TypeScript
29 lines
753 B
TypeScript
import { RequestCode } from "./_defs";
|
|
import {
|
|
LoadGeneralRewardRequest1,
|
|
LoadGeneralRewardRequest2,
|
|
} from "../request/loadGeneralReward";
|
|
import { AimeId } from "../../model";
|
|
|
|
loadGeneralReward1.msgCode = 0x009c as RequestCode;
|
|
loadGeneralReward1.msgLen = 0x0010;
|
|
|
|
export function loadGeneralReward1(buf: Buffer): LoadGeneralRewardRequest1 {
|
|
return {
|
|
type: "load_general_reward_req",
|
|
format: 1,
|
|
aimeId: buf.readUInt32LE(0x0004) as AimeId,
|
|
};
|
|
}
|
|
|
|
loadGeneralReward2.msgCode = 0x013b as RequestCode;
|
|
loadGeneralReward2.msgLen = 0x0010;
|
|
|
|
export function loadGeneralReward2(buf: Buffer): LoadGeneralRewardRequest2 {
|
|
return {
|
|
type: "load_general_reward_req",
|
|
format: 2,
|
|
aimeId: buf.readUInt32LE(0x0004) as AimeId,
|
|
};
|
|
}
|