@s2script/sdk 0.30.1 → 0.30.3
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/package.json +1 -1
- package/usermessages.d.ts +3 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@s2script/sdk",
|
|
3
|
-
"version": "0.30.
|
|
3
|
+
"version": "0.30.3",
|
|
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
|
@@ -59,7 +59,9 @@ export declare const UserMessages: {
|
|
|
59
59
|
/** Pre-hook an outbound user message by unscoped name (partial match, SayText2-style; the view
|
|
60
60
|
* carries the canonical name). Runs SYNCHRONOUSLY before delivery. Return >= HookResult.Handled
|
|
61
61
|
* to SUPPRESS the send for every recipient; Continue/undefined passes it through. THROWS at
|
|
62
|
-
* subscribe time on an unresolvable name or a degraded intercept descriptor
|
|
62
|
+
* subscribe time on an unresolvable name or a degraded intercept descriptor — except while the
|
|
63
|
+
* server is still starting (before the game has registered its messages): then the handler is
|
|
64
|
+
* held and attached once the server starts, and a name that still doesn't resolve is logged. */
|
|
63
65
|
onPre(name: string, handler: (msg: UserMessageView) => HookResultValue | void): void;
|
|
64
66
|
/** Removes ALL of the calling plugin's handlers for this name (mux off semantics — handler
|
|
65
67
|
* identity not compared, matching Events.off). */
|