36 lines
1.3 KiB
TypeScript
36 lines
1.3 KiB
TypeScript
// Module ID: 12810
|
|
// Function ID: 12811
|
|
// Name: parseParticipant
|
|
// Dependencies: [12811, 1236, 2935, 2]
|
|
// Exports: getHavenSoundControlName, parseRoom
|
|
|
|
// Module 12810 (parseParticipant)
|
|
function parseParticipant(userId) {
|
|
return { userId: userId.user_id, position: userId.position, avatar: userId.avatar };
|
|
}
|
|
function parseSeat(id) {
|
|
return { id: id.id, claimedBy: id.claimed_by };
|
|
}
|
|
const result = require("messagesProxy").fileFinishedImporting("modules/haven/HavenUtils.tsx");
|
|
|
|
export { parseParticipant };
|
|
export { parseSeat };
|
|
export const parseRoom = function parseRoom(roomId) {
|
|
const participants = roomId.participants;
|
|
const seats = roomId.seats;
|
|
return { roomId: roomId.room_id, participants: participants.map(parseParticipant), seats: seats.map(parseSeat) };
|
|
};
|
|
export const getHavenSoundControlName = function getHavenSoundControlName(arg0) {
|
|
if (require(12811) /* HavenGenres */.HavenSoundKeys.RADIO === arg0) {
|
|
const intl3 = tmp(1236).intl;
|
|
return intl3.string(importDefault(2935).AjiGKB);
|
|
} else if (tmp(12811).HavenSoundKeys.ENVIRONMENT === arg0) {
|
|
const intl2 = tmp(1236).intl;
|
|
return intl2.string(importDefault(2935).YEYIbI);
|
|
} else if (tmp(12811).HavenSoundKeys.CAMPFIRE === arg0) {
|
|
const intl = tmp(1236).intl;
|
|
return intl.string(importDefault(2935)["Vk9+Ez"]);
|
|
} else {
|
|
return "";
|
|
}
|
|
};
|