Konfigurasi skrip dan format objek lokal untuk memetakan kategori game di platform rprr.
JavaScript
// Konfigurasi objek referensi katalog rprr lokal
const rprrCatalogConfig = {
platform: "android",
brand: "rprr",
defaultCategory: "Slot",
games: [
{ id: "110", name: "Fortune Tiger", category: "Slot" },
{ id: "191", name: "Perfect Strike", category: "Olahraga" },
{ id: "185", name: "Poker Kingdom", category: "Kartu" }
],
validateEntry(gameId) {
return this.games.some(item => item.id === gameId);
}
};
console.log("Status katalog rprr:", rprrCatalogConfig.validateEntry("110"));
JSON
{
"platform": "android",
"brand": "rprr",
"defaultCategory": "Slot",
"games": [
{
"id": "110",
"name": "Fortune Tiger",
"category": "Slot"
},
{
"id": "191",
"name": "Perfect Strike",
"category": "Olahraga"
},
{
"id": "185",
"name": "Poker Kingdom",
"category": "Kartu"
}
]
}