Contoh skrip objek lokal dan skema JSON untuk pengujian struktur katalog permainan.
JavaScript
// Konfigurasi objek data lokal platform rt555
const rt555GameConfig = {
platform: "rt555",
locale: "id-ID",
featuredGames: [
{ id: "119", name: "Speed Winner" },
{ id: "015", name: "Gem Saviour" },
{ id: "140", name: "Gladi Glory" },
{ id: "082", name: "Gdn Ice Fire" },
{ id: "081", name: "Galactic Gems" }
],
welcomeBenefits: [
"Daftar dan klaim paket pemain baru!",
"Bonus khusus pemain baru untuk permainan pertamamu!"
]
};
function getGameInfo(gameId) {
return rt555GameConfig.featuredGames.find(g => g.id === gameId) || null;
}
console.log("Status konfigurasi:", getGameInfo("119"));
JSON
{
"platform": "rt555",
"locale": "id-ID",
"featuredGames": [
{
"id": "119",
"name": "Speed Winner"
},
{
"id": "015",
"name": "Gem Saviour"
},
{
"id": "140",
"name": "Gladi Glory"
},
{
"id": "082",
"name": "Gdn Ice Fire"
},
{
"id": "081",
"name": "Galactic Gems"
}
],
"welcomeBenefits": [
"Daftar dan klaim paket pemain baru!",
"Bonus khusus pemain baru untuk permainan pertamamu!"
]
}