Skrip demonstrasi konfigurasi objek lokal statis untuk pengujian katalog permainan rt77.
JavaScript
// Konfigurasi objek lokal rt77 (Mock Client)
const rt77ClientConfig = {
platformId: "rt77-id",
environment: "local-sandbox",
defaultLanguage: "Bahasa Indonesia",
supportedGames: [
{ id: "147", name: "Werewolf Hunt", category: "Slot Game" },
{ id: "196", name: "Zombie Blaster", category: "Aksi / Arcade" },
{ id: "103", name: "Spirit Wonder", category: "Slot Game" },
{ id: "150", name: "Gemstones Gold", category: "Slot Game" },
{ id: "041", name: "The Great Icescape", category: "Slot Game" }
],
logLevel: "debug"
};
function getMockGameList() {
return rt77ClientConfig.supportedGames;
}
module.exports = { rt77ClientConfig, getMockGameList };
JSON
{
"platformId": "rt77-id",
"environment": "local-sandbox",
"defaultLanguage": "Bahasa Indonesia",
"supportedGames": [
{
"id": "147",
"name": "Werewolf Hunt",
"category": "Slot Game"
},
{
"id": "196",
"name": "Zombie Blaster",
"category": "Aksi / Arcade"
},
{
"id": "103",
"name": "Spirit Wonder",
"category": "Slot Game"
},
{
"id": "150",
"name": "Gemstones Gold",
"category": "Slot Game"
},
{
"id": "041",
"name": "The Great Icescape",
"category": "Slot Game"
}
],
"logLevel": "debug"
}