Contoh konfigurasi skema data permainan lokal untuk tampilan internal.
JavaScript
// Contoh struktur konfigurasi lokal game rt9
const rt9LocalCatalog = {
platform: "rt9",
supportedGames: [
{ id: "166", name: "Choc Deluxe", category: "Slot" },
{ id: "175", name: "Jack Giant Hunt", category: "Slot" },
{ id: "083", name: "Fortune Ox", category: "Slot" }
],
defaultSettings: {
audio: true,
locale: "id"
}
};
function getGameTitle(gameId) {
const target = rt9LocalCatalog.supportedGames.find(g => g.id === gameId);
return target ? target.name : "Tidak Ditemukan";
}
JSON
{
"platform": "rt9",
"supportedGames": [
{
"id": "166",
"name": "Choc Deluxe",
"category": "Slot"
},
{
"id": "175",
"name": "Jack Giant Hunt",
"category": "Slot"
},
{
"id": "083",
"name": "Fortune Ox",
"category": "Slot"
}
],
"defaultSettings": {
"audio": true,
"locale": "id"
}
}