aboutsummaryrefslogtreecommitdiff
path: root/src/card_db.js
diff options
context:
space:
mode:
authorMistivia <i@mistivia.com>2025-02-20 13:26:43 +0800
committerMistivia <i@mistivia.com>2025-02-20 13:26:43 +0800
commit2ebdfe109bbff27b35a5e9ae208dabddd266191e (patch)
treeed63233177008c7bef134606fbf0254754e91fb2 /src/card_db.js
parenta7488d695b3f647d657f6b3482d5333e1e869771 (diff)
change project layout
Diffstat (limited to 'src/card_db.js')
-rw-r--r--src/card_db.js25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/card_db.js b/src/card_db.js
new file mode 100644
index 0000000..b9b991f
--- /dev/null
+++ b/src/card_db.js
@@ -0,0 +1,25 @@
+let cardDb = {};
+let altId = {};
+
+function setCardDb(d) {
+ cardDb = d;
+}
+
+function getCardDb() {
+ return cardDb;
+}
+
+function getAltId() {
+ return altId;
+}
+
+function setAltId(x) {
+ altId = x;
+}
+
+export {
+ getCardDb,
+ setCardDb,
+ getAltId,
+ setAltId,
+};