Skrip konfigurasi objek data permainan untuk lingkungan lokal.
JavaScript
// Konfigurasi objek permainan lokal sr77
const localCatalogConfig = {
platform: "sr77game.vip",
environment: "local-test",
supportedGames: [
{ id: "191", name: "Perfect Strike", category: "Slot" },
{ id: "046", name: "Flirting Scholar", category: "Slot" },
{ id: "088", name: "Bali Vacation", category: "Slot" },
{ id: "153", name: "Pinata Wins", category: "Slot" },
{ id: "131", name: "Hawaiian Tiki", category: "Slot" }
],
defaultLanguage: "id"
};
function getGameMetadata(gameId) {
return localCatalogConfig.supportedGames.find(g => g.id === gameId) || null;
}
JSON
{
"platform": "sr77game.vip",
"environment": "local-test",
"supportedGames": [
{ "id": "191", "name": "Perfect Strike", "category": "Slot" },
{ "id": "046", "name": "Flirting Scholar", "category": "Slot" },
{ "id": "088", "name": "Bali Vacation", "category": "Slot" },
{ "id": "153", "name": "Pinata Wins", "category": "Slot" },
{ "id": "131", "name": "Hawaiian Tiki", "category": "Slot" }
],
"defaultLanguage": "id"
}