Contoh skrip konfigurasi objek game 55rp untuk pengujian lokal.
JavaScript
// Konfigurasi objek lokal katalog game 55rp
const clientConfig = {
platformName: "55rp",
country: "id",
supportedGames: [
{ id: "126", name: "Diner Delights", category: "Slot" },
{ id: "010", name: "Medusa", category: "Slot" },
{ id: "024", name: "Prosperity Lion", category: "Slot" },
{ id: "088", name: "Bali Vacation", category: "Slot" },
{ id: "006", name: "Medusa2", category: "Slot" }
],
defaultLanguage: "Bahasa Indonesia"
};
function getGameTitle(gameId) {
const game = clientConfig.supportedGames.find(g => g.id === gameId);
return game ? game.name : "Game tidak ditemukan";
}
JSON
{
"platformName": "55rp",
"country": "id",
"supportedGames": [
{"id": "126", "name": "Diner Delights", "category": "Slot"},
{"id": "010", "name": "Medusa", "category": "Slot"},
{"id": "024", "name": "Prosperity Lion", "category": "Slot"},
{"id": "088", "name": "Bali Vacation", "category": "Slot"},
{"id": "006", "name": "Medusa2", "category": "Slot"}
],
"defaultLanguage": "Bahasa Indonesia"
}