Contoh konfigurasi struktur data game lokal untuk lingkungan pengujian yyr.
{ } example.js{ } example.json
Salin kode
JavaScript
// Konfigurasi lokal katalog permainan yyr
const yyrGameCatalog = {
platform: "yyr" ,
country: "id" ,
defaultLanguage: "Bahasa Indonesia" ,
featuredGames: [
{ id: "149" , name: "Fortune Dragon" , category: "Permainan Slot" },
{ id: "177" , name: "Dragons Treas" , category: "Permainan Slot" },
{ id: "033" , name: "Ganesha Gold" , category: "Permainan Slot" }
],
activity: {
title: "Paket Pemain Baru" ,
startDate: "2026-11-01" ,
endDate: "2026-11-30"
}
};
function getFeaturedList() {
return yyrGameCatalog.featuredGames.map(game => `${game.id} - ${game.name}`);
} JSON
{
"platform" : "yyr" ,
"country" : "id" ,
"defaultLanguage" : "Bahasa Indonesia" ,
"featuredGames" : [
{
"id" : "149" ,
"name" : "Fortune Dragon" ,
"category" : "Permainan Slot"
},
{
"id" : "177" ,
"name" : "Dragons Treas" ,
"category" : "Permainan Slot"
},
{
"id" : "033" ,
"name" : "Ganesha Gold" ,
"category" : "Permainan Slot"
}
],
"activity" : {
"title" : "Paket Pemain Baru" ,
"startDate" : "2026-11-01" ,
"endDate" : "2026-11-30"
}
}