@hylithiumjs.com/core 1.3.2 → 1.3.4
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/dist/index.d.ts +746 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +889 -0
- package/dist/types.d.ts +8160 -151
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +51 -0
- package/package.json +39 -39
package/dist/types.js
CHANGED
|
@@ -18,3 +18,54 @@ export const Colors = {
|
|
|
18
18
|
LIGHT_GRAY: "#D3D3D3",
|
|
19
19
|
DARK_GRAY: "#404040",
|
|
20
20
|
};
|
|
21
|
+
export var RotationMode;
|
|
22
|
+
(function (RotationMode) {
|
|
23
|
+
RotationMode["None"] = "None";
|
|
24
|
+
RotationMode["Velocity"] = "Velocity";
|
|
25
|
+
RotationMode["VelocityDamped"] = "VelocityDamped";
|
|
26
|
+
RotationMode["VelocityRoll"] = "VelocityRoll";
|
|
27
|
+
})(RotationMode || (RotationMode = {}));
|
|
28
|
+
// ------------------------------------------
|
|
29
|
+
// Interaction System (Phase 11)
|
|
30
|
+
// ------------------------------------------
|
|
31
|
+
export var InteractionType;
|
|
32
|
+
(function (InteractionType) {
|
|
33
|
+
InteractionType[InteractionType["Primary"] = 0] = "Primary";
|
|
34
|
+
InteractionType[InteractionType["Secondary"] = 1] = "Secondary";
|
|
35
|
+
InteractionType[InteractionType["Ability1"] = 2] = "Ability1";
|
|
36
|
+
InteractionType[InteractionType["Ability2"] = 3] = "Ability2";
|
|
37
|
+
InteractionType[InteractionType["Ability3"] = 4] = "Ability3";
|
|
38
|
+
InteractionType[InteractionType["Use"] = 5] = "Use";
|
|
39
|
+
InteractionType[InteractionType["Pick"] = 6] = "Pick";
|
|
40
|
+
InteractionType[InteractionType["Pickup"] = 7] = "Pickup";
|
|
41
|
+
InteractionType[InteractionType["CollisionEnter"] = 8] = "CollisionEnter";
|
|
42
|
+
InteractionType[InteractionType["CollisionLeave"] = 9] = "CollisionLeave";
|
|
43
|
+
InteractionType[InteractionType["Collision"] = 10] = "Collision";
|
|
44
|
+
InteractionType[InteractionType["EntityStatEffect"] = 11] = "EntityStatEffect";
|
|
45
|
+
InteractionType[InteractionType["SwapTo"] = 12] = "SwapTo";
|
|
46
|
+
InteractionType[InteractionType["SwapFrom"] = 13] = "SwapFrom";
|
|
47
|
+
InteractionType[InteractionType["Death"] = 14] = "Death";
|
|
48
|
+
InteractionType[InteractionType["Wielding"] = 15] = "Wielding";
|
|
49
|
+
InteractionType[InteractionType["ProjectileSpawn"] = 16] = "ProjectileSpawn";
|
|
50
|
+
InteractionType[InteractionType["ProjectileHit"] = 17] = "ProjectileHit";
|
|
51
|
+
InteractionType[InteractionType["ProjectileMiss"] = 18] = "ProjectileMiss";
|
|
52
|
+
InteractionType[InteractionType["ProjectileBounce"] = 19] = "ProjectileBounce";
|
|
53
|
+
InteractionType[InteractionType["Held"] = 20] = "Held";
|
|
54
|
+
InteractionType[InteractionType["HeldOffhand"] = 21] = "HeldOffhand";
|
|
55
|
+
InteractionType[InteractionType["Equipped"] = 22] = "Equipped";
|
|
56
|
+
InteractionType[InteractionType["Dodge"] = 23] = "Dodge";
|
|
57
|
+
InteractionType[InteractionType["GameModeSwap"] = 24] = "GameModeSwap";
|
|
58
|
+
})(InteractionType || (InteractionType = {}));
|
|
59
|
+
// ------------------------------------------
|
|
60
|
+
// Stats System (Phase 11)
|
|
61
|
+
// ------------------------------------------
|
|
62
|
+
export var ModifierTarget;
|
|
63
|
+
(function (ModifierTarget) {
|
|
64
|
+
ModifierTarget[ModifierTarget["MIN"] = 0] = "MIN";
|
|
65
|
+
ModifierTarget[ModifierTarget["MAX"] = 1] = "MAX";
|
|
66
|
+
})(ModifierTarget || (ModifierTarget = {}));
|
|
67
|
+
export var CalculationType;
|
|
68
|
+
(function (CalculationType) {
|
|
69
|
+
CalculationType[CalculationType["ADDITIVE"] = 0] = "ADDITIVE";
|
|
70
|
+
CalculationType[CalculationType["MULTIPLICATIVE"] = 1] = "MULTIPLICATIVE";
|
|
71
|
+
})(CalculationType || (CalculationType = {}));
|
package/package.json
CHANGED
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@hylithiumjs.com/core",
|
|
3
|
-
"version": "1.3.
|
|
4
|
-
"description": "TypeScript types and utilities for HyLithiumJS plugins",
|
|
5
|
-
"type": "module",
|
|
6
|
-
"main": "dist/index.js",
|
|
7
|
-
"types": "dist/index.d.ts",
|
|
8
|
-
"exports": {
|
|
9
|
-
".": {
|
|
10
|
-
"types": "./dist/index.d.ts",
|
|
11
|
-
"import": "./dist/index.js"
|
|
12
|
-
}
|
|
13
|
-
},
|
|
14
|
-
"files": [
|
|
15
|
-
"dist"
|
|
16
|
-
],
|
|
17
|
-
"scripts": {
|
|
18
|
-
"build": "yarn exec shx rm -rf dist && yarn exec tsc && yarn exec shx cp -r dist ../../docs/types",
|
|
19
|
-
"prepublishOnly": "npm run build"
|
|
20
|
-
},
|
|
21
|
-
"keywords": [
|
|
22
|
-
"hytale",
|
|
23
|
-
"hylithiumjs",
|
|
24
|
-
"typescript",
|
|
25
|
-
"types"
|
|
26
|
-
],
|
|
27
|
-
"author": "lithium",
|
|
28
|
-
"license": "MIT",
|
|
29
|
-
"publishConfig": {
|
|
30
|
-
"access": "public"
|
|
31
|
-
},
|
|
32
|
-
"repository": {
|
|
33
|
-
"type": "git",
|
|
34
|
-
"url": "https://github.com/lithium-network/HyLithiumJS",
|
|
35
|
-
"directory": "packages/core"
|
|
36
|
-
},
|
|
37
|
-
"devDependencies": {
|
|
38
|
-
"typescript": "^5.7.2"
|
|
39
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@hylithiumjs.com/core",
|
|
3
|
+
"version": "1.3.4",
|
|
4
|
+
"description": "TypeScript types and utilities for HyLithiumJS plugins",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "dist/index.js",
|
|
7
|
+
"types": "dist/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
11
|
+
"import": "./dist/index.js"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
"files": [
|
|
15
|
+
"dist"
|
|
16
|
+
],
|
|
17
|
+
"scripts": {
|
|
18
|
+
"build": "yarn exec shx rm -rf dist && yarn exec tsc && yarn exec shx cp -r dist ../../docs/types",
|
|
19
|
+
"prepublishOnly": "npm run build"
|
|
20
|
+
},
|
|
21
|
+
"keywords": [
|
|
22
|
+
"hytale",
|
|
23
|
+
"hylithiumjs",
|
|
24
|
+
"typescript",
|
|
25
|
+
"types"
|
|
26
|
+
],
|
|
27
|
+
"author": "lithium",
|
|
28
|
+
"license": "MIT",
|
|
29
|
+
"publishConfig": {
|
|
30
|
+
"access": "public"
|
|
31
|
+
},
|
|
32
|
+
"repository": {
|
|
33
|
+
"type": "git",
|
|
34
|
+
"url": "https://github.com/lithium-network/HyLithiumJS",
|
|
35
|
+
"directory": "packages/core"
|
|
36
|
+
},
|
|
37
|
+
"devDependencies": {
|
|
38
|
+
"typescript": "^5.7.2"
|
|
39
|
+
}
|
|
40
40
|
}
|