Contoh struktur konfigurasi objek game slot untuk implementasi pengembang.
{ } example.js{ } example.json
Salin kode
JavaScript
// Konfigurasi objek sesi lokal rp6
const localGameConfig = {
platformId: "rp6" ,
defaultLocale: "id-ID" ,
supportedGames: [
{ id: "196" , title: "Zombie Blaster" , category: "Permainan Slot" },
{ id: "058" , title: "Candy Burst" , category: "Permainan Slot" },
{ id: "114" , title: "Rooster Rbl" , category: "Permainan Slot" },
{ id: "047" , title: "Ninja Vs Samurai" , category: "Permainan Slot" },
{ id: "144" , title: "Forge Wealth" , category: "Permainan Slot" }
],
debugMode: false
};
function getGameMeta(gameId) {
return localGameConfig.supportedGames.find(item => item.id === gameId) || null ;
} JSON
{
"platformId" : "rp6" ,
"defaultLocale" : "id-ID" ,
"supportedGames" : [
{
"id" : "196" ,
"title" : "Zombie Blaster" ,
"category" : "Permainan Slot"
},
{
"id" : "058" ,
"title" : "Candy Burst" ,
"category" : "Permainan Slot"
},
{
"id" : "114" ,
"title" : "Rooster Rbl" ,
"category" : "Permainan Slot"
},
{
"id" : "047" ,
"title" : "Ninja Vs Samurai" ,
"category" : "Permainan Slot"
},
{
"id" : "144" ,
"title" : "Forge Wealth" ,
"category" : "Permainan Slot"
}
],
"debugMode" : false
}