Skema model data konfigurasi lokal untuk katalog game nd2121.
JavaScript
/**
* Contoh konfigurasi klien lokal nd2121
* Digunakan untuk mapping game internal secara offline
*/
const nd2121LocalConfig = {
brand: 'nd2121',
region: 'id',
defaultGameId: '083',
activeCatalog: [
{ id: '083', title: 'Fortune Ox', type: 'Slot' },
{ id: '024', title: 'Prosperity Lion', type: 'Slot' },
{ id: '171', title: 'Graffiti Rush', type: 'Kasual' }
],
session: {
audioEnabled: true,
cacheAssets: true
}
};
function getGameMetadata(gameId) {
return nd2121LocalConfig.activeCatalog.find(item => item.id === gameId) || null;
}
JSON
{
"brand": "nd2121",
"region": "id",
"defaultGameId": "083",
"activeCatalog": [
{
"id": "083",
"title": "Fortune Ox",
"type": "Slot"
},
{
"id": "024",
"title": "Prosperity Lion",
"type": "Slot"
},
{
"id": "171",
"title": "Graffiti Rush",
"type": "Kasual"
}
],
"session": {
"audioEnabled": true,
"cacheAssets": true
}
}