@kingdomsconnected/types 1.6.6 → 1.6.7
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/generated/client-api.d.ts +18 -0
- package/package.json +1 -1
|
@@ -794,6 +794,11 @@ declare global {
|
|
|
794
794
|
*/
|
|
795
795
|
readonly disguise: string | null;
|
|
796
796
|
|
|
797
|
+
/**
|
|
798
|
+
* Whether this player's body is drawn at all -- itself, what it wears and what it carries. True for everybody until something hides them. Published by their own client, so it follows `setVisible` once they have actually stopped drawing. A hidden player is only invisible: they still stand where they stand, still collide, can still be hit, and NPCs still see them.
|
|
799
|
+
*/
|
|
800
|
+
readonly visible: boolean;
|
|
801
|
+
|
|
797
802
|
/**
|
|
798
803
|
* Whether this player's body has both a pose and a soul, which is what everyone else waits for before spawning a puppet for them. False for the first moments of a connection.
|
|
799
804
|
*/
|
|
@@ -3615,6 +3620,19 @@ declare global {
|
|
|
3615
3620
|
* @returns Control names, in a fixed order.
|
|
3616
3621
|
*/
|
|
3617
3622
|
keys(): string[];
|
|
3623
|
+
|
|
3624
|
+
/**
|
|
3625
|
+
* Whether the HUD is drawing a hint on that control right now, the game's own hints and interaction prompts included, whoever put it up. Lets a script keep its own UI off a key a hint is waiting on.
|
|
3626
|
+
* @param key A control, such as `use` or `jump`; any of the game's, not only `keys()`.
|
|
3627
|
+
* @returns True while a drawn hint is on the control, as of the game's last hint refresh, at most a frame old.
|
|
3628
|
+
*/
|
|
3629
|
+
isKeyInUse(key: string): boolean;
|
|
3630
|
+
|
|
3631
|
+
/**
|
|
3632
|
+
* Every control a drawn hint is on right now, interaction prompts included, whoever put it up.
|
|
3633
|
+
* @returns Control names, each once; empty while no hints are drawn.
|
|
3634
|
+
*/
|
|
3635
|
+
shownKeys(): string[];
|
|
3618
3636
|
};
|
|
3619
3637
|
|
|
3620
3638
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kingdomsconnected/types",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.7",
|
|
4
4
|
"description": "TypeScript declarations for the Kingdoms Connected scripting API, one entry per side: @kingdomsconnected/types/server and @kingdomsconnected/types/client",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"keywords": [
|