mirror of
https://github.com/asphyxia-core/plugins.git
synced 2026-03-21 17:34:46 -05:00
25 lines
598 B
TypeScript
25 lines
598 B
TypeScript
import { Profile } from "../profile";
|
|
|
|
export interface SecretMusicResponse {
|
|
musicid: KITEM<'s32'>;
|
|
seq: KITEM<'u16'>;
|
|
kind: KITEM<'s32'>;
|
|
}
|
|
|
|
export function getSecretMusicResponse(profile: Profile) : SecretMusicResponse[] {
|
|
let response : SecretMusicResponse[] = []
|
|
|
|
if (!profile.secretmusic?.music ) {
|
|
return response
|
|
}
|
|
|
|
for (let music of profile.secretmusic.music) {
|
|
response.push({
|
|
musicid: K.ITEM('s32', music.musicid),
|
|
seq: K.ITEM('u16', music.seq),
|
|
kind: K.ITEM('s32', music.kind)
|
|
})
|
|
}
|
|
|
|
return response
|
|
} |