brs-js 2.0.1 → 2.0.2
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/debug/Conf Spacestation.brs +0 -0
- package/debug/Electrks_Feminine_Challenge.brs +0 -0
- package/debug/a5bricks.brs +0 -0
- package/debug/a5p2.2.brs +0 -0
- package/debug/a5p2.brs +0 -0
- package/debug/audio.brs +0 -0
- package/debug/brick a5.brs +0 -0
- package/debug/brick qa.brs +0 -0
- package/debug/brsv10.brs +0 -0
- package/debug/brsv10brick.brs +0 -0
- package/debug/bruteforce.js +254 -0
- package/debug/clone.html +36 -0
- package/debug/ctf_tileset.brs +0 -0
- package/debug/ctf_tileset_5.brs +0 -0
- package/debug/evil.brs +0 -0
- package/debug/evilwrite.js +390 -0
- package/debug/foo.txt +3080 -0
- package/debug/kenko_big.brs +0 -0
- package/debug/light.brs +0 -0
- package/debug/out.json +105 -0
- package/debug/read.js +30 -0
- package/debug/readSpeed.js +32 -0
- package/debug/readTest.js +45 -0
- package/debug/temp.brs +0 -0
- package/debug/western.brs +0 -0
- package/dist/src/constants.d.ts +6 -0
- package/dist/src/constants.d.ts.map +1 -0
- package/dist/src/index.d.ts +23 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/read.d.ts +3 -0
- package/dist/src/read.d.ts.map +1 -0
- package/dist/src/read.v1.d.ts +3 -0
- package/dist/src/read.v1.d.ts.map +1 -0
- package/dist/src/read.v10.d.ts +3 -0
- package/dist/src/read.v10.d.ts.map +1 -0
- package/dist/src/read.v2.d.ts +3 -0
- package/dist/src/read.v2.d.ts.map +1 -0
- package/dist/src/read.v3.d.ts +3 -0
- package/dist/src/read.v3.d.ts.map +1 -0
- package/dist/src/read.v4.d.ts +3 -0
- package/dist/src/read.v4.d.ts.map +1 -0
- package/dist/src/read.v8.d.ts +3 -0
- package/dist/src/read.v8.d.ts.map +1 -0
- package/dist/src/read.v9.d.ts +3 -0
- package/dist/src/read.v9.d.ts.map +1 -0
- package/dist/src/types.d.ts +170 -0
- package/dist/src/types.d.ts.map +1 -0
- package/dist/src/utils.d.ts +87 -0
- package/dist/src/utils.d.ts.map +1 -0
- package/dist/src/uuid.d.ts +4 -0
- package/dist/src/uuid.d.ts.map +1 -0
- package/dist/src/write.d.ts +3 -0
- package/dist/src/write.d.ts.map +1 -0
- package/examples/ATCFort.brs +0 -0
- package/examples/read_example.html +34 -0
- package/examples/read_example.js +21 -0
- package/examples/write_example.js +25 -0
- package/examples/write_planet.html +144 -0
- package/examples/write_simplex.html +82 -0
- package/examples/write_wedge_sphere.html +173 -0
- package/package.json +1 -1
- package/src/constants.ts +6 -0
- package/src/index.ts +24 -0
- package/src/read.ts +57 -0
- package/src/read.v1.ts +99 -0
- package/src/read.v10.ts +185 -0
- package/src/read.v2.ts +102 -0
- package/src/read.v3.ts +111 -0
- package/src/read.v4.ts +112 -0
- package/src/read.v8.ts +172 -0
- package/src/read.v9.ts +181 -0
- package/src/types.ts +240 -0
- package/src/utils.ts +640 -0
- package/src/uuid.ts +78 -0
- package/src/write.ts +209 -0
- package/test/lib.test.js +51 -0
- package/test/utils.test.js +209 -0
|
Binary file
|
package/debug/light.brs
ADDED
|
Binary file
|
package/debug/out.json
ADDED
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 8,
|
|
3
|
+
"map": "Plate",
|
|
4
|
+
"author": {
|
|
5
|
+
"id": "60eab7e7-9aa9-4647-83e4-6ce4ec66ae7d",
|
|
6
|
+
"name": "cake"
|
|
7
|
+
},
|
|
8
|
+
"description": "",
|
|
9
|
+
"host": {
|
|
10
|
+
"name": "cake",
|
|
11
|
+
"id": "60eab7e7-9aa9-4647-83e4-6ce4ec66ae7d"
|
|
12
|
+
},
|
|
13
|
+
"save_time": [16,151,87,60,218,49,216,8],
|
|
14
|
+
"brick_count": 8,
|
|
15
|
+
"mods": [],
|
|
16
|
+
"brick_assets": [
|
|
17
|
+
"PB_DefaultBrick"
|
|
18
|
+
],
|
|
19
|
+
"colors": [],
|
|
20
|
+
"materials": [
|
|
21
|
+
"BMC_Ghost",
|
|
22
|
+
"BMC_Ghost_Fail",
|
|
23
|
+
"BMC_Plastic",
|
|
24
|
+
"BMC_Glow",
|
|
25
|
+
"BMC_Metallic",
|
|
26
|
+
"BMC_Hologram"
|
|
27
|
+
],
|
|
28
|
+
"brick_owners": [
|
|
29
|
+
{
|
|
30
|
+
"id": "60eab7e7-9aa9-4647-83e4-6ce4ec66ae7d",
|
|
31
|
+
"name": "cake",
|
|
32
|
+
"bricks": 8
|
|
33
|
+
}
|
|
34
|
+
],
|
|
35
|
+
"bricks": [
|
|
36
|
+
{
|
|
37
|
+
"asset_name_index": 0,
|
|
38
|
+
"size": [5, 5, 6],
|
|
39
|
+
"position": [-145, 315, 6],
|
|
40
|
+
"direction": 4,
|
|
41
|
+
"rotation": 0,
|
|
42
|
+
"collision": true,
|
|
43
|
+
"visibility": true,
|
|
44
|
+
"material_index": 2,
|
|
45
|
+
"color": 0,
|
|
46
|
+
"owner_index": 1,
|
|
47
|
+
"components": {
|
|
48
|
+
"BCD_PointLight": {
|
|
49
|
+
"bMatchBrickShape": true,
|
|
50
|
+
"Brightness": 20,
|
|
51
|
+
"Radius": 150,
|
|
52
|
+
"Color": [255, 255, 255, 255],
|
|
53
|
+
"bUseBrickColor": true,
|
|
54
|
+
"bCastShadows": false
|
|
55
|
+
},
|
|
56
|
+
"BCD_SpotLight": {
|
|
57
|
+
"Rotation": [
|
|
58
|
+
270,
|
|
59
|
+
0,
|
|
60
|
+
0
|
|
61
|
+
],
|
|
62
|
+
"InnerConeAngle": 30,
|
|
63
|
+
"OuterConeAngle": 60,
|
|
64
|
+
"Brightness": 20,
|
|
65
|
+
"Radius": 150,
|
|
66
|
+
"Color": [255, 255, 255, 255],
|
|
67
|
+
"bUseBrickColor": true,
|
|
68
|
+
"bCastShadows": false
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
],
|
|
73
|
+
"components": {
|
|
74
|
+
"BCD_PointLight": {
|
|
75
|
+
"version": 1,
|
|
76
|
+
"brick_indices": [
|
|
77
|
+
0,
|
|
78
|
+
],
|
|
79
|
+
"properties": {
|
|
80
|
+
"bMatchBrickShape": "Boolean",
|
|
81
|
+
"Brightness": "Float",
|
|
82
|
+
"Radius": "Float",
|
|
83
|
+
"Color": "Color",
|
|
84
|
+
"bUseBrickColor": "Boolean",
|
|
85
|
+
"bCastShadows": "Boolean"
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
"BCD_SpotLight": {
|
|
89
|
+
"version": 1,
|
|
90
|
+
"brick_indices": [
|
|
91
|
+
0,
|
|
92
|
+
],
|
|
93
|
+
"properties": {
|
|
94
|
+
"Rotation": "Rotator",
|
|
95
|
+
"InnerConeAngle": "Float",
|
|
96
|
+
"OuterConeAngle": "Float",
|
|
97
|
+
"Brightness": "Float",
|
|
98
|
+
"Radius": "Float",
|
|
99
|
+
"Color": "Color",
|
|
100
|
+
"bUseBrickColor": "Boolean",
|
|
101
|
+
"bCastShadows": "Boolean"
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
}
|
package/debug/read.js
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
const fs = require('fs');
|
|
2
|
+
|
|
3
|
+
const { read } = require('../dist/dist.node.js');
|
|
4
|
+
|
|
5
|
+
// arg parsing
|
|
6
|
+
const file = process.argv.find(f => f.endsWith('brs'));
|
|
7
|
+
if (!file) {
|
|
8
|
+
console.error('missing save argument');
|
|
9
|
+
process.exit(1);
|
|
10
|
+
}
|
|
11
|
+
if (!fs.existsSync(file)) {
|
|
12
|
+
console.error('file does not exist');
|
|
13
|
+
process.exit(1);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
// run fn x times
|
|
17
|
+
function bench(fn, times) {
|
|
18
|
+
const start = Date.now();
|
|
19
|
+
for (let i = 0; i < times; i++) {
|
|
20
|
+
fn();
|
|
21
|
+
}
|
|
22
|
+
return Date.now() - start;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
const data = fs.readFileSync(file);
|
|
26
|
+
console.time('read');
|
|
27
|
+
const og = read(data.slice());
|
|
28
|
+
console.timeEnd('read');
|
|
29
|
+
|
|
30
|
+
process.exit();
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
const fs = require('fs');
|
|
2
|
+
|
|
3
|
+
const { read } = require('../dist/dist.node.js');
|
|
4
|
+
|
|
5
|
+
// arg parsing
|
|
6
|
+
const file = process.argv.find(f => f.endsWith('brs'));
|
|
7
|
+
if (!file) {
|
|
8
|
+
console.error('missing save argument');
|
|
9
|
+
process.exit(1);
|
|
10
|
+
}
|
|
11
|
+
if (!fs.existsSync(file)) {
|
|
12
|
+
console.error('file does not exist');
|
|
13
|
+
process.exit(1);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
// run fn x times
|
|
17
|
+
function bench(fn, times) {
|
|
18
|
+
const start = Date.now();
|
|
19
|
+
for (let i = 0; i < times; i++) {
|
|
20
|
+
fn();
|
|
21
|
+
}
|
|
22
|
+
return Date.now() - start;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
const data = fs.readFileSync(file);
|
|
26
|
+
console.time('read');
|
|
27
|
+
const og = read(data.slice());
|
|
28
|
+
console.timeEnd('read');
|
|
29
|
+
|
|
30
|
+
process.exit();
|
|
31
|
+
const TIMES = 10;
|
|
32
|
+
console.log(bench(() => read(data.slice()), TIMES));
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
const fs = require('fs');
|
|
2
|
+
|
|
3
|
+
const { read, write } = require('../dist/dist.node.js');
|
|
4
|
+
|
|
5
|
+
// arg parsing
|
|
6
|
+
const file = process.argv.find(f => f.endsWith('brs'));
|
|
7
|
+
if (!file) {
|
|
8
|
+
console.error('missing save argument');
|
|
9
|
+
process.exit(1);
|
|
10
|
+
}
|
|
11
|
+
if (!fs.existsSync(file)) {
|
|
12
|
+
console.error('file does not exist');
|
|
13
|
+
process.exit(1);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
// run fn x times
|
|
17
|
+
function bench(fn, times) {
|
|
18
|
+
const start = Date.now();
|
|
19
|
+
for (let i = 0; i < times; i++) {
|
|
20
|
+
fn();
|
|
21
|
+
}
|
|
22
|
+
return Date.now() - start;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
const data = fs.readFileSync(file);
|
|
26
|
+
const json = true;
|
|
27
|
+
if (!json) console.log('Original len:', data.length);
|
|
28
|
+
if (!json) console.time('read');
|
|
29
|
+
const og = read(data.slice());
|
|
30
|
+
if (json) console.log('first', JSON.stringify(og, 0, 2));
|
|
31
|
+
if (!json) console.timeEnd('read');
|
|
32
|
+
console.time('write');
|
|
33
|
+
const newBinary = write(og);
|
|
34
|
+
console.timeEnd('write');
|
|
35
|
+
// process.exit();
|
|
36
|
+
console.log('Write len:', newBinary.length);
|
|
37
|
+
// console.log(og.map, og.host, og.brick_count, og.author);
|
|
38
|
+
console.time('re-read');
|
|
39
|
+
const repeated = read(newBinary.slice());
|
|
40
|
+
if (json) console.log('new', JSON.stringify(repeated, 0, 2));
|
|
41
|
+
console.timeEnd('re-read');
|
|
42
|
+
if (json) process.exit();
|
|
43
|
+
|
|
44
|
+
const TIMES = 1000;
|
|
45
|
+
console.log(bench(() => read(data.slice()), TIMES), bench(() => write(og), TIMES), + TIMES);
|
package/debug/temp.brs
ADDED
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAE/B,eAAO,MAAM,KAAK,YAA+B,CAAC;AAClD,eAAO,MAAM,cAAc,KAAK,CAAC;AACjC,eAAO,MAAM,OAAO,QAAa,CAAC;AAClC,eAAO,MAAM,YAAY,EAAE,IAA6C,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import read from './read';
|
|
2
|
+
import write from './write';
|
|
3
|
+
import * as utils from './utils';
|
|
4
|
+
import * as constants from './constants';
|
|
5
|
+
declare const brs: {
|
|
6
|
+
read: typeof read;
|
|
7
|
+
write: typeof write;
|
|
8
|
+
utils: typeof utils;
|
|
9
|
+
constants: typeof constants;
|
|
10
|
+
};
|
|
11
|
+
export { read, write, utils, constants };
|
|
12
|
+
export default brs;
|
|
13
|
+
declare global {
|
|
14
|
+
interface Window {
|
|
15
|
+
BRS: {
|
|
16
|
+
read: typeof read;
|
|
17
|
+
write: typeof write;
|
|
18
|
+
utils: typeof utils;
|
|
19
|
+
constants: typeof constants;
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,QAAQ,CAAC;AAC1B,OAAO,KAAK,MAAM,SAAS,CAAC;AAC5B,OAAO,KAAK,KAAK,MAAM,SAAS,CAAC;AACjC,OAAO,KAAK,SAAS,MAAM,aAAa,CAAC;AAGzC,QAAA,MAAM,GAAG;;;;;CAAoC,CAAC;AAC9C,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC;AACzC,eAAe,GAAG,CAAC;AAEnB,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,GAAG,EAAE;YACH,IAAI,EAAE,OAAO,IAAI,CAAC;YAClB,KAAK,EAAE,OAAO,KAAK,CAAC;YACpB,KAAK,EAAE,OAAO,KAAK,CAAC;YACpB,SAAS,EAAE,OAAO,SAAS,CAAC;SAC7B,CAAC;KACH;CACF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"read.d.ts","sourceRoot":"","sources":["../../src/read.ts"],"names":[],"mappings":"AAQA,OAAO,EAAY,WAAW,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAIhE,MAAM,CAAC,OAAO,UAAU,OAAO,CAC7B,QAAQ,EAAE,UAAU,EACpB,OAAO,GAAE,WAAgB,GACxB,cAAc,CAyChB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"read.v1.d.ts","sourceRoot":"","sources":["../../src/read.v1.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EACR,WAAW,EACX,KAAK,EAIN,MAAM,SAAS,CAAC;AAIjB,MAAM,CAAC,OAAO,UAAU,SAAS,CAC/B,OAAO,EAAE,QAAQ,EACjB,OAAO,GAAE,WAAgB,GACxB,KAAK,CAoFP"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"read.v10.d.ts","sourceRoot":"","sources":["../../src/read.v10.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,QAAQ,EACR,MAAM,EAEN,WAAW,EAIZ,MAAM,SAAS,CAAC;AAIjB,MAAM,CAAC,OAAO,UAAU,UAAU,CAChC,OAAO,EAAE,QAAQ,EACjB,OAAO,GAAE,WAAgB,GACxB,MAAM,CAuKR"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"read.v2.d.ts","sourceRoot":"","sources":["../../src/read.v2.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EACR,WAAW,EACX,KAAK,EAIN,MAAM,SAAS,CAAC;AAIjB,MAAM,CAAC,OAAO,UAAU,SAAS,CAC/B,OAAO,EAAE,QAAQ,EACjB,OAAO,GAAE,WAAgB,GACxB,KAAK,CAuFP"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"read.v3.d.ts","sourceRoot":"","sources":["../../src/read.v3.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EACR,WAAW,EACX,KAAK,EAKN,MAAM,SAAS,CAAC;AAIjB,MAAM,CAAC,OAAO,UAAU,SAAS,CAC/B,OAAO,EAAE,QAAQ,EACjB,OAAO,GAAE,WAAgB,GACxB,KAAK,CA+FP"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"read.v4.d.ts","sourceRoot":"","sources":["../../src/read.v4.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EACR,WAAW,EACX,KAAK,EAIN,MAAM,SAAS,CAAC;AAIjB,MAAM,CAAC,OAAO,UAAU,SAAS,CAC/B,OAAO,EAAE,QAAQ,EACjB,OAAO,GAAE,WAAgB,GACxB,KAAK,CAiGP"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"read.v8.d.ts","sourceRoot":"","sources":["../../src/read.v8.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EACR,WAAW,EACX,KAAK,EAMN,MAAM,SAAS,CAAC;AAIjB,MAAM,CAAC,OAAO,UAAU,SAAS,CAC/B,OAAO,EAAE,QAAQ,EACjB,OAAO,GAAE,WAAgB,GACxB,KAAK,CA2JP"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"read.v9.d.ts","sourceRoot":"","sources":["../../src/read.v9.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EACR,WAAW,EACX,KAAK,EAON,MAAM,SAAS,CAAC;AAIjB,MAAM,CAAC,OAAO,UAAU,SAAS,CAC/B,OAAO,EAAE,QAAQ,EACjB,OAAO,GAAE,WAAgB,GACxB,KAAK,CAmKP"}
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
export interface BRSBytes extends Uint8Array {
|
|
2
|
+
brsOffset: number;
|
|
3
|
+
}
|
|
4
|
+
declare type Modify<T, R> = Omit<T, keyof R> & R;
|
|
5
|
+
export declare type Bytes = Uint8Array | BRSBytes;
|
|
6
|
+
export declare type Uuid = string;
|
|
7
|
+
export declare type UnrealClass = string;
|
|
8
|
+
export declare type UnrealObject = string;
|
|
9
|
+
export declare type UnrealBoolean = boolean;
|
|
10
|
+
export declare type UnrealFloat = number;
|
|
11
|
+
export declare type UnrealColor = [number, number, number, number];
|
|
12
|
+
export declare type UnrealByte = number;
|
|
13
|
+
export declare type UnrealRotator = [number, number, number];
|
|
14
|
+
export declare type UnrealType = UnrealClass | UnrealObject | UnrealBoolean | UnrealFloat | UnrealColor | UnrealByte | UnrealRotator;
|
|
15
|
+
export interface User {
|
|
16
|
+
id: Uuid;
|
|
17
|
+
name: string;
|
|
18
|
+
}
|
|
19
|
+
export interface Owner extends User {
|
|
20
|
+
bricks: number;
|
|
21
|
+
}
|
|
22
|
+
export declare enum Direction {
|
|
23
|
+
XPositive = 0,
|
|
24
|
+
XNegative = 1,
|
|
25
|
+
YPositive = 2,
|
|
26
|
+
YNegative = 3,
|
|
27
|
+
ZPositive = 4,
|
|
28
|
+
ZNegative = 5
|
|
29
|
+
}
|
|
30
|
+
export declare enum Rotation {
|
|
31
|
+
Deg0 = 0,
|
|
32
|
+
Deg90 = 1,
|
|
33
|
+
Deg180 = 2,
|
|
34
|
+
Deg270 = 3
|
|
35
|
+
}
|
|
36
|
+
export declare type ColorRgb = [number, number, number];
|
|
37
|
+
export interface Collision {
|
|
38
|
+
player: boolean;
|
|
39
|
+
weapon: boolean;
|
|
40
|
+
interaction: boolean;
|
|
41
|
+
tool: boolean;
|
|
42
|
+
}
|
|
43
|
+
export interface AppliedComponent {
|
|
44
|
+
[property: string]: UnrealType;
|
|
45
|
+
}
|
|
46
|
+
export interface DefinedComponents {
|
|
47
|
+
[component_name: string]: {
|
|
48
|
+
version: number;
|
|
49
|
+
brick_indices: number[];
|
|
50
|
+
properties: {
|
|
51
|
+
[property: string]: string;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
export interface Components {
|
|
56
|
+
[component_name: string]: AppliedComponent;
|
|
57
|
+
}
|
|
58
|
+
export declare type Vector = [number, number, number];
|
|
59
|
+
export interface BrickV1 {
|
|
60
|
+
asset_name_index: number;
|
|
61
|
+
size: Vector;
|
|
62
|
+
position: Vector;
|
|
63
|
+
direction: Direction;
|
|
64
|
+
rotation: Rotation;
|
|
65
|
+
collision: boolean;
|
|
66
|
+
visibility: boolean;
|
|
67
|
+
color: UnrealColor | number;
|
|
68
|
+
}
|
|
69
|
+
export interface BrickV2 extends BrickV1 {
|
|
70
|
+
material_index: number;
|
|
71
|
+
}
|
|
72
|
+
export interface BrickV3 extends BrickV2 {
|
|
73
|
+
owner_index: number;
|
|
74
|
+
}
|
|
75
|
+
export interface BrickV8 extends BrickV3 {
|
|
76
|
+
components: Components;
|
|
77
|
+
}
|
|
78
|
+
export declare type BrickV9 = Modify<BrickV8, {
|
|
79
|
+
physical_index: number;
|
|
80
|
+
material_intensity: number;
|
|
81
|
+
color: ColorRgb | number;
|
|
82
|
+
}>;
|
|
83
|
+
export declare type BrickV10 = Modify<BrickV9, {
|
|
84
|
+
collision: Collision;
|
|
85
|
+
}>;
|
|
86
|
+
export interface BrsV1 {
|
|
87
|
+
version: 1;
|
|
88
|
+
map: string;
|
|
89
|
+
author: User;
|
|
90
|
+
description: string;
|
|
91
|
+
brick_count: number;
|
|
92
|
+
mods: string[];
|
|
93
|
+
brick_assets: string[];
|
|
94
|
+
colors: UnrealColor[];
|
|
95
|
+
bricks: BrickV1[];
|
|
96
|
+
}
|
|
97
|
+
export declare type BrsV2 = Modify<BrsV1, {
|
|
98
|
+
version: 2;
|
|
99
|
+
materials: string[];
|
|
100
|
+
bricks: BrickV2[];
|
|
101
|
+
}>;
|
|
102
|
+
export declare type BrsV3 = Modify<BrsV2, {
|
|
103
|
+
version: 3;
|
|
104
|
+
brick_owners: User[];
|
|
105
|
+
bricks: BrickV3[];
|
|
106
|
+
}>;
|
|
107
|
+
export declare type BrsV4 = Modify<BrsV3, {
|
|
108
|
+
version: 4;
|
|
109
|
+
save_time: Uint8Array;
|
|
110
|
+
}>;
|
|
111
|
+
export declare type BrsV8 = Modify<BrsV4, {
|
|
112
|
+
version: 8;
|
|
113
|
+
host: User;
|
|
114
|
+
brick_owners: Owner[];
|
|
115
|
+
preview?: Bytes;
|
|
116
|
+
game_version: number;
|
|
117
|
+
bricks: BrickV8[];
|
|
118
|
+
components: DefinedComponents;
|
|
119
|
+
}>;
|
|
120
|
+
export declare type BrsV9 = Modify<BrsV8, {
|
|
121
|
+
version: 9;
|
|
122
|
+
physical_materials: string[];
|
|
123
|
+
bricks: BrickV9[];
|
|
124
|
+
}>;
|
|
125
|
+
export declare type BrsV10 = Modify<BrsV9, {
|
|
126
|
+
version: 10;
|
|
127
|
+
bricks: BrickV10[];
|
|
128
|
+
}>;
|
|
129
|
+
export declare type ReadSaveObject = BrsV1 | BrsV2 | BrsV3 | BrsV4 | BrsV8 | BrsV9 | BrsV10;
|
|
130
|
+
export interface Brick {
|
|
131
|
+
asset_name_index?: number;
|
|
132
|
+
size: Vector;
|
|
133
|
+
position: Vector;
|
|
134
|
+
direction?: Direction;
|
|
135
|
+
rotation?: Rotation;
|
|
136
|
+
collision?: boolean | Partial<Collision>;
|
|
137
|
+
visibility?: boolean;
|
|
138
|
+
material_index?: number;
|
|
139
|
+
physical_index?: number;
|
|
140
|
+
material_intensity?: number;
|
|
141
|
+
color?: ColorRgb | number;
|
|
142
|
+
owner_index?: number;
|
|
143
|
+
components?: Components;
|
|
144
|
+
}
|
|
145
|
+
export interface WriteSaveObject {
|
|
146
|
+
game_version?: number;
|
|
147
|
+
map?: string;
|
|
148
|
+
description?: string;
|
|
149
|
+
author?: Partial<User>;
|
|
150
|
+
host?: Partial<User>;
|
|
151
|
+
mods?: string[];
|
|
152
|
+
brick_assets?: string[];
|
|
153
|
+
colors?: UnrealColor[];
|
|
154
|
+
materials?: string[];
|
|
155
|
+
brick_owners?: Partial<Owner>[];
|
|
156
|
+
physical_materials?: string[];
|
|
157
|
+
preview?: Bytes;
|
|
158
|
+
bricks: Brick[];
|
|
159
|
+
save_time?: ArrayLike<number>;
|
|
160
|
+
components?: DefinedComponents;
|
|
161
|
+
}
|
|
162
|
+
export interface ReadOptions {
|
|
163
|
+
bricks?: boolean;
|
|
164
|
+
preview?: boolean;
|
|
165
|
+
}
|
|
166
|
+
export interface WriteOptions {
|
|
167
|
+
compress?: boolean;
|
|
168
|
+
}
|
|
169
|
+
export {};
|
|
170
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,QAAS,SAAQ,UAAU;IAC1C,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,aAAK,MAAM,CAAC,CAAC,EAAE,CAAC,IAAI,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,CAAC;AAEzC,oBAAY,KAAK,GAAG,UAAU,GAAG,QAAQ,CAAC;AAC1C,oBAAY,IAAI,GAAG,MAAM,CAAC;AAE1B,oBAAY,WAAW,GAAG,MAAM,CAAC;AACjC,oBAAY,YAAY,GAAG,MAAM,CAAC;AAClC,oBAAY,aAAa,GAAG,OAAO,CAAC;AACpC,oBAAY,WAAW,GAAG,MAAM,CAAC;AACjC,oBAAY,WAAW,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;AAC3D,oBAAY,UAAU,GAAG,MAAM,CAAC;AAChC,oBAAY,aAAa,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;AACrD,oBAAY,UAAU,GAClB,WAAW,GACX,YAAY,GACZ,aAAa,GACb,WAAW,GACX,WAAW,GACX,UAAU,GACV,aAAa,CAAC;AAElB,MAAM,WAAW,IAAI;IACnB,EAAE,EAAE,IAAI,CAAC;IACT,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,KAAM,SAAQ,IAAI;IACjC,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,oBAAY,SAAS;IACnB,SAAS,IAAA;IACT,SAAS,IAAA;IACT,SAA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GAAG,CAAC,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC;IACvB,IAAI,CAAC,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAChB,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB,MAAM,CAAC,EAAE,WAAW,EAAE,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;IACrB,YAAY,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;IAChC,kBAAkB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC9B,OAAO,CAAC,EAAE,KAAK,CAAC;IAChB,MAAM,EAAE,KAAK,EAAE,CAAC;IAChB,SAAS,CAAC,EAAE,SAAS,CAAC,MAAM,CAAC,CAAC;IAC9B,UAAU,CAAC,EAAE,iBAAiB,CAAC;CAChC;AAED,MAAM,WAAW,WAAW;IAC1B,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,MAAM,WAAW,YAAY;IAC3B,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB"}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { BRSBytes, Bytes, UnrealFloat, UnrealType, Uuid } from './types';
|
|
2
|
+
export declare const bgra: ([b, g, r, a]: number[]) => [
|
|
3
|
+
number,
|
|
4
|
+
number,
|
|
5
|
+
number,
|
|
6
|
+
number
|
|
7
|
+
];
|
|
8
|
+
export declare function isEqual<T>(arrA: Array<T>, arrB: Array<T>): boolean;
|
|
9
|
+
export declare function subarray(data: Bytes, len: number, isCopy?: boolean): Uint8Array;
|
|
10
|
+
export declare function chunk(arr: Bytes, size: number): BRSBytes[];
|
|
11
|
+
declare function read_u16(data: Bytes, littleEndian?: boolean): number;
|
|
12
|
+
declare function write_u16(num: number, littleEndian?: boolean): Uint8Array;
|
|
13
|
+
declare function read_i32(data: Bytes, littleEndian?: boolean): number;
|
|
14
|
+
declare function write_i32(num: number, littleEndian?: boolean): Uint8Array;
|
|
15
|
+
declare function read_compressed(data: Bytes): Bytes;
|
|
16
|
+
declare function write_uncompressed(...args: Uint8Array[]): Uint8Array;
|
|
17
|
+
declare function write_compressed(...args: Uint8Array[]): Uint8Array;
|
|
18
|
+
declare function read_string(data: Bytes): string;
|
|
19
|
+
declare function write_string(str: string): Uint8Array;
|
|
20
|
+
declare function read_uuid(data: Bytes): string;
|
|
21
|
+
declare function write_uuid(uuid: Uuid): Uint8Array;
|
|
22
|
+
declare function read_array<T>(data: Bytes, fn: (_: Bytes) => T): T[];
|
|
23
|
+
declare function read_each(data: Bytes, fn: (_: Bytes) => void): void;
|
|
24
|
+
declare function write_array<T>(arr: T[], fn: (_: T) => Uint8Array): Uint8Array;
|
|
25
|
+
declare class BitReader {
|
|
26
|
+
buffer: Uint8Array;
|
|
27
|
+
pos: number;
|
|
28
|
+
constructor(data: Uint8Array);
|
|
29
|
+
empty(): boolean;
|
|
30
|
+
bit(): boolean;
|
|
31
|
+
align(): void;
|
|
32
|
+
int(max: number): number;
|
|
33
|
+
uint_packed(): number;
|
|
34
|
+
int_packed(): number;
|
|
35
|
+
bits(num: number): number[];
|
|
36
|
+
bytes(num: number): Uint8Array;
|
|
37
|
+
bytesArr(num: number): number[];
|
|
38
|
+
array<T>(fn: (_: BitReader) => T): T[];
|
|
39
|
+
each(fn: (data: BitReader) => void): void;
|
|
40
|
+
string(): string;
|
|
41
|
+
float(): number;
|
|
42
|
+
unreal(type: string): UnrealType;
|
|
43
|
+
}
|
|
44
|
+
declare class BitWriter {
|
|
45
|
+
buffer: number[];
|
|
46
|
+
cur: number;
|
|
47
|
+
bitNum: number;
|
|
48
|
+
bit(val: boolean): void;
|
|
49
|
+
bits(src: number[] | Uint8Array, len: number): void;
|
|
50
|
+
bytes(src: number[] | Uint8Array): void;
|
|
51
|
+
align(): void;
|
|
52
|
+
int(value: number, max: number): void;
|
|
53
|
+
uint_packed(value: number): void;
|
|
54
|
+
int_packed(value: number): void;
|
|
55
|
+
finish(): Uint8Array;
|
|
56
|
+
finishSection(): Uint8Array;
|
|
57
|
+
string(str: string): void;
|
|
58
|
+
float(num: UnrealFloat): void;
|
|
59
|
+
self(fn: (this: BitWriter) => void): this;
|
|
60
|
+
array<T>(arr: T[], fn: (this: BitWriter, item: T, index: number) => void): this;
|
|
61
|
+
each<T>(arr: T[], fn: (this: BitWriter, item: T, index: number) => void): this;
|
|
62
|
+
unreal(type: string, value: UnrealType): void;
|
|
63
|
+
}
|
|
64
|
+
export declare function concat(...arrays: Uint8Array[]): Uint8Array;
|
|
65
|
+
export declare const read: {
|
|
66
|
+
bytes: typeof subarray;
|
|
67
|
+
u16: typeof read_u16;
|
|
68
|
+
i32: typeof read_i32;
|
|
69
|
+
compressed: typeof read_compressed;
|
|
70
|
+
string: typeof read_string;
|
|
71
|
+
uuid: typeof read_uuid;
|
|
72
|
+
array: typeof read_array;
|
|
73
|
+
each: typeof read_each;
|
|
74
|
+
bits: (data: Bytes) => BitReader;
|
|
75
|
+
};
|
|
76
|
+
export declare const write: {
|
|
77
|
+
u16: typeof write_u16;
|
|
78
|
+
i32: typeof write_i32;
|
|
79
|
+
compressed: typeof write_compressed;
|
|
80
|
+
uncompressed: typeof write_uncompressed;
|
|
81
|
+
string: typeof write_string;
|
|
82
|
+
uuid: typeof write_uuid;
|
|
83
|
+
array: typeof write_array;
|
|
84
|
+
bits: () => BitWriter;
|
|
85
|
+
};
|
|
86
|
+
export {};
|
|
87
|
+
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/utils.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,QAAQ,EACR,KAAK,EAEL,WAAW,EACX,UAAU,EACV,IAAI,EACL,MAAM,SAAS,CAAC;AAkBj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AgB,SAAS,CAAC,IAAI,EAAE,IAAI,GAAG,UAAU,CAgChD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"write.d.ts","sourceRoot":"","sources":["../../src/write.ts"],"names":[],"mappings":"AACA,OAAO,EAAgB,YAAY,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAKtE,MAAM,CAAC,OAAO,UAAU,QAAQ,CAC9B,IAAI,EAAE,eAAe,EACrB,OAAO,GAAE,YAAiB,cAwM3B"}
|
|
Binary file
|