@gmvjs/all 0.1.0 → 0.1.1
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/README.md +16 -10
- package/dist/index.d.ts +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +37 -37
package/README.md
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
# @gmvjs/all —
|
|
1
|
+
# @gmvjs/all — everything together
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
[](https://www.patreon.com/cw/shibisty)
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
A meta-package for those who need every engine at once (for example, the Game Model Viewer browser extension), and a single-file build for `<script>`.
|
|
6
|
+
|
|
7
|
+
## Installation
|
|
6
8
|
|
|
7
9
|
```sh
|
|
8
10
|
npm i @gmvjs/core @gmvjs/all
|
|
@@ -15,11 +17,11 @@ import { allEngines } from '@gmvjs/all';
|
|
|
15
17
|
const session = new ViewerSession(createRegistry(allEngines));
|
|
16
18
|
```
|
|
17
19
|
|
|
18
|
-
`allEngines`
|
|
20
|
+
`allEngines` defines the order of presets in the game list. Individual engines are re-exported too: `import { xrayV1Engine, source1Engine } from '@gmvjs/all'`.
|
|
19
21
|
|
|
20
|
-
##
|
|
22
|
+
## Build for `<script>`
|
|
21
23
|
|
|
22
|
-
`@gmvjs/all/iife` → `dist/gmv.iife.js`:
|
|
24
|
+
`@gmvjs/all/iife` → `dist/gmv.iife.js`: a global `GMV` with the core, every engine, the renderer and `GMV.mount(canvas)`.
|
|
23
25
|
|
|
24
26
|
```html
|
|
25
27
|
<script src="gmv.iife.js"></script>
|
|
@@ -29,12 +31,16 @@ const session = new ViewerSession(createRegistry(allEngines));
|
|
|
29
31
|
</script>
|
|
30
32
|
```
|
|
31
33
|
|
|
32
|
-
|
|
34
|
+
Example: `examples/standalone.html`.
|
|
33
35
|
|
|
34
|
-
##
|
|
36
|
+
## Dependencies
|
|
35
37
|
|
|
36
|
-
`@gmvjs/core`, `@gmvjs/renderer`, `@gmvjs/codecs`, `@gmvjs/collada`, `@gmvjs/assimp`
|
|
38
|
+
`@gmvjs/core`, `@gmvjs/renderer`, `@gmvjs/codecs`, `@gmvjs/collada`, `@gmvjs/assimp` and every engine package. The packages are released under one version, and `@gmvjs/all` always references matching ones.
|
|
37
39
|
|
|
38
|
-
##
|
|
40
|
+
## License
|
|
39
41
|
|
|
40
42
|
MIT
|
|
43
|
+
|
|
44
|
+
[](https://www.patreon.com/cw/shibisty)
|
|
45
|
+
|
|
46
|
+
If this project helps you, consider supporting its development on Patreon ❤️
|
package/dist/index.d.ts
CHANGED
|
@@ -34,5 +34,5 @@ import { dunia1Engine } from '@gmvjs/dunia1';
|
|
|
34
34
|
import { enfusionEngine } from '@gmvjs/enfusion';
|
|
35
35
|
import { assimpEngine } from '@gmvjs/assimp';
|
|
36
36
|
export { coreEngine, xrayV1Engine, gamebryoEngine, creation1Engine, renderwareV3Engine, hpl1Engine, hpl2Engine, idtech2Engine, idtech3Engine, idtech4Engine, unreal1Engine, unreal2Engine, unreal3Engine, unreal4Engine, unreal5Engine, goldsrcEngine, source1Engine, source2Engine, iwEngine, fceEngine, eagl4Engine, cryengine1Engine, cryengine3Engine, torque3dEngine, realVirtuality4Engine, realVirtuality3Engine, rageEngine, spintiresEngine, fourAEngine, lithtechEngine, vostokEngine, dunia1Engine, enfusionEngine, assimpEngine };
|
|
37
|
-
/**
|
|
37
|
+
/** The order defines the order of presets in the list. */
|
|
38
38
|
export declare const allEngines: readonly EnginePlugin[];
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../src/index.ts"],"sourcesContent":["// @gmvjs/all —
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../src/index.ts"],"sourcesContent":["// @gmvjs/all — every gmv engine; individually: `@gmvjs/xray-v1`, one game: `@gmvjs/xray-v1/cop`.\nimport type { EnginePlugin } from '@gmvjs/core/plugin';\nimport { coreEngine } from '@gmvjs/core/builtin';\nimport { xrayV1Engine } from '@gmvjs/xray-v1';\nimport { gamebryoEngine } from '@gmvjs/gamebryo';\nimport { creation1Engine } from '@gmvjs/creation1';\nimport { renderwareV3Engine } from '@gmvjs/renderware-v3';\nimport { hpl1Engine } from '@gmvjs/hpl1';\nimport { hpl2Engine } from '@gmvjs/hpl2';\nimport { idtech2Engine } from '@gmvjs/idtech2';\nimport { idtech3Engine } from '@gmvjs/idtech3';\nimport { idtech4Engine } from '@gmvjs/idtech4';\nimport { unreal1Engine } from '@gmvjs/unreal1';\nimport { unreal2Engine } from '@gmvjs/unreal2';\nimport { unreal3Engine } from '@gmvjs/unreal3';\nimport { unreal4Engine } from '@gmvjs/unreal4';\nimport { unreal5Engine } from '@gmvjs/unreal5';\nimport { goldsrcEngine } from '@gmvjs/goldsrc';\nimport { source1Engine } from '@gmvjs/source1';\nimport { source2Engine } from '@gmvjs/source2';\nimport { iwEngine } from '@gmvjs/iw';\nimport { fceEngine } from '@gmvjs/fce';\nimport { eagl4Engine } from '@gmvjs/eagl4';\nimport { cryengine1Engine } from '@gmvjs/cryengine1';\nimport { cryengine3Engine } from '@gmvjs/cryengine3';\nimport { torque3dEngine } from '@gmvjs/torque3d';\nimport { realVirtuality4Engine } from '@gmvjs/real-virtuality4';\nimport { realVirtuality3Engine } from '@gmvjs/real-virtuality3';\nimport { rageEngine } from '@gmvjs/rage';\nimport { spintiresEngine } from '@gmvjs/spintires';\nimport { fourAEngine } from '@gmvjs/4a';\nimport { lithtechEngine } from '@gmvjs/lithtech';\nimport { vostokEngine } from '@gmvjs/vostok';\nimport { dunia1Engine } from '@gmvjs/dunia1';\nimport { enfusionEngine } from '@gmvjs/enfusion';\nimport { assimpEngine } from '@gmvjs/assimp';\n\nexport { coreEngine, xrayV1Engine, gamebryoEngine, creation1Engine, renderwareV3Engine, hpl1Engine, hpl2Engine, idtech2Engine, idtech3Engine, idtech4Engine, unreal1Engine, unreal2Engine, unreal3Engine, unreal4Engine, unreal5Engine, goldsrcEngine, source1Engine, source2Engine, iwEngine, fceEngine, eagl4Engine, cryengine1Engine, cryengine3Engine, torque3dEngine, realVirtuality4Engine, realVirtuality3Engine, rageEngine, spintiresEngine, fourAEngine, lithtechEngine, vostokEngine, dunia1Engine, enfusionEngine, assimpEngine };\n\n/** The order defines the order of presets in the list. */\nexport const allEngines: readonly EnginePlugin[] = [\n coreEngine, xrayV1Engine, gamebryoEngine, creation1Engine, renderwareV3Engine, hpl1Engine, hpl2Engine, idtech2Engine, idtech3Engine, idtech4Engine, unreal1Engine, unreal2Engine, unreal3Engine, unreal4Engine, unreal5Engine, goldsrcEngine, source1Engine, source2Engine, iwEngine, fceEngine, eagl4Engine, cryengine1Engine, cryengine3Engine, torque3dEngine, realVirtuality4Engine, realVirtuality3Engine, rageEngine, spintiresEngine, fourAEngine, lithtechEngine, vostokEngine, dunia1Engine, enfusionEngine, assimpEngine,\n];\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwCO,MAAM,aAAsC;AAAA,EACjD;AAAA,EAAY;AAAA,EAAc;AAAA,EAAgB;AAAA,EAAiB;AAAA,EAAoB;AAAA,EAAY;AAAA,EAAY;AAAA,EAAe;AAAA,EAAe;AAAA,EAAe;AAAA,EAAe;AAAA,EAAe;AAAA,EAAe;AAAA,EAAe;AAAA,EAAe;AAAA,EAAe;AAAA,EAAe;AAAA,EAAe;AAAA,EAAU;AAAA,EAAW;AAAA,EAAa;AAAA,EAAkB;AAAA,EAAkB;AAAA,EAAgB;AAAA,EAAuB;AAAA,EAAuB;AAAA,EAAY;AAAA,EAAiB;AAAA,EAAa;AAAA,EAAgB;AAAA,EAAc;AAAA,EAAc;AAAA,EAAgB;AACxf;"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gmvjs/all",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"description": "gmv:
|
|
3
|
+
"version": "0.1.1",
|
|
4
|
+
"description": "gmv: every engine and a build for <script>",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"gmv",
|
|
7
7
|
"game",
|
|
@@ -42,41 +42,41 @@
|
|
|
42
42
|
"build": "node ../../scripts/build-package.mjs && vite build -c vite.iife.config.ts"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@gmvjs/4a": "^0.1.
|
|
46
|
-
"@gmvjs/assimp": "^0.1.
|
|
47
|
-
"@gmvjs/core": "^0.1.
|
|
48
|
-
"@gmvjs/creation1": "^0.1.
|
|
49
|
-
"@gmvjs/cryengine1": "^0.1.
|
|
50
|
-
"@gmvjs/cryengine3": "^0.1.
|
|
51
|
-
"@gmvjs/dunia1": "^0.1.
|
|
52
|
-
"@gmvjs/eagl4": "^0.1.
|
|
53
|
-
"@gmvjs/enfusion": "^0.1.
|
|
54
|
-
"@gmvjs/fce": "^0.1.
|
|
55
|
-
"@gmvjs/gamebryo": "^0.1.
|
|
56
|
-
"@gmvjs/goldsrc": "^0.1.
|
|
57
|
-
"@gmvjs/hpl1": "^0.1.
|
|
58
|
-
"@gmvjs/hpl2": "^0.1.
|
|
59
|
-
"@gmvjs/idtech2": "^0.1.
|
|
60
|
-
"@gmvjs/idtech3": "^0.1.
|
|
61
|
-
"@gmvjs/idtech4": "^0.1.
|
|
62
|
-
"@gmvjs/iw": "^0.1.
|
|
63
|
-
"@gmvjs/lithtech": "^0.1.
|
|
64
|
-
"@gmvjs/rage": "^0.1.
|
|
65
|
-
"@gmvjs/real-virtuality3": "^0.1.
|
|
66
|
-
"@gmvjs/real-virtuality4": "^0.1.
|
|
67
|
-
"@gmvjs/renderer": "^0.1.
|
|
68
|
-
"@gmvjs/renderware-v3": "^0.1.
|
|
69
|
-
"@gmvjs/source1": "^0.1.
|
|
70
|
-
"@gmvjs/source2": "^0.1.
|
|
71
|
-
"@gmvjs/spintires": "^0.1.
|
|
72
|
-
"@gmvjs/torque3d": "^0.1.
|
|
73
|
-
"@gmvjs/unreal1": "^0.1.
|
|
74
|
-
"@gmvjs/unreal2": "^0.1.
|
|
75
|
-
"@gmvjs/unreal3": "^0.1.
|
|
76
|
-
"@gmvjs/unreal4": "^0.1.
|
|
77
|
-
"@gmvjs/unreal5": "^0.1.
|
|
78
|
-
"@gmvjs/vostok": "^0.1.
|
|
79
|
-
"@gmvjs/xray-v1": "^0.1.
|
|
45
|
+
"@gmvjs/4a": "^0.1.1",
|
|
46
|
+
"@gmvjs/assimp": "^0.1.1",
|
|
47
|
+
"@gmvjs/core": "^0.1.1",
|
|
48
|
+
"@gmvjs/creation1": "^0.1.1",
|
|
49
|
+
"@gmvjs/cryengine1": "^0.1.1",
|
|
50
|
+
"@gmvjs/cryengine3": "^0.1.1",
|
|
51
|
+
"@gmvjs/dunia1": "^0.1.1",
|
|
52
|
+
"@gmvjs/eagl4": "^0.1.1",
|
|
53
|
+
"@gmvjs/enfusion": "^0.1.1",
|
|
54
|
+
"@gmvjs/fce": "^0.1.1",
|
|
55
|
+
"@gmvjs/gamebryo": "^0.1.1",
|
|
56
|
+
"@gmvjs/goldsrc": "^0.1.1",
|
|
57
|
+
"@gmvjs/hpl1": "^0.1.1",
|
|
58
|
+
"@gmvjs/hpl2": "^0.1.1",
|
|
59
|
+
"@gmvjs/idtech2": "^0.1.1",
|
|
60
|
+
"@gmvjs/idtech3": "^0.1.1",
|
|
61
|
+
"@gmvjs/idtech4": "^0.1.1",
|
|
62
|
+
"@gmvjs/iw": "^0.1.1",
|
|
63
|
+
"@gmvjs/lithtech": "^0.1.1",
|
|
64
|
+
"@gmvjs/rage": "^0.1.1",
|
|
65
|
+
"@gmvjs/real-virtuality3": "^0.1.1",
|
|
66
|
+
"@gmvjs/real-virtuality4": "^0.1.1",
|
|
67
|
+
"@gmvjs/renderer": "^0.1.1",
|
|
68
|
+
"@gmvjs/renderware-v3": "^0.1.1",
|
|
69
|
+
"@gmvjs/source1": "^0.1.1",
|
|
70
|
+
"@gmvjs/source2": "^0.1.1",
|
|
71
|
+
"@gmvjs/spintires": "^0.1.1",
|
|
72
|
+
"@gmvjs/torque3d": "^0.1.1",
|
|
73
|
+
"@gmvjs/unreal1": "^0.1.1",
|
|
74
|
+
"@gmvjs/unreal2": "^0.1.1",
|
|
75
|
+
"@gmvjs/unreal3": "^0.1.1",
|
|
76
|
+
"@gmvjs/unreal4": "^0.1.1",
|
|
77
|
+
"@gmvjs/unreal5": "^0.1.1",
|
|
78
|
+
"@gmvjs/vostok": "^0.1.1",
|
|
79
|
+
"@gmvjs/xray-v1": "^0.1.1"
|
|
80
80
|
},
|
|
81
81
|
"devDependencies": {
|
|
82
82
|
"@gmvjs/test-utils": "^0.1.0"
|