screeps-clockwork 0.5.0 → 0.7.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 +7 -0
- package/dist/index.js +482 -665
- package/dist/index.js.map +1 -1
- package/dist/screeps_clockwork.wasm +0 -0
- package/dist/src/index.d.ts +3 -2
- package/dist/src/utils/cleanup.d.ts +23 -0
- package/dist/src/wasm/screeps_clockwork.d.ts +75 -78
- package/dist/src/wrappers/astarDistanceMap.d.ts +35 -0
- package/dist/src/wrappers/bfsDistanceMap.d.ts +18 -29
- package/dist/src/wrappers/dijkstraDistanceMap.d.ts +18 -27
- package/dist/src/wrappers/distanceMap.d.ts +0 -5
- package/dist/src/wrappers/flowField.d.ts +0 -6
- package/dist/src/wrappers/getTerrainCostMatrix.d.ts +6 -0
- package/dist/src/wrappers/monoFlowField.d.ts +0 -6
- package/dist/src/wrappers/multiroomDistanceMap.d.ts +12 -2
- package/dist/src/wrappers/multiroomFlowField.d.ts +2 -2
- package/dist/src/wrappers/multiroomMonoFlowField.d.ts +2 -2
- package/dist/src/wrappers/path.d.ts +3 -3
- package/dist/src/wrappers/searchResult.d.ts +7 -0
- package/package.json +4 -2
- package/dist/src/wrappers/bfsFlowField.d.ts +0 -84
- package/dist/src/wrappers/dijkstraFlowField.d.ts +0 -76
package/README.md
CHANGED
@@ -68,6 +68,9 @@ curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
|
|
68
68
|
# Add rust-src component
|
69
69
|
rustup component add rust-src --toolchain nightly-x86_64-unknown-linux-gnu
|
70
70
|
|
71
|
+
# Set nightly as the default
|
72
|
+
rustup default nightly
|
73
|
+
|
71
74
|
# Install nvm
|
72
75
|
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash
|
73
76
|
|
@@ -75,6 +78,9 @@ curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash
|
|
75
78
|
nvm install --lts
|
76
79
|
nvm use --lts
|
77
80
|
nvm alias default --lts # optional
|
81
|
+
|
82
|
+
# install project dependencies
|
83
|
+
npm install
|
78
84
|
```
|
79
85
|
|
80
86
|
To build the project:
|
@@ -87,6 +93,7 @@ To set up the local Screeps server, you'll need to have docker installed:
|
|
87
93
|
|
88
94
|
```bash
|
89
95
|
cp .env.sample .env # fill this out with the path to your Screeps .nw package and Steam key
|
96
|
+
cp screeps.sample.json screeps.json # optionally, override this to connect to your own local Screeps server
|
90
97
|
./reset-docker.sh
|
91
98
|
```
|
92
99
|
|