@s2script/sdk 0.33.0 → 0.35.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 +37 -0
- package/dist/cli.js +348 -234
- package/package.json +1 -1
- package/usermessages.d.ts +8 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@s2script/sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.35.0",
|
|
4
4
|
"license": "MIT OR Apache-2.0",
|
|
5
5
|
"description": "s2script SDK — the builtin capability types (imported as @s2script/sdk/entity, …) plus the `s2s` CLI for building Source 2 / CS2 plugins.",
|
|
6
6
|
"type": "module",
|
package/usermessages.d.ts
CHANGED
|
@@ -43,6 +43,14 @@ export interface UserMessageView {
|
|
|
43
43
|
readBool(path: string): boolean | null;
|
|
44
44
|
/** Scalar string/bytes read. Dotted nested paths supported. null if absent/repeated/no message. */
|
|
45
45
|
readString(path: string): string | null;
|
|
46
|
+
/** Repeated UTF-8 strings in order; [] when empty, null on wrong type/missing/invalid UTF-8/expired view.
|
|
47
|
+
* Dotted paths through singular sub-messages are supported. Requires matching runtime support. */
|
|
48
|
+
readStrings(path: string): string[] | null;
|
|
49
|
+
/** Edit a scalar int32/uint32/fixed32 field on the current message, preserving all other fields.
|
|
50
|
+
* Returns false for invalid type/range/path, a missing parent, or an expired view.
|
|
51
|
+
* Later handlers see edits; Continue/Changed delivers them, Handled/Stop suppresses the send.
|
|
52
|
+
* Requires matching runtime support. */
|
|
53
|
+
setInt(path: string, value: number): boolean;
|
|
46
54
|
}
|
|
47
55
|
|
|
48
56
|
/**
|