@r2o3/rgchart-nodejs 0.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +7 -0
- package/README.md +328 -0
- package/package.json +30 -0
- package/rgchart.d.ts +207 -0
- package/rgchart.js +1890 -0
- package/rgchart_bg.wasm +0 -0
package/rgchart.js
ADDED
|
@@ -0,0 +1,1890 @@
|
|
|
1
|
+
|
|
2
|
+
let imports = {};
|
|
3
|
+
imports['__wbindgen_placeholder__'] = module.exports;
|
|
4
|
+
let wasm;
|
|
5
|
+
const { TextDecoder, TextEncoder } = require(`util`);
|
|
6
|
+
|
|
7
|
+
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
8
|
+
|
|
9
|
+
cachedTextDecoder.decode();
|
|
10
|
+
|
|
11
|
+
let cachedUint8ArrayMemory0 = null;
|
|
12
|
+
|
|
13
|
+
function getUint8ArrayMemory0() {
|
|
14
|
+
if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
|
|
15
|
+
cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
|
|
16
|
+
}
|
|
17
|
+
return cachedUint8ArrayMemory0;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
function getStringFromWasm0(ptr, len) {
|
|
21
|
+
ptr = ptr >>> 0;
|
|
22
|
+
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
let WASM_VECTOR_LEN = 0;
|
|
26
|
+
|
|
27
|
+
let cachedTextEncoder = new TextEncoder('utf-8');
|
|
28
|
+
|
|
29
|
+
const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
|
|
30
|
+
? function (arg, view) {
|
|
31
|
+
return cachedTextEncoder.encodeInto(arg, view);
|
|
32
|
+
}
|
|
33
|
+
: function (arg, view) {
|
|
34
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
35
|
+
view.set(buf);
|
|
36
|
+
return {
|
|
37
|
+
read: arg.length,
|
|
38
|
+
written: buf.length
|
|
39
|
+
};
|
|
40
|
+
});
|
|
41
|
+
|
|
42
|
+
function passStringToWasm0(arg, malloc, realloc) {
|
|
43
|
+
|
|
44
|
+
if (realloc === undefined) {
|
|
45
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
46
|
+
const ptr = malloc(buf.length, 1) >>> 0;
|
|
47
|
+
getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
|
|
48
|
+
WASM_VECTOR_LEN = buf.length;
|
|
49
|
+
return ptr;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
let len = arg.length;
|
|
53
|
+
let ptr = malloc(len, 1) >>> 0;
|
|
54
|
+
|
|
55
|
+
const mem = getUint8ArrayMemory0();
|
|
56
|
+
|
|
57
|
+
let offset = 0;
|
|
58
|
+
|
|
59
|
+
for (; offset < len; offset++) {
|
|
60
|
+
const code = arg.charCodeAt(offset);
|
|
61
|
+
if (code > 0x7F) break;
|
|
62
|
+
mem[ptr + offset] = code;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
if (offset !== len) {
|
|
66
|
+
if (offset !== 0) {
|
|
67
|
+
arg = arg.slice(offset);
|
|
68
|
+
}
|
|
69
|
+
ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
|
|
70
|
+
const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
|
|
71
|
+
const ret = encodeString(arg, view);
|
|
72
|
+
|
|
73
|
+
offset += ret.written;
|
|
74
|
+
ptr = realloc(ptr, len, offset, 1) >>> 0;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
WASM_VECTOR_LEN = offset;
|
|
78
|
+
return ptr;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
function isLikeNone(x) {
|
|
82
|
+
return x === undefined || x === null;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
let cachedDataViewMemory0 = null;
|
|
86
|
+
|
|
87
|
+
function getDataViewMemory0() {
|
|
88
|
+
if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
|
|
89
|
+
cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
|
|
90
|
+
}
|
|
91
|
+
return cachedDataViewMemory0;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
function getArrayJsValueFromWasm0(ptr, len) {
|
|
95
|
+
ptr = ptr >>> 0;
|
|
96
|
+
const mem = getDataViewMemory0();
|
|
97
|
+
const result = [];
|
|
98
|
+
for (let i = ptr; i < ptr + 4 * len; i += 4) {
|
|
99
|
+
result.push(wasm.__wbindgen_export_0.get(mem.getUint32(i, true)));
|
|
100
|
+
}
|
|
101
|
+
wasm.__externref_drop_slice(ptr, len);
|
|
102
|
+
return result;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
function addToExternrefTable0(obj) {
|
|
106
|
+
const idx = wasm.__externref_table_alloc();
|
|
107
|
+
wasm.__wbindgen_export_0.set(idx, obj);
|
|
108
|
+
return idx;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
function passArrayJsValueToWasm0(array, malloc) {
|
|
112
|
+
const ptr = malloc(array.length * 4, 4) >>> 0;
|
|
113
|
+
for (let i = 0; i < array.length; i++) {
|
|
114
|
+
const add = addToExternrefTable0(array[i]);
|
|
115
|
+
getDataViewMemory0().setUint32(ptr + 4 * i, add, true);
|
|
116
|
+
}
|
|
117
|
+
WASM_VECTOR_LEN = array.length;
|
|
118
|
+
return ptr;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
function _assertClass(instance, klass) {
|
|
122
|
+
if (!(instance instanceof klass)) {
|
|
123
|
+
throw new Error(`expected instance of ${klass.name}`);
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
function takeFromExternrefTable0(idx) {
|
|
128
|
+
const value = wasm.__wbindgen_export_0.get(idx);
|
|
129
|
+
wasm.__externref_table_dealloc(idx);
|
|
130
|
+
return value;
|
|
131
|
+
}
|
|
132
|
+
/**
|
|
133
|
+
* @param {GenericManiaChart} chart
|
|
134
|
+
* @returns {string}
|
|
135
|
+
*/
|
|
136
|
+
module.exports.writeToOsuGeneric = function(chart) {
|
|
137
|
+
let deferred2_0;
|
|
138
|
+
let deferred2_1;
|
|
139
|
+
try {
|
|
140
|
+
_assertClass(chart, GenericManiaChart);
|
|
141
|
+
const ret = wasm.writeToOsuGeneric(chart.__wbg_ptr);
|
|
142
|
+
var ptr1 = ret[0];
|
|
143
|
+
var len1 = ret[1];
|
|
144
|
+
if (ret[3]) {
|
|
145
|
+
ptr1 = 0; len1 = 0;
|
|
146
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
147
|
+
}
|
|
148
|
+
deferred2_0 = ptr1;
|
|
149
|
+
deferred2_1 = len1;
|
|
150
|
+
return getStringFromWasm0(ptr1, len1);
|
|
151
|
+
} finally {
|
|
152
|
+
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
153
|
+
}
|
|
154
|
+
};
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* @param {GenericManiaChart} chart
|
|
158
|
+
* @returns {string}
|
|
159
|
+
*/
|
|
160
|
+
module.exports.writeToSmGeneric = function(chart) {
|
|
161
|
+
let deferred2_0;
|
|
162
|
+
let deferred2_1;
|
|
163
|
+
try {
|
|
164
|
+
_assertClass(chart, GenericManiaChart);
|
|
165
|
+
const ret = wasm.writeToSmGeneric(chart.__wbg_ptr);
|
|
166
|
+
var ptr1 = ret[0];
|
|
167
|
+
var len1 = ret[1];
|
|
168
|
+
if (ret[3]) {
|
|
169
|
+
ptr1 = 0; len1 = 0;
|
|
170
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
171
|
+
}
|
|
172
|
+
deferred2_0 = ptr1;
|
|
173
|
+
deferred2_1 = len1;
|
|
174
|
+
return getStringFromWasm0(ptr1, len1);
|
|
175
|
+
} finally {
|
|
176
|
+
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
177
|
+
}
|
|
178
|
+
};
|
|
179
|
+
|
|
180
|
+
/**
|
|
181
|
+
* @param {GenericManiaChart} chart
|
|
182
|
+
* @returns {string}
|
|
183
|
+
*/
|
|
184
|
+
module.exports.writeToQuaGeneric = function(chart) {
|
|
185
|
+
let deferred2_0;
|
|
186
|
+
let deferred2_1;
|
|
187
|
+
try {
|
|
188
|
+
_assertClass(chart, GenericManiaChart);
|
|
189
|
+
const ret = wasm.writeToQuaGeneric(chart.__wbg_ptr);
|
|
190
|
+
var ptr1 = ret[0];
|
|
191
|
+
var len1 = ret[1];
|
|
192
|
+
if (ret[3]) {
|
|
193
|
+
ptr1 = 0; len1 = 0;
|
|
194
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
195
|
+
}
|
|
196
|
+
deferred2_0 = ptr1;
|
|
197
|
+
deferred2_1 = len1;
|
|
198
|
+
return getStringFromWasm0(ptr1, len1);
|
|
199
|
+
} finally {
|
|
200
|
+
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
201
|
+
}
|
|
202
|
+
};
|
|
203
|
+
|
|
204
|
+
/**
|
|
205
|
+
* @param {GenericManiaChart} chart
|
|
206
|
+
* @returns {string}
|
|
207
|
+
*/
|
|
208
|
+
module.exports.writeToFscGeneric = function(chart) {
|
|
209
|
+
let deferred2_0;
|
|
210
|
+
let deferred2_1;
|
|
211
|
+
try {
|
|
212
|
+
_assertClass(chart, GenericManiaChart);
|
|
213
|
+
const ret = wasm.writeToFscGeneric(chart.__wbg_ptr);
|
|
214
|
+
var ptr1 = ret[0];
|
|
215
|
+
var len1 = ret[1];
|
|
216
|
+
if (ret[3]) {
|
|
217
|
+
ptr1 = 0; len1 = 0;
|
|
218
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
219
|
+
}
|
|
220
|
+
deferred2_0 = ptr1;
|
|
221
|
+
deferred2_1 = len1;
|
|
222
|
+
return getStringFromWasm0(ptr1, len1);
|
|
223
|
+
} finally {
|
|
224
|
+
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
225
|
+
}
|
|
226
|
+
};
|
|
227
|
+
|
|
228
|
+
/**
|
|
229
|
+
* @param {string} raw_chart
|
|
230
|
+
* @returns {GenericManiaChart}
|
|
231
|
+
*/
|
|
232
|
+
module.exports.parseFromOsuGeneric = function(raw_chart) {
|
|
233
|
+
const ptr0 = passStringToWasm0(raw_chart, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
234
|
+
const len0 = WASM_VECTOR_LEN;
|
|
235
|
+
const ret = wasm.parseFromOsuGeneric(ptr0, len0);
|
|
236
|
+
if (ret[2]) {
|
|
237
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
238
|
+
}
|
|
239
|
+
return GenericManiaChart.__wrap(ret[0]);
|
|
240
|
+
};
|
|
241
|
+
|
|
242
|
+
/**
|
|
243
|
+
* @param {string} raw_chart
|
|
244
|
+
* @returns {GenericManiaChart}
|
|
245
|
+
*/
|
|
246
|
+
module.exports.parseFromSmGeneric = function(raw_chart) {
|
|
247
|
+
const ptr0 = passStringToWasm0(raw_chart, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
248
|
+
const len0 = WASM_VECTOR_LEN;
|
|
249
|
+
const ret = wasm.parseFromSmGeneric(ptr0, len0);
|
|
250
|
+
if (ret[2]) {
|
|
251
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
252
|
+
}
|
|
253
|
+
return GenericManiaChart.__wrap(ret[0]);
|
|
254
|
+
};
|
|
255
|
+
|
|
256
|
+
/**
|
|
257
|
+
* @param {string} raw_chart
|
|
258
|
+
* @returns {GenericManiaChart}
|
|
259
|
+
*/
|
|
260
|
+
module.exports.parseFromQuaGeneric = function(raw_chart) {
|
|
261
|
+
const ptr0 = passStringToWasm0(raw_chart, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
262
|
+
const len0 = WASM_VECTOR_LEN;
|
|
263
|
+
const ret = wasm.parseFromQuaGeneric(ptr0, len0);
|
|
264
|
+
if (ret[2]) {
|
|
265
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
266
|
+
}
|
|
267
|
+
return GenericManiaChart.__wrap(ret[0]);
|
|
268
|
+
};
|
|
269
|
+
|
|
270
|
+
/**
|
|
271
|
+
* @param {string} raw_chart
|
|
272
|
+
* @returns {GenericManiaChart}
|
|
273
|
+
*/
|
|
274
|
+
module.exports.parseFromFscGeneric = function(raw_chart) {
|
|
275
|
+
const ptr0 = passStringToWasm0(raw_chart, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
276
|
+
const len0 = WASM_VECTOR_LEN;
|
|
277
|
+
const ret = wasm.parseFromFscGeneric(ptr0, len0);
|
|
278
|
+
if (ret[2]) {
|
|
279
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
280
|
+
}
|
|
281
|
+
return GenericManiaChart.__wrap(ret[0]);
|
|
282
|
+
};
|
|
283
|
+
|
|
284
|
+
/**
|
|
285
|
+
* @enum {0 | 1 | 2 | 3 | 4 | 5}
|
|
286
|
+
*/
|
|
287
|
+
module.exports.CatchHitobjectType = Object.freeze({
|
|
288
|
+
Empty: 0, "0": "Empty",
|
|
289
|
+
Fruit: 1, "1": "Fruit",
|
|
290
|
+
Juice: 2, "2": "Juice",
|
|
291
|
+
Banana: 3, "3": "Banana",
|
|
292
|
+
Hyperfruit: 4, "4": "Hyperfruit",
|
|
293
|
+
Unknown: 5, "5": "Unknown",
|
|
294
|
+
});
|
|
295
|
+
/**
|
|
296
|
+
* @enum {0 | 1 | 2 | 3}
|
|
297
|
+
*/
|
|
298
|
+
module.exports.HitSoundType = Object.freeze({
|
|
299
|
+
Normal: 0, "0": "Normal",
|
|
300
|
+
Clap: 1, "1": "Clap",
|
|
301
|
+
Whistle: 2, "2": "Whistle",
|
|
302
|
+
Finish: 3, "3": "Finish",
|
|
303
|
+
});
|
|
304
|
+
/**
|
|
305
|
+
* @enum {0 | 1 | 2 | 3 | 4 | 5 | 6}
|
|
306
|
+
*/
|
|
307
|
+
module.exports.KeyType = Object.freeze({
|
|
308
|
+
Empty: 0, "0": "Empty",
|
|
309
|
+
Normal: 1, "1": "Normal",
|
|
310
|
+
SliderStart: 2, "2": "SliderStart",
|
|
311
|
+
SliderEnd: 3, "3": "SliderEnd",
|
|
312
|
+
Mine: 4, "4": "Mine",
|
|
313
|
+
Fake: 5, "5": "Fake",
|
|
314
|
+
Unknown: 6, "6": "Unknown",
|
|
315
|
+
});
|
|
316
|
+
/**
|
|
317
|
+
* @enum {0 | 1 | 2 | 3 | 4}
|
|
318
|
+
*/
|
|
319
|
+
module.exports.OsuHitobjectType = Object.freeze({
|
|
320
|
+
Empty: 0, "0": "Empty",
|
|
321
|
+
HitCircle: 1, "1": "HitCircle",
|
|
322
|
+
Slider: 2, "2": "Slider",
|
|
323
|
+
Spinner: 3, "3": "Spinner",
|
|
324
|
+
Unknown: 4, "4": "Unknown",
|
|
325
|
+
});
|
|
326
|
+
/**
|
|
327
|
+
* @enum {0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8}
|
|
328
|
+
*/
|
|
329
|
+
module.exports.TaikoHitobjectType = Object.freeze({
|
|
330
|
+
Empty: 0, "0": "Empty",
|
|
331
|
+
Don: 1, "1": "Don",
|
|
332
|
+
Kat: 2, "2": "Kat",
|
|
333
|
+
BonusDon: 3, "3": "BonusDon",
|
|
334
|
+
BonusKat: 4, "4": "BonusKat",
|
|
335
|
+
DrumRoll: 5, "5": "DrumRoll",
|
|
336
|
+
BonusDrumRoll: 6, "6": "BonusDrumRoll",
|
|
337
|
+
Balloon: 7, "7": "Balloon",
|
|
338
|
+
Unknown: 8, "8": "Unknown",
|
|
339
|
+
});
|
|
340
|
+
/**
|
|
341
|
+
* @enum {0 | 1 | 2}
|
|
342
|
+
*/
|
|
343
|
+
module.exports.TimingChangeType = Object.freeze({
|
|
344
|
+
Bpm: 0, "0": "Bpm",
|
|
345
|
+
Sv: 1, "1": "Sv",
|
|
346
|
+
Stop: 2, "2": "Stop",
|
|
347
|
+
});
|
|
348
|
+
|
|
349
|
+
const CatchHitobjectFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
350
|
+
? { register: () => {}, unregister: () => {} }
|
|
351
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_catchhitobject_free(ptr >>> 0, 1));
|
|
352
|
+
|
|
353
|
+
class CatchHitobject {
|
|
354
|
+
|
|
355
|
+
static __wrap(ptr) {
|
|
356
|
+
ptr = ptr >>> 0;
|
|
357
|
+
const obj = Object.create(CatchHitobject.prototype);
|
|
358
|
+
obj.__wbg_ptr = ptr;
|
|
359
|
+
CatchHitobjectFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
360
|
+
return obj;
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
__destroy_into_raw() {
|
|
364
|
+
const ptr = this.__wbg_ptr;
|
|
365
|
+
this.__wbg_ptr = 0;
|
|
366
|
+
CatchHitobjectFinalization.unregister(this);
|
|
367
|
+
return ptr;
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
free() {
|
|
371
|
+
const ptr = this.__destroy_into_raw();
|
|
372
|
+
wasm.__wbg_catchhitobject_free(ptr, 0);
|
|
373
|
+
}
|
|
374
|
+
/**
|
|
375
|
+
* @returns {CatchHitobjectType}
|
|
376
|
+
*/
|
|
377
|
+
get object_type() {
|
|
378
|
+
const ret = wasm.__wbg_get_catchhitobject_object_type(this.__wbg_ptr);
|
|
379
|
+
return ret;
|
|
380
|
+
}
|
|
381
|
+
/**
|
|
382
|
+
* @param {CatchHitobjectType} arg0
|
|
383
|
+
*/
|
|
384
|
+
set object_type(arg0) {
|
|
385
|
+
wasm.__wbg_set_catchhitobject_object_type(this.__wbg_ptr, arg0);
|
|
386
|
+
}
|
|
387
|
+
/**
|
|
388
|
+
* @returns {number}
|
|
389
|
+
*/
|
|
390
|
+
get x_position() {
|
|
391
|
+
const ret = wasm.__wbg_get_catchhitobject_x_position(this.__wbg_ptr);
|
|
392
|
+
return ret;
|
|
393
|
+
}
|
|
394
|
+
/**
|
|
395
|
+
* @param {number} arg0
|
|
396
|
+
*/
|
|
397
|
+
set x_position(arg0) {
|
|
398
|
+
wasm.__wbg_set_catchhitobject_x_position(this.__wbg_ptr, arg0);
|
|
399
|
+
}
|
|
400
|
+
/**
|
|
401
|
+
* @returns {number | undefined}
|
|
402
|
+
*/
|
|
403
|
+
get end_time() {
|
|
404
|
+
const ret = wasm.__wbg_get_catchhitobject_end_time(this.__wbg_ptr);
|
|
405
|
+
return ret === 0x100000001 ? undefined : ret;
|
|
406
|
+
}
|
|
407
|
+
/**
|
|
408
|
+
* @param {number | null} [arg0]
|
|
409
|
+
*/
|
|
410
|
+
set end_time(arg0) {
|
|
411
|
+
wasm.__wbg_set_catchhitobject_end_time(this.__wbg_ptr, isLikeNone(arg0) ? 0x100000001 : (arg0) >> 0);
|
|
412
|
+
}
|
|
413
|
+
/**
|
|
414
|
+
* @returns {boolean}
|
|
415
|
+
*/
|
|
416
|
+
get hyperdash() {
|
|
417
|
+
const ret = wasm.__wbg_get_catchhitobject_hyperdash(this.__wbg_ptr);
|
|
418
|
+
return ret !== 0;
|
|
419
|
+
}
|
|
420
|
+
/**
|
|
421
|
+
* @param {boolean} arg0
|
|
422
|
+
*/
|
|
423
|
+
set hyperdash(arg0) {
|
|
424
|
+
wasm.__wbg_set_catchhitobject_hyperdash(this.__wbg_ptr, arg0);
|
|
425
|
+
}
|
|
426
|
+
/**
|
|
427
|
+
* @returns {CatchHitobject}
|
|
428
|
+
*/
|
|
429
|
+
static empty() {
|
|
430
|
+
const ret = wasm.catchhitobject_empty();
|
|
431
|
+
return CatchHitobject.__wrap(ret);
|
|
432
|
+
}
|
|
433
|
+
/**
|
|
434
|
+
* @param {number} x_position
|
|
435
|
+
* @returns {CatchHitobject}
|
|
436
|
+
*/
|
|
437
|
+
static fruit(x_position) {
|
|
438
|
+
const ret = wasm.catchhitobject_fruit(x_position);
|
|
439
|
+
return CatchHitobject.__wrap(ret);
|
|
440
|
+
}
|
|
441
|
+
/**
|
|
442
|
+
* @param {number} x_position
|
|
443
|
+
* @returns {CatchHitobject}
|
|
444
|
+
*/
|
|
445
|
+
static juice(x_position) {
|
|
446
|
+
const ret = wasm.catchhitobject_juice(x_position);
|
|
447
|
+
return CatchHitobject.__wrap(ret);
|
|
448
|
+
}
|
|
449
|
+
/**
|
|
450
|
+
* @param {number} x_position
|
|
451
|
+
* @param {number} end_time
|
|
452
|
+
* @returns {CatchHitobject}
|
|
453
|
+
*/
|
|
454
|
+
static banana(x_position, end_time) {
|
|
455
|
+
const ret = wasm.catchhitobject_banana(x_position, end_time);
|
|
456
|
+
return CatchHitobject.__wrap(ret);
|
|
457
|
+
}
|
|
458
|
+
/**
|
|
459
|
+
* @param {number} x_position
|
|
460
|
+
* @returns {CatchHitobject}
|
|
461
|
+
*/
|
|
462
|
+
static hyperfruit(x_position) {
|
|
463
|
+
const ret = wasm.catchhitobject_hyperfruit(x_position);
|
|
464
|
+
return CatchHitobject.__wrap(ret);
|
|
465
|
+
}
|
|
466
|
+
/**
|
|
467
|
+
* @returns {CatchHitobject}
|
|
468
|
+
*/
|
|
469
|
+
static unknown() {
|
|
470
|
+
const ret = wasm.catchhitobject_unknown();
|
|
471
|
+
return CatchHitobject.__wrap(ret);
|
|
472
|
+
}
|
|
473
|
+
/**
|
|
474
|
+
* @returns {number | undefined}
|
|
475
|
+
*/
|
|
476
|
+
end_time() {
|
|
477
|
+
const ret = wasm.catchhitobject_end_time(this.__wbg_ptr);
|
|
478
|
+
return ret === 0x100000001 ? undefined : ret;
|
|
479
|
+
}
|
|
480
|
+
/**
|
|
481
|
+
* @returns {boolean}
|
|
482
|
+
*/
|
|
483
|
+
is_hyperdash() {
|
|
484
|
+
const ret = wasm.catchhitobject_is_hyperdash(this.__wbg_ptr);
|
|
485
|
+
return ret !== 0;
|
|
486
|
+
}
|
|
487
|
+
}
|
|
488
|
+
module.exports.CatchHitobject = CatchHitobject;
|
|
489
|
+
|
|
490
|
+
const ChartInfoFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
491
|
+
? { register: () => {}, unregister: () => {} }
|
|
492
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_chartinfo_free(ptr >>> 0, 1));
|
|
493
|
+
|
|
494
|
+
class ChartInfo {
|
|
495
|
+
|
|
496
|
+
static __wrap(ptr) {
|
|
497
|
+
ptr = ptr >>> 0;
|
|
498
|
+
const obj = Object.create(ChartInfo.prototype);
|
|
499
|
+
obj.__wbg_ptr = ptr;
|
|
500
|
+
ChartInfoFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
501
|
+
return obj;
|
|
502
|
+
}
|
|
503
|
+
|
|
504
|
+
__destroy_into_raw() {
|
|
505
|
+
const ptr = this.__wbg_ptr;
|
|
506
|
+
this.__wbg_ptr = 0;
|
|
507
|
+
ChartInfoFinalization.unregister(this);
|
|
508
|
+
return ptr;
|
|
509
|
+
}
|
|
510
|
+
|
|
511
|
+
free() {
|
|
512
|
+
const ptr = this.__destroy_into_raw();
|
|
513
|
+
wasm.__wbg_chartinfo_free(ptr, 0);
|
|
514
|
+
}
|
|
515
|
+
/**
|
|
516
|
+
* @returns {string}
|
|
517
|
+
*/
|
|
518
|
+
get difficulty_name() {
|
|
519
|
+
let deferred1_0;
|
|
520
|
+
let deferred1_1;
|
|
521
|
+
try {
|
|
522
|
+
const ret = wasm.__wbg_get_chartinfo_difficulty_name(this.__wbg_ptr);
|
|
523
|
+
deferred1_0 = ret[0];
|
|
524
|
+
deferred1_1 = ret[1];
|
|
525
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
526
|
+
} finally {
|
|
527
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
528
|
+
}
|
|
529
|
+
}
|
|
530
|
+
/**
|
|
531
|
+
* @param {string} arg0
|
|
532
|
+
*/
|
|
533
|
+
set difficulty_name(arg0) {
|
|
534
|
+
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
535
|
+
const len0 = WASM_VECTOR_LEN;
|
|
536
|
+
wasm.__wbg_set_chartinfo_difficulty_name(this.__wbg_ptr, ptr0, len0);
|
|
537
|
+
}
|
|
538
|
+
/**
|
|
539
|
+
* @returns {number}
|
|
540
|
+
*/
|
|
541
|
+
get od() {
|
|
542
|
+
const ret = wasm.__wbg_get_chartinfo_od(this.__wbg_ptr);
|
|
543
|
+
return ret;
|
|
544
|
+
}
|
|
545
|
+
/**
|
|
546
|
+
* @param {number} arg0
|
|
547
|
+
*/
|
|
548
|
+
set od(arg0) {
|
|
549
|
+
wasm.__wbg_set_chartinfo_od(this.__wbg_ptr, arg0);
|
|
550
|
+
}
|
|
551
|
+
/**
|
|
552
|
+
* @returns {number}
|
|
553
|
+
*/
|
|
554
|
+
get hp() {
|
|
555
|
+
const ret = wasm.__wbg_get_chartinfo_hp(this.__wbg_ptr);
|
|
556
|
+
return ret;
|
|
557
|
+
}
|
|
558
|
+
/**
|
|
559
|
+
* @param {number} arg0
|
|
560
|
+
*/
|
|
561
|
+
set hp(arg0) {
|
|
562
|
+
wasm.__wbg_set_chartinfo_hp(this.__wbg_ptr, arg0);
|
|
563
|
+
}
|
|
564
|
+
/**
|
|
565
|
+
* @returns {string}
|
|
566
|
+
*/
|
|
567
|
+
get bg_path() {
|
|
568
|
+
let deferred1_0;
|
|
569
|
+
let deferred1_1;
|
|
570
|
+
try {
|
|
571
|
+
const ret = wasm.__wbg_get_chartinfo_bg_path(this.__wbg_ptr);
|
|
572
|
+
deferred1_0 = ret[0];
|
|
573
|
+
deferred1_1 = ret[1];
|
|
574
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
575
|
+
} finally {
|
|
576
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
577
|
+
}
|
|
578
|
+
}
|
|
579
|
+
/**
|
|
580
|
+
* @param {string} arg0
|
|
581
|
+
*/
|
|
582
|
+
set bg_path(arg0) {
|
|
583
|
+
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
584
|
+
const len0 = WASM_VECTOR_LEN;
|
|
585
|
+
wasm.__wbg_set_chartinfo_bg_path(this.__wbg_ptr, ptr0, len0);
|
|
586
|
+
}
|
|
587
|
+
/**
|
|
588
|
+
* @returns {string}
|
|
589
|
+
*/
|
|
590
|
+
get video_path() {
|
|
591
|
+
let deferred1_0;
|
|
592
|
+
let deferred1_1;
|
|
593
|
+
try {
|
|
594
|
+
const ret = wasm.__wbg_get_chartinfo_video_path(this.__wbg_ptr);
|
|
595
|
+
deferred1_0 = ret[0];
|
|
596
|
+
deferred1_1 = ret[1];
|
|
597
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
598
|
+
} finally {
|
|
599
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
600
|
+
}
|
|
601
|
+
}
|
|
602
|
+
/**
|
|
603
|
+
* @param {string} arg0
|
|
604
|
+
*/
|
|
605
|
+
set video_path(arg0) {
|
|
606
|
+
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
607
|
+
const len0 = WASM_VECTOR_LEN;
|
|
608
|
+
wasm.__wbg_set_chartinfo_video_path(this.__wbg_ptr, ptr0, len0);
|
|
609
|
+
}
|
|
610
|
+
/**
|
|
611
|
+
* @returns {string}
|
|
612
|
+
*/
|
|
613
|
+
get song_path() {
|
|
614
|
+
let deferred1_0;
|
|
615
|
+
let deferred1_1;
|
|
616
|
+
try {
|
|
617
|
+
const ret = wasm.__wbg_get_chartinfo_song_path(this.__wbg_ptr);
|
|
618
|
+
deferred1_0 = ret[0];
|
|
619
|
+
deferred1_1 = ret[1];
|
|
620
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
621
|
+
} finally {
|
|
622
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
623
|
+
}
|
|
624
|
+
}
|
|
625
|
+
/**
|
|
626
|
+
* @param {string} arg0
|
|
627
|
+
*/
|
|
628
|
+
set song_path(arg0) {
|
|
629
|
+
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
630
|
+
const len0 = WASM_VECTOR_LEN;
|
|
631
|
+
wasm.__wbg_set_chartinfo_song_path(this.__wbg_ptr, ptr0, len0);
|
|
632
|
+
}
|
|
633
|
+
/**
|
|
634
|
+
* @returns {number}
|
|
635
|
+
*/
|
|
636
|
+
get audio_offset() {
|
|
637
|
+
const ret = wasm.__wbg_get_chartinfo_audio_offset(this.__wbg_ptr);
|
|
638
|
+
return ret;
|
|
639
|
+
}
|
|
640
|
+
/**
|
|
641
|
+
* @param {number} arg0
|
|
642
|
+
*/
|
|
643
|
+
set audio_offset(arg0) {
|
|
644
|
+
wasm.__wbg_set_chartinfo_audio_offset(this.__wbg_ptr, arg0);
|
|
645
|
+
}
|
|
646
|
+
/**
|
|
647
|
+
* @returns {number}
|
|
648
|
+
*/
|
|
649
|
+
get preview_time() {
|
|
650
|
+
const ret = wasm.__wbg_get_chartinfo_preview_time(this.__wbg_ptr);
|
|
651
|
+
return ret;
|
|
652
|
+
}
|
|
653
|
+
/**
|
|
654
|
+
* @param {number} arg0
|
|
655
|
+
*/
|
|
656
|
+
set preview_time(arg0) {
|
|
657
|
+
wasm.__wbg_set_chartinfo_preview_time(this.__wbg_ptr, arg0);
|
|
658
|
+
}
|
|
659
|
+
/**
|
|
660
|
+
* @returns {number}
|
|
661
|
+
*/
|
|
662
|
+
get key_count() {
|
|
663
|
+
const ret = wasm.__wbg_get_chartinfo_key_count(this.__wbg_ptr);
|
|
664
|
+
return ret;
|
|
665
|
+
}
|
|
666
|
+
/**
|
|
667
|
+
* @param {number} arg0
|
|
668
|
+
*/
|
|
669
|
+
set key_count(arg0) {
|
|
670
|
+
wasm.__wbg_set_chartinfo_key_count(this.__wbg_ptr, arg0);
|
|
671
|
+
}
|
|
672
|
+
/**
|
|
673
|
+
* @param {string} difficulty_name
|
|
674
|
+
* @param {number} hp
|
|
675
|
+
* @param {number} od
|
|
676
|
+
* @param {string} bg_path
|
|
677
|
+
* @param {string} video_path
|
|
678
|
+
* @param {string} song_path
|
|
679
|
+
* @param {number} audio_offset
|
|
680
|
+
* @param {number} preview_time
|
|
681
|
+
* @param {number} key_count
|
|
682
|
+
* @returns {ChartInfo}
|
|
683
|
+
*/
|
|
684
|
+
static new(difficulty_name, hp, od, bg_path, video_path, song_path, audio_offset, preview_time, key_count) {
|
|
685
|
+
const ptr0 = passStringToWasm0(difficulty_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
686
|
+
const len0 = WASM_VECTOR_LEN;
|
|
687
|
+
const ptr1 = passStringToWasm0(bg_path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
688
|
+
const len1 = WASM_VECTOR_LEN;
|
|
689
|
+
const ptr2 = passStringToWasm0(video_path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
690
|
+
const len2 = WASM_VECTOR_LEN;
|
|
691
|
+
const ptr3 = passStringToWasm0(song_path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
692
|
+
const len3 = WASM_VECTOR_LEN;
|
|
693
|
+
const ret = wasm.chartinfo_new(ptr0, len0, hp, od, ptr1, len1, ptr2, len2, ptr3, len3, audio_offset, preview_time, key_count);
|
|
694
|
+
return ChartInfo.__wrap(ret);
|
|
695
|
+
}
|
|
696
|
+
/**
|
|
697
|
+
* @returns {ChartInfo}
|
|
698
|
+
*/
|
|
699
|
+
static empty() {
|
|
700
|
+
const ret = wasm.chartinfo_empty();
|
|
701
|
+
return ChartInfo.__wrap(ret);
|
|
702
|
+
}
|
|
703
|
+
}
|
|
704
|
+
module.exports.ChartInfo = ChartInfo;
|
|
705
|
+
|
|
706
|
+
const GenericManiaChartFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
707
|
+
? { register: () => {}, unregister: () => {} }
|
|
708
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_genericmaniachart_free(ptr >>> 0, 1));
|
|
709
|
+
|
|
710
|
+
class GenericManiaChart {
|
|
711
|
+
|
|
712
|
+
static __wrap(ptr) {
|
|
713
|
+
ptr = ptr >>> 0;
|
|
714
|
+
const obj = Object.create(GenericManiaChart.prototype);
|
|
715
|
+
obj.__wbg_ptr = ptr;
|
|
716
|
+
GenericManiaChartFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
717
|
+
return obj;
|
|
718
|
+
}
|
|
719
|
+
|
|
720
|
+
__destroy_into_raw() {
|
|
721
|
+
const ptr = this.__wbg_ptr;
|
|
722
|
+
this.__wbg_ptr = 0;
|
|
723
|
+
GenericManiaChartFinalization.unregister(this);
|
|
724
|
+
return ptr;
|
|
725
|
+
}
|
|
726
|
+
|
|
727
|
+
free() {
|
|
728
|
+
const ptr = this.__destroy_into_raw();
|
|
729
|
+
wasm.__wbg_genericmaniachart_free(ptr, 0);
|
|
730
|
+
}
|
|
731
|
+
/**
|
|
732
|
+
* @returns {Metadata}
|
|
733
|
+
*/
|
|
734
|
+
get metadata() {
|
|
735
|
+
const ret = wasm.__wbg_get_genericmaniachart_metadata(this.__wbg_ptr);
|
|
736
|
+
return Metadata.__wrap(ret);
|
|
737
|
+
}
|
|
738
|
+
/**
|
|
739
|
+
* @param {Metadata} arg0
|
|
740
|
+
*/
|
|
741
|
+
set metadata(arg0) {
|
|
742
|
+
_assertClass(arg0, Metadata);
|
|
743
|
+
var ptr0 = arg0.__destroy_into_raw();
|
|
744
|
+
wasm.__wbg_set_genericmaniachart_metadata(this.__wbg_ptr, ptr0);
|
|
745
|
+
}
|
|
746
|
+
/**
|
|
747
|
+
* @returns {ChartInfo}
|
|
748
|
+
*/
|
|
749
|
+
get chartinfo() {
|
|
750
|
+
const ret = wasm.__wbg_get_genericmaniachart_chartinfo(this.__wbg_ptr);
|
|
751
|
+
return ChartInfo.__wrap(ret);
|
|
752
|
+
}
|
|
753
|
+
/**
|
|
754
|
+
* @param {ChartInfo} arg0
|
|
755
|
+
*/
|
|
756
|
+
set chartinfo(arg0) {
|
|
757
|
+
_assertClass(arg0, ChartInfo);
|
|
758
|
+
var ptr0 = arg0.__destroy_into_raw();
|
|
759
|
+
wasm.__wbg_set_genericmaniachart_chartinfo(this.__wbg_ptr, ptr0);
|
|
760
|
+
}
|
|
761
|
+
/**
|
|
762
|
+
* @returns {TimingPoints}
|
|
763
|
+
*/
|
|
764
|
+
get timing_points() {
|
|
765
|
+
const ret = wasm.__wbg_get_genericmaniachart_timing_points(this.__wbg_ptr);
|
|
766
|
+
return TimingPoints.__wrap(ret);
|
|
767
|
+
}
|
|
768
|
+
/**
|
|
769
|
+
* @param {TimingPoints} arg0
|
|
770
|
+
*/
|
|
771
|
+
set timing_points(arg0) {
|
|
772
|
+
_assertClass(arg0, TimingPoints);
|
|
773
|
+
var ptr0 = arg0.__destroy_into_raw();
|
|
774
|
+
wasm.__wbg_set_genericmaniachart_timing_points(this.__wbg_ptr, ptr0);
|
|
775
|
+
}
|
|
776
|
+
/**
|
|
777
|
+
* @returns {HitObjects}
|
|
778
|
+
*/
|
|
779
|
+
get hitobjects() {
|
|
780
|
+
const ret = wasm.__wbg_get_genericmaniachart_hitobjects(this.__wbg_ptr);
|
|
781
|
+
return HitObjects.__wrap(ret);
|
|
782
|
+
}
|
|
783
|
+
/**
|
|
784
|
+
* @param {HitObjects} arg0
|
|
785
|
+
*/
|
|
786
|
+
set hitobjects(arg0) {
|
|
787
|
+
_assertClass(arg0, HitObjects);
|
|
788
|
+
var ptr0 = arg0.__destroy_into_raw();
|
|
789
|
+
wasm.__wbg_set_genericmaniachart_hitobjects(this.__wbg_ptr, ptr0);
|
|
790
|
+
}
|
|
791
|
+
/**
|
|
792
|
+
* @returns {SoundBank | undefined}
|
|
793
|
+
*/
|
|
794
|
+
get soundbank() {
|
|
795
|
+
const ret = wasm.__wbg_get_genericmaniachart_soundbank(this.__wbg_ptr);
|
|
796
|
+
return ret === 0 ? undefined : SoundBank.__wrap(ret);
|
|
797
|
+
}
|
|
798
|
+
/**
|
|
799
|
+
* @param {SoundBank | null} [arg0]
|
|
800
|
+
*/
|
|
801
|
+
set soundbank(arg0) {
|
|
802
|
+
let ptr0 = 0;
|
|
803
|
+
if (!isLikeNone(arg0)) {
|
|
804
|
+
_assertClass(arg0, SoundBank);
|
|
805
|
+
ptr0 = arg0.__destroy_into_raw();
|
|
806
|
+
}
|
|
807
|
+
wasm.__wbg_set_genericmaniachart_soundbank(this.__wbg_ptr, ptr0);
|
|
808
|
+
}
|
|
809
|
+
}
|
|
810
|
+
module.exports.GenericManiaChart = GenericManiaChart;
|
|
811
|
+
|
|
812
|
+
const HitObjectsFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
813
|
+
? { register: () => {}, unregister: () => {} }
|
|
814
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_hitobjects_free(ptr >>> 0, 1));
|
|
815
|
+
|
|
816
|
+
class HitObjects {
|
|
817
|
+
|
|
818
|
+
static __wrap(ptr) {
|
|
819
|
+
ptr = ptr >>> 0;
|
|
820
|
+
const obj = Object.create(HitObjects.prototype);
|
|
821
|
+
obj.__wbg_ptr = ptr;
|
|
822
|
+
HitObjectsFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
823
|
+
return obj;
|
|
824
|
+
}
|
|
825
|
+
|
|
826
|
+
__destroy_into_raw() {
|
|
827
|
+
const ptr = this.__wbg_ptr;
|
|
828
|
+
this.__wbg_ptr = 0;
|
|
829
|
+
HitObjectsFinalization.unregister(this);
|
|
830
|
+
return ptr;
|
|
831
|
+
}
|
|
832
|
+
|
|
833
|
+
free() {
|
|
834
|
+
const ptr = this.__destroy_into_raw();
|
|
835
|
+
wasm.__wbg_hitobjects_free(ptr, 0);
|
|
836
|
+
}
|
|
837
|
+
}
|
|
838
|
+
module.exports.HitObjects = HitObjects;
|
|
839
|
+
|
|
840
|
+
const KeyFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
841
|
+
? { register: () => {}, unregister: () => {} }
|
|
842
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_key_free(ptr >>> 0, 1));
|
|
843
|
+
|
|
844
|
+
class Key {
|
|
845
|
+
|
|
846
|
+
static __wrap(ptr) {
|
|
847
|
+
ptr = ptr >>> 0;
|
|
848
|
+
const obj = Object.create(Key.prototype);
|
|
849
|
+
obj.__wbg_ptr = ptr;
|
|
850
|
+
KeyFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
851
|
+
return obj;
|
|
852
|
+
}
|
|
853
|
+
|
|
854
|
+
__destroy_into_raw() {
|
|
855
|
+
const ptr = this.__wbg_ptr;
|
|
856
|
+
this.__wbg_ptr = 0;
|
|
857
|
+
KeyFinalization.unregister(this);
|
|
858
|
+
return ptr;
|
|
859
|
+
}
|
|
860
|
+
|
|
861
|
+
free() {
|
|
862
|
+
const ptr = this.__destroy_into_raw();
|
|
863
|
+
wasm.__wbg_key_free(ptr, 0);
|
|
864
|
+
}
|
|
865
|
+
/**
|
|
866
|
+
* @returns {KeyType}
|
|
867
|
+
*/
|
|
868
|
+
get key_type() {
|
|
869
|
+
const ret = wasm.__wbg_get_key_key_type(this.__wbg_ptr);
|
|
870
|
+
return ret;
|
|
871
|
+
}
|
|
872
|
+
/**
|
|
873
|
+
* @param {KeyType} arg0
|
|
874
|
+
*/
|
|
875
|
+
set key_type(arg0) {
|
|
876
|
+
wasm.__wbg_set_key_key_type(this.__wbg_ptr, arg0);
|
|
877
|
+
}
|
|
878
|
+
/**
|
|
879
|
+
* @returns {number | undefined}
|
|
880
|
+
*/
|
|
881
|
+
get slider_end_time() {
|
|
882
|
+
const ret = wasm.__wbg_get_catchhitobject_end_time(this.__wbg_ptr);
|
|
883
|
+
return ret === 0x100000001 ? undefined : ret;
|
|
884
|
+
}
|
|
885
|
+
/**
|
|
886
|
+
* @param {number | null} [arg0]
|
|
887
|
+
*/
|
|
888
|
+
set slider_end_time(arg0) {
|
|
889
|
+
wasm.__wbg_set_catchhitobject_end_time(this.__wbg_ptr, isLikeNone(arg0) ? 0x100000001 : (arg0) >> 0);
|
|
890
|
+
}
|
|
891
|
+
/**
|
|
892
|
+
* @returns {Key}
|
|
893
|
+
*/
|
|
894
|
+
static empty() {
|
|
895
|
+
const ret = wasm.key_empty();
|
|
896
|
+
return Key.__wrap(ret);
|
|
897
|
+
}
|
|
898
|
+
/**
|
|
899
|
+
* @returns {Key}
|
|
900
|
+
*/
|
|
901
|
+
static normal() {
|
|
902
|
+
const ret = wasm.key_normal();
|
|
903
|
+
return Key.__wrap(ret);
|
|
904
|
+
}
|
|
905
|
+
/**
|
|
906
|
+
* @param {number | null} [value]
|
|
907
|
+
* @returns {Key}
|
|
908
|
+
*/
|
|
909
|
+
static slider_start(value) {
|
|
910
|
+
const ret = wasm.key_slider_start(isLikeNone(value) ? 0x100000001 : (value) >> 0);
|
|
911
|
+
return Key.__wrap(ret);
|
|
912
|
+
}
|
|
913
|
+
/**
|
|
914
|
+
* @returns {Key}
|
|
915
|
+
*/
|
|
916
|
+
static slider_end() {
|
|
917
|
+
const ret = wasm.key_slider_end();
|
|
918
|
+
return Key.__wrap(ret);
|
|
919
|
+
}
|
|
920
|
+
/**
|
|
921
|
+
* @returns {Key}
|
|
922
|
+
*/
|
|
923
|
+
static mine() {
|
|
924
|
+
const ret = wasm.key_mine();
|
|
925
|
+
return Key.__wrap(ret);
|
|
926
|
+
}
|
|
927
|
+
/**
|
|
928
|
+
* @returns {Key}
|
|
929
|
+
*/
|
|
930
|
+
static fake() {
|
|
931
|
+
const ret = wasm.key_fake();
|
|
932
|
+
return Key.__wrap(ret);
|
|
933
|
+
}
|
|
934
|
+
/**
|
|
935
|
+
* @returns {Key}
|
|
936
|
+
*/
|
|
937
|
+
static unknown() {
|
|
938
|
+
const ret = wasm.key_unknown();
|
|
939
|
+
return Key.__wrap(ret);
|
|
940
|
+
}
|
|
941
|
+
/**
|
|
942
|
+
* @returns {number | undefined}
|
|
943
|
+
*/
|
|
944
|
+
slider_end_time() {
|
|
945
|
+
const ret = wasm.catchhitobject_end_time(this.__wbg_ptr);
|
|
946
|
+
return ret === 0x100000001 ? undefined : ret;
|
|
947
|
+
}
|
|
948
|
+
}
|
|
949
|
+
module.exports.Key = Key;
|
|
950
|
+
|
|
951
|
+
const KeySoundFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
952
|
+
? { register: () => {}, unregister: () => {} }
|
|
953
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_keysound_free(ptr >>> 0, 1));
|
|
954
|
+
|
|
955
|
+
class KeySound {
|
|
956
|
+
|
|
957
|
+
__destroy_into_raw() {
|
|
958
|
+
const ptr = this.__wbg_ptr;
|
|
959
|
+
this.__wbg_ptr = 0;
|
|
960
|
+
KeySoundFinalization.unregister(this);
|
|
961
|
+
return ptr;
|
|
962
|
+
}
|
|
963
|
+
|
|
964
|
+
free() {
|
|
965
|
+
const ptr = this.__destroy_into_raw();
|
|
966
|
+
wasm.__wbg_keysound_free(ptr, 0);
|
|
967
|
+
}
|
|
968
|
+
/**
|
|
969
|
+
* @returns {number}
|
|
970
|
+
*/
|
|
971
|
+
get volume() {
|
|
972
|
+
const ret = wasm.__wbg_get_keysound_volume(this.__wbg_ptr);
|
|
973
|
+
return ret;
|
|
974
|
+
}
|
|
975
|
+
/**
|
|
976
|
+
* @param {number} arg0
|
|
977
|
+
*/
|
|
978
|
+
set volume(arg0) {
|
|
979
|
+
wasm.__wbg_set_keysound_volume(this.__wbg_ptr, arg0);
|
|
980
|
+
}
|
|
981
|
+
/**
|
|
982
|
+
* @returns {HitSoundType}
|
|
983
|
+
*/
|
|
984
|
+
get hitsound_type() {
|
|
985
|
+
const ret = wasm.__wbg_get_keysound_hitsound_type(this.__wbg_ptr);
|
|
986
|
+
return ret;
|
|
987
|
+
}
|
|
988
|
+
/**
|
|
989
|
+
* @param {HitSoundType} arg0
|
|
990
|
+
*/
|
|
991
|
+
set hitsound_type(arg0) {
|
|
992
|
+
wasm.__wbg_set_keysound_hitsound_type(this.__wbg_ptr, arg0);
|
|
993
|
+
}
|
|
994
|
+
/**
|
|
995
|
+
* @returns {number | undefined}
|
|
996
|
+
*/
|
|
997
|
+
get sample() {
|
|
998
|
+
const ret = wasm.__wbg_get_keysound_sample(this.__wbg_ptr);
|
|
999
|
+
return ret === 0x100000001 ? undefined : ret;
|
|
1000
|
+
}
|
|
1001
|
+
/**
|
|
1002
|
+
* @param {number | null} [arg0]
|
|
1003
|
+
*/
|
|
1004
|
+
set sample(arg0) {
|
|
1005
|
+
wasm.__wbg_set_keysound_sample(this.__wbg_ptr, isLikeNone(arg0) ? 0x100000001 : (arg0) >>> 0);
|
|
1006
|
+
}
|
|
1007
|
+
/**
|
|
1008
|
+
* @returns {boolean}
|
|
1009
|
+
*/
|
|
1010
|
+
get has_custom() {
|
|
1011
|
+
const ret = wasm.__wbg_get_keysound_has_custom(this.__wbg_ptr);
|
|
1012
|
+
return ret !== 0;
|
|
1013
|
+
}
|
|
1014
|
+
/**
|
|
1015
|
+
* @param {boolean} arg0
|
|
1016
|
+
*/
|
|
1017
|
+
set has_custom(arg0) {
|
|
1018
|
+
wasm.__wbg_set_keysound_has_custom(this.__wbg_ptr, arg0);
|
|
1019
|
+
}
|
|
1020
|
+
}
|
|
1021
|
+
module.exports.KeySound = KeySound;
|
|
1022
|
+
|
|
1023
|
+
const KeySoundRowFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1024
|
+
? { register: () => {}, unregister: () => {} }
|
|
1025
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_keysoundrow_free(ptr >>> 0, 1));
|
|
1026
|
+
|
|
1027
|
+
class KeySoundRow {
|
|
1028
|
+
|
|
1029
|
+
__destroy_into_raw() {
|
|
1030
|
+
const ptr = this.__wbg_ptr;
|
|
1031
|
+
this.__wbg_ptr = 0;
|
|
1032
|
+
KeySoundRowFinalization.unregister(this);
|
|
1033
|
+
return ptr;
|
|
1034
|
+
}
|
|
1035
|
+
|
|
1036
|
+
free() {
|
|
1037
|
+
const ptr = this.__destroy_into_raw();
|
|
1038
|
+
wasm.__wbg_keysoundrow_free(ptr, 0);
|
|
1039
|
+
}
|
|
1040
|
+
/**
|
|
1041
|
+
* @returns {boolean}
|
|
1042
|
+
*/
|
|
1043
|
+
get is_empty() {
|
|
1044
|
+
const ret = wasm.__wbg_get_keysoundrow_is_empty(this.__wbg_ptr);
|
|
1045
|
+
return ret !== 0;
|
|
1046
|
+
}
|
|
1047
|
+
/**
|
|
1048
|
+
* @param {boolean} arg0
|
|
1049
|
+
*/
|
|
1050
|
+
set is_empty(arg0) {
|
|
1051
|
+
wasm.__wbg_set_keysoundrow_is_empty(this.__wbg_ptr, arg0);
|
|
1052
|
+
}
|
|
1053
|
+
}
|
|
1054
|
+
module.exports.KeySoundRow = KeySoundRow;
|
|
1055
|
+
|
|
1056
|
+
const MetadataFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1057
|
+
? { register: () => {}, unregister: () => {} }
|
|
1058
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_metadata_free(ptr >>> 0, 1));
|
|
1059
|
+
|
|
1060
|
+
class Metadata {
|
|
1061
|
+
|
|
1062
|
+
static __wrap(ptr) {
|
|
1063
|
+
ptr = ptr >>> 0;
|
|
1064
|
+
const obj = Object.create(Metadata.prototype);
|
|
1065
|
+
obj.__wbg_ptr = ptr;
|
|
1066
|
+
MetadataFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
1067
|
+
return obj;
|
|
1068
|
+
}
|
|
1069
|
+
|
|
1070
|
+
__destroy_into_raw() {
|
|
1071
|
+
const ptr = this.__wbg_ptr;
|
|
1072
|
+
this.__wbg_ptr = 0;
|
|
1073
|
+
MetadataFinalization.unregister(this);
|
|
1074
|
+
return ptr;
|
|
1075
|
+
}
|
|
1076
|
+
|
|
1077
|
+
free() {
|
|
1078
|
+
const ptr = this.__destroy_into_raw();
|
|
1079
|
+
wasm.__wbg_metadata_free(ptr, 0);
|
|
1080
|
+
}
|
|
1081
|
+
/**
|
|
1082
|
+
* @returns {string}
|
|
1083
|
+
*/
|
|
1084
|
+
get title() {
|
|
1085
|
+
let deferred1_0;
|
|
1086
|
+
let deferred1_1;
|
|
1087
|
+
try {
|
|
1088
|
+
const ret = wasm.__wbg_get_metadata_title(this.__wbg_ptr);
|
|
1089
|
+
deferred1_0 = ret[0];
|
|
1090
|
+
deferred1_1 = ret[1];
|
|
1091
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
1092
|
+
} finally {
|
|
1093
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
1094
|
+
}
|
|
1095
|
+
}
|
|
1096
|
+
/**
|
|
1097
|
+
* @param {string} arg0
|
|
1098
|
+
*/
|
|
1099
|
+
set title(arg0) {
|
|
1100
|
+
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1101
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1102
|
+
wasm.__wbg_set_metadata_title(this.__wbg_ptr, ptr0, len0);
|
|
1103
|
+
}
|
|
1104
|
+
/**
|
|
1105
|
+
* @returns {string}
|
|
1106
|
+
*/
|
|
1107
|
+
get alt_title() {
|
|
1108
|
+
let deferred1_0;
|
|
1109
|
+
let deferred1_1;
|
|
1110
|
+
try {
|
|
1111
|
+
const ret = wasm.__wbg_get_metadata_alt_title(this.__wbg_ptr);
|
|
1112
|
+
deferred1_0 = ret[0];
|
|
1113
|
+
deferred1_1 = ret[1];
|
|
1114
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
1115
|
+
} finally {
|
|
1116
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
1117
|
+
}
|
|
1118
|
+
}
|
|
1119
|
+
/**
|
|
1120
|
+
* @param {string} arg0
|
|
1121
|
+
*/
|
|
1122
|
+
set alt_title(arg0) {
|
|
1123
|
+
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1124
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1125
|
+
wasm.__wbg_set_metadata_alt_title(this.__wbg_ptr, ptr0, len0);
|
|
1126
|
+
}
|
|
1127
|
+
/**
|
|
1128
|
+
* @returns {string}
|
|
1129
|
+
*/
|
|
1130
|
+
get artist() {
|
|
1131
|
+
let deferred1_0;
|
|
1132
|
+
let deferred1_1;
|
|
1133
|
+
try {
|
|
1134
|
+
const ret = wasm.__wbg_get_metadata_artist(this.__wbg_ptr);
|
|
1135
|
+
deferred1_0 = ret[0];
|
|
1136
|
+
deferred1_1 = ret[1];
|
|
1137
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
1138
|
+
} finally {
|
|
1139
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
1140
|
+
}
|
|
1141
|
+
}
|
|
1142
|
+
/**
|
|
1143
|
+
* @param {string} arg0
|
|
1144
|
+
*/
|
|
1145
|
+
set artist(arg0) {
|
|
1146
|
+
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1147
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1148
|
+
wasm.__wbg_set_metadata_artist(this.__wbg_ptr, ptr0, len0);
|
|
1149
|
+
}
|
|
1150
|
+
/**
|
|
1151
|
+
* @returns {string}
|
|
1152
|
+
*/
|
|
1153
|
+
get alt_artist() {
|
|
1154
|
+
let deferred1_0;
|
|
1155
|
+
let deferred1_1;
|
|
1156
|
+
try {
|
|
1157
|
+
const ret = wasm.__wbg_get_metadata_alt_artist(this.__wbg_ptr);
|
|
1158
|
+
deferred1_0 = ret[0];
|
|
1159
|
+
deferred1_1 = ret[1];
|
|
1160
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
1161
|
+
} finally {
|
|
1162
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
1163
|
+
}
|
|
1164
|
+
}
|
|
1165
|
+
/**
|
|
1166
|
+
* @param {string} arg0
|
|
1167
|
+
*/
|
|
1168
|
+
set alt_artist(arg0) {
|
|
1169
|
+
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1170
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1171
|
+
wasm.__wbg_set_metadata_alt_artist(this.__wbg_ptr, ptr0, len0);
|
|
1172
|
+
}
|
|
1173
|
+
/**
|
|
1174
|
+
* @returns {string}
|
|
1175
|
+
*/
|
|
1176
|
+
get creator() {
|
|
1177
|
+
let deferred1_0;
|
|
1178
|
+
let deferred1_1;
|
|
1179
|
+
try {
|
|
1180
|
+
const ret = wasm.__wbg_get_metadata_creator(this.__wbg_ptr);
|
|
1181
|
+
deferred1_0 = ret[0];
|
|
1182
|
+
deferred1_1 = ret[1];
|
|
1183
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
1184
|
+
} finally {
|
|
1185
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
1186
|
+
}
|
|
1187
|
+
}
|
|
1188
|
+
/**
|
|
1189
|
+
* @param {string} arg0
|
|
1190
|
+
*/
|
|
1191
|
+
set creator(arg0) {
|
|
1192
|
+
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1193
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1194
|
+
wasm.__wbg_set_metadata_creator(this.__wbg_ptr, ptr0, len0);
|
|
1195
|
+
}
|
|
1196
|
+
/**
|
|
1197
|
+
* @returns {string}
|
|
1198
|
+
*/
|
|
1199
|
+
get genre() {
|
|
1200
|
+
let deferred1_0;
|
|
1201
|
+
let deferred1_1;
|
|
1202
|
+
try {
|
|
1203
|
+
const ret = wasm.__wbg_get_metadata_genre(this.__wbg_ptr);
|
|
1204
|
+
deferred1_0 = ret[0];
|
|
1205
|
+
deferred1_1 = ret[1];
|
|
1206
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
1207
|
+
} finally {
|
|
1208
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
1209
|
+
}
|
|
1210
|
+
}
|
|
1211
|
+
/**
|
|
1212
|
+
* @param {string} arg0
|
|
1213
|
+
*/
|
|
1214
|
+
set genre(arg0) {
|
|
1215
|
+
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1216
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1217
|
+
wasm.__wbg_set_metadata_genre(this.__wbg_ptr, ptr0, len0);
|
|
1218
|
+
}
|
|
1219
|
+
/**
|
|
1220
|
+
* @returns {string[]}
|
|
1221
|
+
*/
|
|
1222
|
+
get tags() {
|
|
1223
|
+
const ret = wasm.__wbg_get_metadata_tags(this.__wbg_ptr);
|
|
1224
|
+
var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
|
|
1225
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
1226
|
+
return v1;
|
|
1227
|
+
}
|
|
1228
|
+
/**
|
|
1229
|
+
* @param {string[]} arg0
|
|
1230
|
+
*/
|
|
1231
|
+
set tags(arg0) {
|
|
1232
|
+
const ptr0 = passArrayJsValueToWasm0(arg0, wasm.__wbindgen_malloc);
|
|
1233
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1234
|
+
wasm.__wbg_set_metadata_tags(this.__wbg_ptr, ptr0, len0);
|
|
1235
|
+
}
|
|
1236
|
+
/**
|
|
1237
|
+
* @returns {string}
|
|
1238
|
+
*/
|
|
1239
|
+
get source() {
|
|
1240
|
+
let deferred1_0;
|
|
1241
|
+
let deferred1_1;
|
|
1242
|
+
try {
|
|
1243
|
+
const ret = wasm.__wbg_get_metadata_source(this.__wbg_ptr);
|
|
1244
|
+
deferred1_0 = ret[0];
|
|
1245
|
+
deferred1_1 = ret[1];
|
|
1246
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
1247
|
+
} finally {
|
|
1248
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
1249
|
+
}
|
|
1250
|
+
}
|
|
1251
|
+
/**
|
|
1252
|
+
* @param {string} arg0
|
|
1253
|
+
*/
|
|
1254
|
+
set source(arg0) {
|
|
1255
|
+
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1256
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1257
|
+
wasm.__wbg_set_metadata_source(this.__wbg_ptr, ptr0, len0);
|
|
1258
|
+
}
|
|
1259
|
+
}
|
|
1260
|
+
module.exports.Metadata = Metadata;
|
|
1261
|
+
|
|
1262
|
+
const OsuHitobjectFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1263
|
+
? { register: () => {}, unregister: () => {} }
|
|
1264
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_osuhitobject_free(ptr >>> 0, 1));
|
|
1265
|
+
|
|
1266
|
+
class OsuHitobject {
|
|
1267
|
+
|
|
1268
|
+
static __wrap(ptr) {
|
|
1269
|
+
ptr = ptr >>> 0;
|
|
1270
|
+
const obj = Object.create(OsuHitobject.prototype);
|
|
1271
|
+
obj.__wbg_ptr = ptr;
|
|
1272
|
+
OsuHitobjectFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
1273
|
+
return obj;
|
|
1274
|
+
}
|
|
1275
|
+
|
|
1276
|
+
__destroy_into_raw() {
|
|
1277
|
+
const ptr = this.__wbg_ptr;
|
|
1278
|
+
this.__wbg_ptr = 0;
|
|
1279
|
+
OsuHitobjectFinalization.unregister(this);
|
|
1280
|
+
return ptr;
|
|
1281
|
+
}
|
|
1282
|
+
|
|
1283
|
+
free() {
|
|
1284
|
+
const ptr = this.__destroy_into_raw();
|
|
1285
|
+
wasm.__wbg_osuhitobject_free(ptr, 0);
|
|
1286
|
+
}
|
|
1287
|
+
/**
|
|
1288
|
+
* @returns {OsuHitobjectType}
|
|
1289
|
+
*/
|
|
1290
|
+
get object_type() {
|
|
1291
|
+
const ret = wasm.__wbg_get_osuhitobject_object_type(this.__wbg_ptr);
|
|
1292
|
+
return ret;
|
|
1293
|
+
}
|
|
1294
|
+
/**
|
|
1295
|
+
* @param {OsuHitobjectType} arg0
|
|
1296
|
+
*/
|
|
1297
|
+
set object_type(arg0) {
|
|
1298
|
+
wasm.__wbg_set_osuhitobject_object_type(this.__wbg_ptr, arg0);
|
|
1299
|
+
}
|
|
1300
|
+
/**
|
|
1301
|
+
* @returns {number}
|
|
1302
|
+
*/
|
|
1303
|
+
get x() {
|
|
1304
|
+
const ret = wasm.__wbg_get_catchhitobject_x_position(this.__wbg_ptr);
|
|
1305
|
+
return ret;
|
|
1306
|
+
}
|
|
1307
|
+
/**
|
|
1308
|
+
* @param {number} arg0
|
|
1309
|
+
*/
|
|
1310
|
+
set x(arg0) {
|
|
1311
|
+
wasm.__wbg_set_catchhitobject_x_position(this.__wbg_ptr, arg0);
|
|
1312
|
+
}
|
|
1313
|
+
/**
|
|
1314
|
+
* @returns {number}
|
|
1315
|
+
*/
|
|
1316
|
+
get y() {
|
|
1317
|
+
const ret = wasm.__wbg_get_osuhitobject_y(this.__wbg_ptr);
|
|
1318
|
+
return ret;
|
|
1319
|
+
}
|
|
1320
|
+
/**
|
|
1321
|
+
* @param {number} arg0
|
|
1322
|
+
*/
|
|
1323
|
+
set y(arg0) {
|
|
1324
|
+
wasm.__wbg_set_osuhitobject_y(this.__wbg_ptr, arg0);
|
|
1325
|
+
}
|
|
1326
|
+
/**
|
|
1327
|
+
* @returns {number | undefined}
|
|
1328
|
+
*/
|
|
1329
|
+
get end_time() {
|
|
1330
|
+
const ret = wasm.__wbg_get_catchhitobject_end_time(this.__wbg_ptr);
|
|
1331
|
+
return ret === 0x100000001 ? undefined : ret;
|
|
1332
|
+
}
|
|
1333
|
+
/**
|
|
1334
|
+
* @param {number | null} [arg0]
|
|
1335
|
+
*/
|
|
1336
|
+
set end_time(arg0) {
|
|
1337
|
+
wasm.__wbg_set_catchhitobject_end_time(this.__wbg_ptr, isLikeNone(arg0) ? 0x100000001 : (arg0) >> 0);
|
|
1338
|
+
}
|
|
1339
|
+
/**
|
|
1340
|
+
* @returns {boolean}
|
|
1341
|
+
*/
|
|
1342
|
+
get new_combo() {
|
|
1343
|
+
const ret = wasm.__wbg_get_osuhitobject_new_combo(this.__wbg_ptr);
|
|
1344
|
+
return ret !== 0;
|
|
1345
|
+
}
|
|
1346
|
+
/**
|
|
1347
|
+
* @param {boolean} arg0
|
|
1348
|
+
*/
|
|
1349
|
+
set new_combo(arg0) {
|
|
1350
|
+
wasm.__wbg_set_osuhitobject_new_combo(this.__wbg_ptr, arg0);
|
|
1351
|
+
}
|
|
1352
|
+
/**
|
|
1353
|
+
* @returns {number}
|
|
1354
|
+
*/
|
|
1355
|
+
get combo_skip() {
|
|
1356
|
+
const ret = wasm.__wbg_get_osuhitobject_combo_skip(this.__wbg_ptr);
|
|
1357
|
+
return ret;
|
|
1358
|
+
}
|
|
1359
|
+
/**
|
|
1360
|
+
* @param {number} arg0
|
|
1361
|
+
*/
|
|
1362
|
+
set combo_skip(arg0) {
|
|
1363
|
+
wasm.__wbg_set_osuhitobject_combo_skip(this.__wbg_ptr, arg0);
|
|
1364
|
+
}
|
|
1365
|
+
/**
|
|
1366
|
+
* @returns {OsuHitobject}
|
|
1367
|
+
*/
|
|
1368
|
+
static empty() {
|
|
1369
|
+
const ret = wasm.osuhitobject_empty();
|
|
1370
|
+
return OsuHitobject.__wrap(ret);
|
|
1371
|
+
}
|
|
1372
|
+
/**
|
|
1373
|
+
* @param {number} x
|
|
1374
|
+
* @param {number} y
|
|
1375
|
+
* @returns {OsuHitobject}
|
|
1376
|
+
*/
|
|
1377
|
+
static hit_circle(x, y) {
|
|
1378
|
+
const ret = wasm.osuhitobject_hit_circle(x, y);
|
|
1379
|
+
return OsuHitobject.__wrap(ret);
|
|
1380
|
+
}
|
|
1381
|
+
/**
|
|
1382
|
+
* @param {number} x
|
|
1383
|
+
* @param {number} y
|
|
1384
|
+
* @returns {OsuHitobject}
|
|
1385
|
+
*/
|
|
1386
|
+
static slider(x, y) {
|
|
1387
|
+
const ret = wasm.osuhitobject_slider(x, y);
|
|
1388
|
+
return OsuHitobject.__wrap(ret);
|
|
1389
|
+
}
|
|
1390
|
+
/**
|
|
1391
|
+
* @param {number} end_time
|
|
1392
|
+
* @returns {OsuHitobject}
|
|
1393
|
+
*/
|
|
1394
|
+
static spinner(end_time) {
|
|
1395
|
+
const ret = wasm.osuhitobject_spinner(end_time);
|
|
1396
|
+
return OsuHitobject.__wrap(ret);
|
|
1397
|
+
}
|
|
1398
|
+
/**
|
|
1399
|
+
* @returns {OsuHitobject}
|
|
1400
|
+
*/
|
|
1401
|
+
static unknown() {
|
|
1402
|
+
const ret = wasm.osuhitobject_unknown();
|
|
1403
|
+
return OsuHitobject.__wrap(ret);
|
|
1404
|
+
}
|
|
1405
|
+
/**
|
|
1406
|
+
* @returns {OsuHitobject}
|
|
1407
|
+
*/
|
|
1408
|
+
with_new_combo() {
|
|
1409
|
+
const ptr = this.__destroy_into_raw();
|
|
1410
|
+
const ret = wasm.osuhitobject_with_new_combo(ptr);
|
|
1411
|
+
return OsuHitobject.__wrap(ret);
|
|
1412
|
+
}
|
|
1413
|
+
/**
|
|
1414
|
+
* @param {number} skip
|
|
1415
|
+
* @returns {OsuHitobject}
|
|
1416
|
+
*/
|
|
1417
|
+
with_combo_skip(skip) {
|
|
1418
|
+
const ptr = this.__destroy_into_raw();
|
|
1419
|
+
const ret = wasm.osuhitobject_with_combo_skip(ptr, skip);
|
|
1420
|
+
return OsuHitobject.__wrap(ret);
|
|
1421
|
+
}
|
|
1422
|
+
/**
|
|
1423
|
+
* @returns {number | undefined}
|
|
1424
|
+
*/
|
|
1425
|
+
end_time() {
|
|
1426
|
+
const ret = wasm.catchhitobject_end_time(this.__wbg_ptr);
|
|
1427
|
+
return ret === 0x100000001 ? undefined : ret;
|
|
1428
|
+
}
|
|
1429
|
+
/**
|
|
1430
|
+
* @returns {boolean}
|
|
1431
|
+
*/
|
|
1432
|
+
is_new_combo() {
|
|
1433
|
+
const ret = wasm.osuhitobject_is_new_combo(this.__wbg_ptr);
|
|
1434
|
+
return ret !== 0;
|
|
1435
|
+
}
|
|
1436
|
+
/**
|
|
1437
|
+
* @returns {number}
|
|
1438
|
+
*/
|
|
1439
|
+
combo_skip() {
|
|
1440
|
+
const ret = wasm.osuhitobject_combo_skip(this.__wbg_ptr);
|
|
1441
|
+
return ret;
|
|
1442
|
+
}
|
|
1443
|
+
}
|
|
1444
|
+
module.exports.OsuHitobject = OsuHitobject;
|
|
1445
|
+
|
|
1446
|
+
const SoundBankFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1447
|
+
? { register: () => {}, unregister: () => {} }
|
|
1448
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_soundbank_free(ptr >>> 0, 1));
|
|
1449
|
+
|
|
1450
|
+
class SoundBank {
|
|
1451
|
+
|
|
1452
|
+
static __wrap(ptr) {
|
|
1453
|
+
ptr = ptr >>> 0;
|
|
1454
|
+
const obj = Object.create(SoundBank.prototype);
|
|
1455
|
+
obj.__wbg_ptr = ptr;
|
|
1456
|
+
SoundBankFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
1457
|
+
return obj;
|
|
1458
|
+
}
|
|
1459
|
+
|
|
1460
|
+
__destroy_into_raw() {
|
|
1461
|
+
const ptr = this.__wbg_ptr;
|
|
1462
|
+
this.__wbg_ptr = 0;
|
|
1463
|
+
SoundBankFinalization.unregister(this);
|
|
1464
|
+
return ptr;
|
|
1465
|
+
}
|
|
1466
|
+
|
|
1467
|
+
free() {
|
|
1468
|
+
const ptr = this.__destroy_into_raw();
|
|
1469
|
+
wasm.__wbg_soundbank_free(ptr, 0);
|
|
1470
|
+
}
|
|
1471
|
+
/**
|
|
1472
|
+
* @returns {string[]}
|
|
1473
|
+
*/
|
|
1474
|
+
get audio_tracks() {
|
|
1475
|
+
const ret = wasm.__wbg_get_soundbank_audio_tracks(this.__wbg_ptr);
|
|
1476
|
+
var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
|
|
1477
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
1478
|
+
return v1;
|
|
1479
|
+
}
|
|
1480
|
+
/**
|
|
1481
|
+
* @param {string[]} arg0
|
|
1482
|
+
*/
|
|
1483
|
+
set audio_tracks(arg0) {
|
|
1484
|
+
const ptr0 = passArrayJsValueToWasm0(arg0, wasm.__wbindgen_malloc);
|
|
1485
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1486
|
+
wasm.__wbg_set_soundbank_audio_tracks(this.__wbg_ptr, ptr0, len0);
|
|
1487
|
+
}
|
|
1488
|
+
/**
|
|
1489
|
+
* @returns {SoundEffect[]}
|
|
1490
|
+
*/
|
|
1491
|
+
get sound_effects() {
|
|
1492
|
+
const ret = wasm.__wbg_get_soundbank_sound_effects(this.__wbg_ptr);
|
|
1493
|
+
var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
|
|
1494
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
1495
|
+
return v1;
|
|
1496
|
+
}
|
|
1497
|
+
/**
|
|
1498
|
+
* @param {SoundEffect[]} arg0
|
|
1499
|
+
*/
|
|
1500
|
+
set sound_effects(arg0) {
|
|
1501
|
+
const ptr0 = passArrayJsValueToWasm0(arg0, wasm.__wbindgen_malloc);
|
|
1502
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1503
|
+
wasm.__wbg_set_soundbank_sound_effects(this.__wbg_ptr, ptr0, len0);
|
|
1504
|
+
}
|
|
1505
|
+
constructor() {
|
|
1506
|
+
const ret = wasm.soundbank_new();
|
|
1507
|
+
this.__wbg_ptr = ret >>> 0;
|
|
1508
|
+
SoundBankFinalization.register(this, this.__wbg_ptr, this);
|
|
1509
|
+
return this;
|
|
1510
|
+
}
|
|
1511
|
+
/**
|
|
1512
|
+
* @param {string} path
|
|
1513
|
+
* @returns {number}
|
|
1514
|
+
*/
|
|
1515
|
+
add_sound_sample(path) {
|
|
1516
|
+
const ptr0 = passStringToWasm0(path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1517
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1518
|
+
const ret = wasm.soundbank_add_sound_sample(this.__wbg_ptr, ptr0, len0);
|
|
1519
|
+
return ret >>> 0;
|
|
1520
|
+
}
|
|
1521
|
+
/**
|
|
1522
|
+
* @param {number} index
|
|
1523
|
+
* @param {string} path
|
|
1524
|
+
*/
|
|
1525
|
+
add_sound_sample_with_index(index, path) {
|
|
1526
|
+
const ptr0 = passStringToWasm0(path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1527
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1528
|
+
wasm.soundbank_add_sound_sample_with_index(this.__wbg_ptr, index, ptr0, len0);
|
|
1529
|
+
}
|
|
1530
|
+
/**
|
|
1531
|
+
* @param {SoundEffect} sound_effect
|
|
1532
|
+
*/
|
|
1533
|
+
add_sound_effect(sound_effect) {
|
|
1534
|
+
_assertClass(sound_effect, SoundEffect);
|
|
1535
|
+
var ptr0 = sound_effect.__destroy_into_raw();
|
|
1536
|
+
wasm.soundbank_add_sound_effect(this.__wbg_ptr, ptr0);
|
|
1537
|
+
}
|
|
1538
|
+
/**
|
|
1539
|
+
* @param {number} index
|
|
1540
|
+
* @returns {string | undefined}
|
|
1541
|
+
*/
|
|
1542
|
+
get_sound_sample(index) {
|
|
1543
|
+
const ret = wasm.soundbank_get_sound_sample(this.__wbg_ptr, index);
|
|
1544
|
+
let v1;
|
|
1545
|
+
if (ret[0] !== 0) {
|
|
1546
|
+
v1 = getStringFromWasm0(ret[0], ret[1]).slice();
|
|
1547
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
1548
|
+
}
|
|
1549
|
+
return v1;
|
|
1550
|
+
}
|
|
1551
|
+
/**
|
|
1552
|
+
* @param {string} sample_path
|
|
1553
|
+
* @returns {number | undefined}
|
|
1554
|
+
*/
|
|
1555
|
+
get_index_sample(sample_path) {
|
|
1556
|
+
const ptr0 = passStringToWasm0(sample_path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1557
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1558
|
+
const ret = wasm.soundbank_get_index_sample(this.__wbg_ptr, ptr0, len0);
|
|
1559
|
+
return ret === 0x100000001 ? undefined : ret;
|
|
1560
|
+
}
|
|
1561
|
+
/**
|
|
1562
|
+
* @returns {string[]}
|
|
1563
|
+
*/
|
|
1564
|
+
get_sample_paths() {
|
|
1565
|
+
const ret = wasm.soundbank_get_sample_paths(this.__wbg_ptr);
|
|
1566
|
+
var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
|
|
1567
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
1568
|
+
return v1;
|
|
1569
|
+
}
|
|
1570
|
+
/**
|
|
1571
|
+
* @param {string} path
|
|
1572
|
+
* @returns {boolean}
|
|
1573
|
+
*/
|
|
1574
|
+
contains_path(path) {
|
|
1575
|
+
const ptr0 = passStringToWasm0(path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1576
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1577
|
+
const ret = wasm.soundbank_contains_path(this.__wbg_ptr, ptr0, len0);
|
|
1578
|
+
return ret !== 0;
|
|
1579
|
+
}
|
|
1580
|
+
/**
|
|
1581
|
+
* @returns {number}
|
|
1582
|
+
*/
|
|
1583
|
+
sample_count() {
|
|
1584
|
+
const ret = wasm.soundbank_sample_count(this.__wbg_ptr);
|
|
1585
|
+
return ret >>> 0;
|
|
1586
|
+
}
|
|
1587
|
+
/**
|
|
1588
|
+
* @returns {boolean}
|
|
1589
|
+
*/
|
|
1590
|
+
is_empty() {
|
|
1591
|
+
const ret = wasm.soundbank_is_empty(this.__wbg_ptr);
|
|
1592
|
+
return ret !== 0;
|
|
1593
|
+
}
|
|
1594
|
+
}
|
|
1595
|
+
module.exports.SoundBank = SoundBank;
|
|
1596
|
+
|
|
1597
|
+
const SoundEffectFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1598
|
+
? { register: () => {}, unregister: () => {} }
|
|
1599
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_soundeffect_free(ptr >>> 0, 1));
|
|
1600
|
+
|
|
1601
|
+
class SoundEffect {
|
|
1602
|
+
|
|
1603
|
+
static __wrap(ptr) {
|
|
1604
|
+
ptr = ptr >>> 0;
|
|
1605
|
+
const obj = Object.create(SoundEffect.prototype);
|
|
1606
|
+
obj.__wbg_ptr = ptr;
|
|
1607
|
+
SoundEffectFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
1608
|
+
return obj;
|
|
1609
|
+
}
|
|
1610
|
+
|
|
1611
|
+
static __unwrap(jsValue) {
|
|
1612
|
+
if (!(jsValue instanceof SoundEffect)) {
|
|
1613
|
+
return 0;
|
|
1614
|
+
}
|
|
1615
|
+
return jsValue.__destroy_into_raw();
|
|
1616
|
+
}
|
|
1617
|
+
|
|
1618
|
+
__destroy_into_raw() {
|
|
1619
|
+
const ptr = this.__wbg_ptr;
|
|
1620
|
+
this.__wbg_ptr = 0;
|
|
1621
|
+
SoundEffectFinalization.unregister(this);
|
|
1622
|
+
return ptr;
|
|
1623
|
+
}
|
|
1624
|
+
|
|
1625
|
+
free() {
|
|
1626
|
+
const ptr = this.__destroy_into_raw();
|
|
1627
|
+
wasm.__wbg_soundeffect_free(ptr, 0);
|
|
1628
|
+
}
|
|
1629
|
+
/**
|
|
1630
|
+
* @returns {number}
|
|
1631
|
+
*/
|
|
1632
|
+
get time() {
|
|
1633
|
+
const ret = wasm.__wbg_get_soundeffect_time(this.__wbg_ptr);
|
|
1634
|
+
return ret;
|
|
1635
|
+
}
|
|
1636
|
+
/**
|
|
1637
|
+
* @param {number} arg0
|
|
1638
|
+
*/
|
|
1639
|
+
set time(arg0) {
|
|
1640
|
+
wasm.__wbg_set_soundeffect_time(this.__wbg_ptr, arg0);
|
|
1641
|
+
}
|
|
1642
|
+
/**
|
|
1643
|
+
* @returns {number}
|
|
1644
|
+
*/
|
|
1645
|
+
get volume() {
|
|
1646
|
+
const ret = wasm.__wbg_get_soundeffect_volume(this.__wbg_ptr);
|
|
1647
|
+
return ret;
|
|
1648
|
+
}
|
|
1649
|
+
/**
|
|
1650
|
+
* @param {number} arg0
|
|
1651
|
+
*/
|
|
1652
|
+
set volume(arg0) {
|
|
1653
|
+
wasm.__wbg_set_soundeffect_volume(this.__wbg_ptr, arg0);
|
|
1654
|
+
}
|
|
1655
|
+
/**
|
|
1656
|
+
* @returns {number}
|
|
1657
|
+
*/
|
|
1658
|
+
get sample() {
|
|
1659
|
+
const ret = wasm.__wbg_get_soundeffect_sample(this.__wbg_ptr);
|
|
1660
|
+
return ret >>> 0;
|
|
1661
|
+
}
|
|
1662
|
+
/**
|
|
1663
|
+
* @param {number} arg0
|
|
1664
|
+
*/
|
|
1665
|
+
set sample(arg0) {
|
|
1666
|
+
wasm.__wbg_set_soundeffect_sample(this.__wbg_ptr, arg0);
|
|
1667
|
+
}
|
|
1668
|
+
/**
|
|
1669
|
+
* @param {number} time
|
|
1670
|
+
* @param {number} volume
|
|
1671
|
+
* @param {number} sample
|
|
1672
|
+
*/
|
|
1673
|
+
constructor(time, volume, sample) {
|
|
1674
|
+
const ret = wasm.soundeffect_new(time, volume, sample);
|
|
1675
|
+
this.__wbg_ptr = ret >>> 0;
|
|
1676
|
+
SoundEffectFinalization.register(this, this.__wbg_ptr, this);
|
|
1677
|
+
return this;
|
|
1678
|
+
}
|
|
1679
|
+
}
|
|
1680
|
+
module.exports.SoundEffect = SoundEffect;
|
|
1681
|
+
|
|
1682
|
+
const TaikoHitobjectFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1683
|
+
? { register: () => {}, unregister: () => {} }
|
|
1684
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_taikohitobject_free(ptr >>> 0, 1));
|
|
1685
|
+
|
|
1686
|
+
class TaikoHitobject {
|
|
1687
|
+
|
|
1688
|
+
static __wrap(ptr) {
|
|
1689
|
+
ptr = ptr >>> 0;
|
|
1690
|
+
const obj = Object.create(TaikoHitobject.prototype);
|
|
1691
|
+
obj.__wbg_ptr = ptr;
|
|
1692
|
+
TaikoHitobjectFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
1693
|
+
return obj;
|
|
1694
|
+
}
|
|
1695
|
+
|
|
1696
|
+
__destroy_into_raw() {
|
|
1697
|
+
const ptr = this.__wbg_ptr;
|
|
1698
|
+
this.__wbg_ptr = 0;
|
|
1699
|
+
TaikoHitobjectFinalization.unregister(this);
|
|
1700
|
+
return ptr;
|
|
1701
|
+
}
|
|
1702
|
+
|
|
1703
|
+
free() {
|
|
1704
|
+
const ptr = this.__destroy_into_raw();
|
|
1705
|
+
wasm.__wbg_taikohitobject_free(ptr, 0);
|
|
1706
|
+
}
|
|
1707
|
+
/**
|
|
1708
|
+
* @returns {TaikoHitobjectType}
|
|
1709
|
+
*/
|
|
1710
|
+
get note_type() {
|
|
1711
|
+
const ret = wasm.__wbg_get_taikohitobject_note_type(this.__wbg_ptr);
|
|
1712
|
+
return ret;
|
|
1713
|
+
}
|
|
1714
|
+
/**
|
|
1715
|
+
* @param {TaikoHitobjectType} arg0
|
|
1716
|
+
*/
|
|
1717
|
+
set note_type(arg0) {
|
|
1718
|
+
wasm.__wbg_set_taikohitobject_note_type(this.__wbg_ptr, arg0);
|
|
1719
|
+
}
|
|
1720
|
+
/**
|
|
1721
|
+
* @returns {number | undefined}
|
|
1722
|
+
*/
|
|
1723
|
+
get end_time() {
|
|
1724
|
+
const ret = wasm.__wbg_get_catchhitobject_end_time(this.__wbg_ptr);
|
|
1725
|
+
return ret === 0x100000001 ? undefined : ret;
|
|
1726
|
+
}
|
|
1727
|
+
/**
|
|
1728
|
+
* @param {number | null} [arg0]
|
|
1729
|
+
*/
|
|
1730
|
+
set end_time(arg0) {
|
|
1731
|
+
wasm.__wbg_set_catchhitobject_end_time(this.__wbg_ptr, isLikeNone(arg0) ? 0x100000001 : (arg0) >> 0);
|
|
1732
|
+
}
|
|
1733
|
+
/**
|
|
1734
|
+
* @returns {TaikoHitobject}
|
|
1735
|
+
*/
|
|
1736
|
+
static empty() {
|
|
1737
|
+
const ret = wasm.key_empty();
|
|
1738
|
+
return TaikoHitobject.__wrap(ret);
|
|
1739
|
+
}
|
|
1740
|
+
/**
|
|
1741
|
+
* @returns {TaikoHitobject}
|
|
1742
|
+
*/
|
|
1743
|
+
static don() {
|
|
1744
|
+
const ret = wasm.key_normal();
|
|
1745
|
+
return TaikoHitobject.__wrap(ret);
|
|
1746
|
+
}
|
|
1747
|
+
/**
|
|
1748
|
+
* @returns {TaikoHitobject}
|
|
1749
|
+
*/
|
|
1750
|
+
static kat() {
|
|
1751
|
+
const ret = wasm.taikohitobject_kat();
|
|
1752
|
+
return TaikoHitobject.__wrap(ret);
|
|
1753
|
+
}
|
|
1754
|
+
/**
|
|
1755
|
+
* @returns {TaikoHitobject}
|
|
1756
|
+
*/
|
|
1757
|
+
static bonus_don() {
|
|
1758
|
+
const ret = wasm.key_slider_end();
|
|
1759
|
+
return TaikoHitobject.__wrap(ret);
|
|
1760
|
+
}
|
|
1761
|
+
/**
|
|
1762
|
+
* @returns {TaikoHitobject}
|
|
1763
|
+
*/
|
|
1764
|
+
static bonus_kat() {
|
|
1765
|
+
const ret = wasm.key_mine();
|
|
1766
|
+
return TaikoHitobject.__wrap(ret);
|
|
1767
|
+
}
|
|
1768
|
+
/**
|
|
1769
|
+
* @param {number} end_time
|
|
1770
|
+
* @returns {TaikoHitobject}
|
|
1771
|
+
*/
|
|
1772
|
+
static drum_roll(end_time) {
|
|
1773
|
+
const ret = wasm.taikohitobject_drum_roll(end_time);
|
|
1774
|
+
return TaikoHitobject.__wrap(ret);
|
|
1775
|
+
}
|
|
1776
|
+
/**
|
|
1777
|
+
* @param {number} end_time
|
|
1778
|
+
* @returns {TaikoHitobject}
|
|
1779
|
+
*/
|
|
1780
|
+
static bonus_drum_roll(end_time) {
|
|
1781
|
+
const ret = wasm.taikohitobject_bonus_drum_roll(end_time);
|
|
1782
|
+
return TaikoHitobject.__wrap(ret);
|
|
1783
|
+
}
|
|
1784
|
+
/**
|
|
1785
|
+
* @param {number} end_time
|
|
1786
|
+
* @returns {TaikoHitobject}
|
|
1787
|
+
*/
|
|
1788
|
+
static balloon(end_time) {
|
|
1789
|
+
const ret = wasm.taikohitobject_balloon(end_time);
|
|
1790
|
+
return TaikoHitobject.__wrap(ret);
|
|
1791
|
+
}
|
|
1792
|
+
/**
|
|
1793
|
+
* @returns {TaikoHitobject}
|
|
1794
|
+
*/
|
|
1795
|
+
static unknown() {
|
|
1796
|
+
const ret = wasm.taikohitobject_unknown();
|
|
1797
|
+
return TaikoHitobject.__wrap(ret);
|
|
1798
|
+
}
|
|
1799
|
+
/**
|
|
1800
|
+
* @returns {number | undefined}
|
|
1801
|
+
*/
|
|
1802
|
+
end_time() {
|
|
1803
|
+
const ret = wasm.catchhitobject_end_time(this.__wbg_ptr);
|
|
1804
|
+
return ret === 0x100000001 ? undefined : ret;
|
|
1805
|
+
}
|
|
1806
|
+
}
|
|
1807
|
+
module.exports.TaikoHitobject = TaikoHitobject;
|
|
1808
|
+
|
|
1809
|
+
const TimingPointsFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1810
|
+
? { register: () => {}, unregister: () => {} }
|
|
1811
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_timingpoints_free(ptr >>> 0, 1));
|
|
1812
|
+
|
|
1813
|
+
class TimingPoints {
|
|
1814
|
+
|
|
1815
|
+
static __wrap(ptr) {
|
|
1816
|
+
ptr = ptr >>> 0;
|
|
1817
|
+
const obj = Object.create(TimingPoints.prototype);
|
|
1818
|
+
obj.__wbg_ptr = ptr;
|
|
1819
|
+
TimingPointsFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
1820
|
+
return obj;
|
|
1821
|
+
}
|
|
1822
|
+
|
|
1823
|
+
__destroy_into_raw() {
|
|
1824
|
+
const ptr = this.__wbg_ptr;
|
|
1825
|
+
this.__wbg_ptr = 0;
|
|
1826
|
+
TimingPointsFinalization.unregister(this);
|
|
1827
|
+
return ptr;
|
|
1828
|
+
}
|
|
1829
|
+
|
|
1830
|
+
free() {
|
|
1831
|
+
const ptr = this.__destroy_into_raw();
|
|
1832
|
+
wasm.__wbg_timingpoints_free(ptr, 0);
|
|
1833
|
+
}
|
|
1834
|
+
}
|
|
1835
|
+
module.exports.TimingPoints = TimingPoints;
|
|
1836
|
+
|
|
1837
|
+
module.exports.__wbg_soundeffect_new = function(arg0) {
|
|
1838
|
+
const ret = SoundEffect.__wrap(arg0);
|
|
1839
|
+
return ret;
|
|
1840
|
+
};
|
|
1841
|
+
|
|
1842
|
+
module.exports.__wbg_soundeffect_unwrap = function(arg0) {
|
|
1843
|
+
const ret = SoundEffect.__unwrap(arg0);
|
|
1844
|
+
return ret;
|
|
1845
|
+
};
|
|
1846
|
+
|
|
1847
|
+
module.exports.__wbindgen_error_new = function(arg0, arg1) {
|
|
1848
|
+
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
1849
|
+
return ret;
|
|
1850
|
+
};
|
|
1851
|
+
|
|
1852
|
+
module.exports.__wbindgen_init_externref_table = function() {
|
|
1853
|
+
const table = wasm.__wbindgen_export_0;
|
|
1854
|
+
const offset = table.grow(4);
|
|
1855
|
+
table.set(0, undefined);
|
|
1856
|
+
table.set(offset + 0, undefined);
|
|
1857
|
+
table.set(offset + 1, null);
|
|
1858
|
+
table.set(offset + 2, true);
|
|
1859
|
+
table.set(offset + 3, false);
|
|
1860
|
+
;
|
|
1861
|
+
};
|
|
1862
|
+
|
|
1863
|
+
module.exports.__wbindgen_string_get = function(arg0, arg1) {
|
|
1864
|
+
const obj = arg1;
|
|
1865
|
+
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
1866
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1867
|
+
var len1 = WASM_VECTOR_LEN;
|
|
1868
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1869
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1870
|
+
};
|
|
1871
|
+
|
|
1872
|
+
module.exports.__wbindgen_string_new = function(arg0, arg1) {
|
|
1873
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
1874
|
+
return ret;
|
|
1875
|
+
};
|
|
1876
|
+
|
|
1877
|
+
module.exports.__wbindgen_throw = function(arg0, arg1) {
|
|
1878
|
+
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
1879
|
+
};
|
|
1880
|
+
|
|
1881
|
+
const path = require('path').join(__dirname, 'rgchart_bg.wasm');
|
|
1882
|
+
const bytes = require('fs').readFileSync(path);
|
|
1883
|
+
|
|
1884
|
+
const wasmModule = new WebAssembly.Module(bytes);
|
|
1885
|
+
const wasmInstance = new WebAssembly.Instance(wasmModule, imports);
|
|
1886
|
+
wasm = wasmInstance.exports;
|
|
1887
|
+
module.exports.__wasm = wasm;
|
|
1888
|
+
|
|
1889
|
+
wasm.__wbindgen_start();
|
|
1890
|
+
|