Contoh skema penataan katalog game lokal untuk pengembang template.
JavaScript
// Konfigurasi objek permainan lokal nos89
const clientConfig = {
brand: "nos89",
supportedGames: [
{ id: "145", name: "Mafia Mayhem", category: "Slot" },
{ id: "193", name: "Reel Royale Sd", category: "Slot" },
{ id: "058", name: "Candy Burst", category: "Slot" },
{ id: "161", name: "Wings Iguazu", category: "Slot" },
{ id: "054", name: "Reel Love", category: "Slot" }
],
locale: "id-ID"
};
function getGameTitle(gameId) {
const target = clientConfig.supportedGames.find(g => g.id === gameId);
return target ? target.name : "Unknown";
}
JSON
{
"brand": "nos89",
"supportedGames": [
{ "id": "145", "name": "Mafia Mayhem", "category": "Slot" },
{ "id": "193", "name": "Reel Royale Sd", "category": "Slot" },
{ "id": "058", "name": "Candy Burst", "category": "Slot" },
{ "id": "161", "name": "Wings Iguazu", "category": "Slot" },
{ "id": "054", "name": "Reel Love", "category": "Slot" }
],
"locale": "id-ID"
}