Mẫu tệp cấu hình tham số cục bộ cho danh mục trò chơi.
JavaScript
// Cau hinh mo phong tro choi cuc bo tren GOOD88
const localGameConfig = {
brand: "GOOD88",
country: "vn",
defaultLocale: "vi-VN",
gameCatalog: [
{ id: "024", name: "Prosperity Lion", category: "Nổ hũ" },
{ id: "124", name: "Totem Wonders", category: "Nổ hũ" },
{ id: "028", name: "Gem Saviour Sword", category: "Nổ hũ" }
],
clientPreferences: {
audioEnabled: true,
highResolution: false
}
};
function getGameInfo(gameId) {
return localGameConfig.gameCatalog.find(item => item.id === gameId) || null;
}
module.exports = { localGameConfig, getGameInfo };
JSON
{
"brand": "GOOD88",
"country": "vn",
"defaultLocale": "vi-VN",
"gameCatalog": [
{
"id": "024",
"name": "Prosperity Lion",
"category": "Nổ hũ"
},
{
"id": "124",
"name": "Totem Wonders",
"category": "Nổ hũ"
},
{
"id": "028",
"name": "Gem Saviour Sword",
"category": "Nổ hũ"
}
],
"clientPreferences": {
"audioEnabled": true,
"highResolution": false
}
}