@s2script/sdk 0.15.0 → 0.17.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/admin.d.ts +12 -0
- package/dist/cli.js +1 -1
- package/entity.d.ts +3 -0
- package/package.json +1 -1
package/admin.d.ts
CHANGED
|
@@ -37,6 +37,18 @@ export declare const ADMFLAG: {
|
|
|
37
37
|
readonly CHEATS: number;
|
|
38
38
|
/** Full access — implicitly satisfies every flag (`1<<14` = 16384). See {@link AdminInfo.hasFlags}. */
|
|
39
39
|
readonly ROOT: number;
|
|
40
|
+
/** SM custom flag 1 — letter `o` (`1<<15` = 32768). Meaning is server-defined. */
|
|
41
|
+
readonly CUSTOM1: number;
|
|
42
|
+
/** SM custom flag 2 — letter `p` (`1<<16` = 65536). Meaning is server-defined. */
|
|
43
|
+
readonly CUSTOM2: number;
|
|
44
|
+
/** SM custom flag 3 — letter `q` (`1<<17` = 131072). Meaning is server-defined. */
|
|
45
|
+
readonly CUSTOM3: number;
|
|
46
|
+
/** SM custom flag 4 — letter `r` (`1<<18` = 262144). Meaning is server-defined. */
|
|
47
|
+
readonly CUSTOM4: number;
|
|
48
|
+
/** SM custom flag 5 — letter `s` (`1<<19` = 524288). Meaning is server-defined. */
|
|
49
|
+
readonly CUSTOM5: number;
|
|
50
|
+
/** SM custom flag 6 — letter `t` (`1<<20` = 1048576). Meaning is server-defined. */
|
|
51
|
+
readonly CUSTOM6: number;
|
|
40
52
|
};
|
|
41
53
|
|
|
42
54
|
/** An admin entry: their SteamID64, their combined flag mask, and a helper to check flags. */
|
package/dist/cli.js
CHANGED
|
@@ -4492,7 +4492,7 @@ async function buildPlugin(dir, packagesDir) {
|
|
|
4492
4492
|
const allowedBases = [`${unscoped}.gamedata.jsonc`, `${unscoped}.gamedata.json`];
|
|
4493
4493
|
if (!allowedBases.includes(actualBase)) {
|
|
4494
4494
|
throw new Error(
|
|
4495
|
-
`s2script.gamedata must be named '${unscoped}.gamedata.jsonc' (after the plugin name without its scope
|
|
4495
|
+
`s2script.gamedata must be named '${unscoped}.gamedata.jsonc' (after the plugin name without its scope \u2014 a plugin's gamedata is named for its owner, the plugin itself), but is '${actualBase}'`
|
|
4496
4496
|
);
|
|
4497
4497
|
}
|
|
4498
4498
|
const raw = stripJsonComments(readFileSync8(gdPath, "utf8"));
|
package/entity.d.ts
CHANGED
|
@@ -23,6 +23,9 @@ export declare class EntityRef {
|
|
|
23
23
|
/** This entity's targetname (`CEntityIdentity::m_name`) — e.g. a map trigger's `"map_start"`. `""` if
|
|
24
24
|
* the entity has no targetname; `null` if the ref is stale/invalid. */
|
|
25
25
|
readonly name: string | null;
|
|
26
|
+
/** This entity's target (`CBaseEntity::m_target`) — the targetname of the entity it acts on, e.g. a
|
|
27
|
+
* `func_button`'s target entity. `""` if the entity has no target; `null` if the ref is stale/invalid. */
|
|
28
|
+
readonly target: string | null;
|
|
26
29
|
/** @internal The host mints refs; this is not part of the public API surface. */
|
|
27
30
|
private constructor();
|
|
28
31
|
/** True iff the host's books say live AND the identity slot still matches. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@s2script/sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.17.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",
|