Struktur skema objek metadata permainan lokal untuk platform qqrp.
JavaScript
// Contoh penanganan data lokal permainan qqrp
const qqrpGameCatalogue = [
{
id: "052",
title: "Dragon Hatch",
category: "Slot",
active: true
},
{
id: "053",
title: "Fortune Mouse",
category: "Slot",
active: true
}
];
function getActiveGames(catalogue) {
return catalogue.filter(item => item.active);
}
// Menampilkan daftar permainan aktif ke konsol lokal
console.log(getActiveGames(qqrpGameCatalogue));
JSON
{
"catalogue": [
{
"id": "052",
"title": "Dragon Hatch",
"category": "Slot",
"active": true
},
{
"id": "053",
"title": "Fortune Mouse",
"category": "Slot",
"active": true
}
],
"environment": "production-local",
"platform": "qqrp"
}