Cấu hình danh mục trò chơi cục bộ mẫu cho hệ thống ee8.
JavaScript
// ee8-games-config.js
// Cấu hình cục bộ danh sách trò chơi thuộc nền tảng ee8
const ee8LocalCatalog = {
platform: "ee8",
country: "vn",
games: [
{ id: "113", name: "Btrfly Blossom", category: "Slot" },
{ id: "192", name: "Funky Fortunez", category: "Slot" },
{ id: "151", name: "Cash Mania", category: "Slot" },
{ id: "024", name: "Prosperity Lion", category: "Slot" },
{ id: "179", name: "Grimm Bounty", category: "Slot" }
],
getGameById(id) {
return this.games.find(g => g.id === id) || null;
}
};
// Ví dụ trích xuất thông tin game
const selectedGame = ee8LocalCatalog.getGameById("113");
console.log("Trò chơi đã chọn:", selectedGame ? selectedGame.name : "Không tìm thấy");
JSON
{
"platform": "ee8",
"country": "vn",
"catalogVersion": "1.0",
"games": [
{
"id": "113",
"name": "Btrfly Blossom",
"category": "Slot"
},
{
"id": "192",
"name": "Funky Fortunez",
"category": "Slot"
},
{
"id": "151",
"name": "Cash Mania",
"category": "Slot"
},
{
"id": "024",
"name": "Prosperity Lion",
"category": "Slot"
},
{
"id": "179",
"name": "Grimm Bounty",
"category": "Slot"
}
]
}