Addnew sheets (armor, weapons, malefica) and v13 support

This commit is contained in:
2025-05-18 23:51:26 +02:00
parent 7672f861ff
commit 995d61e1c6
4478 changed files with 667857 additions and 620 deletions

36
node_modules/classic-level/chained-batch.js generated vendored Normal file
View File

@@ -0,0 +1,36 @@
'use strict'
const { AbstractChainedBatch } = require('abstract-level')
const binding = require('./binding')
const kContext = Symbol('context')
class ChainedBatch extends AbstractChainedBatch {
constructor (db, context) {
super(db)
this[kContext] = binding.batch_init(context)
}
_put (key, value) {
binding.batch_put(this[kContext], key, value)
}
_del (key) {
binding.batch_del(this[kContext], key)
}
_clear () {
binding.batch_clear(this[kContext])
}
_write (options, callback) {
binding.batch_write(this[kContext], options, callback)
}
_close (callback) {
// TODO: close native batch (currently done on GC)
process.nextTick(callback)
}
}
exports.ChainedBatch = ChainedBatch