dredless 0.6.2 → 0.7.0
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 +14 -0
- package/dist/browser/dredless.global.js +459 -1192
- package/dist/browser/dredless.global.js.map +4 -4
- package/docs/API_REFERENCE.md +90 -1
- package/docs/NODE_API.md +20 -1
- package/package.json +1 -1
- package/src/browser.d.ts +3 -0
- package/src/client/core.js +3 -0
- package/src/client/domains/index.js +12 -0
- package/src/client/domains/tips.js +153 -0
- package/src/client/index.d.ts +1 -1
- package/src/index.d.ts +36 -1
- package/src/network/invites.js +1 -1
- package/src/state/model/decoder.js +31 -46
- package/src/state/model/loader-config.js +0 -997
- package/src/state/model/state.js +6 -73
package/README.md
CHANGED
|
@@ -37,6 +37,20 @@ const ship = client.currentShip();
|
|
|
37
37
|
const loader = ship?.machines.loaders()[0];
|
|
38
38
|
loader?.configure({ cycle: 5, stack: 12 });
|
|
39
39
|
|
|
40
|
+
const door = ship?.machines.doors()[0];
|
|
41
|
+
if (door) await door.setRank("crew");
|
|
42
|
+
const spawn = ship?.machines.spawnPoints()[0];
|
|
43
|
+
if (spawn) await spawn.setRank("captain");
|
|
44
|
+
|
|
45
|
+
// Other context-menu actions can be selected by their displayed text.
|
|
46
|
+
const cannon = ship?.machines.cannons()[0];
|
|
47
|
+
if (cannon) await client.tips.choose(cannon, "Unload Cannon");
|
|
48
|
+
|
|
49
|
+
if (door) {
|
|
50
|
+
console.log((await door.openTips()).options);
|
|
51
|
+
await client.tips.close();
|
|
52
|
+
}
|
|
53
|
+
|
|
40
54
|
const sign = ship?.machines.signs()[0];
|
|
41
55
|
sign?.open();
|
|
42
56
|
sign?.setText("Dock here", SignDisplayMode.WhenNear);
|