mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-19 23:33:13 +09:00
Change mod packs to datastore
This commit is contained in:
4 files changed
+20
-26
No files matched your search
@@ -189,6 +189,11 @@ export class Datastore<
|
||||
this.data.set(k, v);
|
||||
}
|
||||
}
|
||||
|
||||
// Delete a value in the datastore
|
||||
delete(key: K) {
|
||||
this.data.delete(key);
|
||||
}
|
||||
}
|
||||
|
||||
// A special implementation of the datastore to work directly with subscribable values
|
||||
@@ -212,4 +217,9 @@ export class SubscribableDatastore<
|
||||
this.data.set(value.id, value);
|
||||
}
|
||||
}
|
||||
|
||||
// Delete a value in the datastore
|
||||
delete(value: V) {
|
||||
this.data.delete(value.id);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user