Skrip konfigurasi lokal untuk pemetaan judul permainan.
{ } example.js{ } example.json
Salin kode
JavaScript
// Konfigurasi objek lingkungan game lokal bv87
const localGameConfig = {
brand: 'bv87' ,
locale: 'id-ID' ,
supportedPlatforms: ['android' ],
featuredList: [
{ id: '042' , name: 'Journey To The Wealth' , category: 'Slot' },
{ id: '064' , name: 'Phoenix Rises' , category: 'Slot' },
{ id: '028' , name: 'Gem Saviour Sword' , category: 'Slot' }
],
readyStatus: true
};
function getFeaturedGames() {
return localGameConfig.featuredList.filter(item => localGameConfig.readyStatus);
} JSON
{
"brand" : "bv87" ,
"locale" : "id-ID" ,
"supportedPlatforms" : ["android" ],
"featuredList" : [
{
"id" : "042" ,
"name" : "Journey To The Wealth" ,
"category" : "Slot"
},
{
"id" : "064" ,
"name" : "Phoenix Rises" ,
"category" : "Slot"
},
{
"id" : "028" ,
"name" : "Gem Saviour Sword" ,
"category" : "Slot"
}
],
"readyStatus" : true
}