@needle-tools/needle-component-compiler 1.11.2 → 1.12.0-da2e0be
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/Changelog.md +101 -101
- package/Readme.md +17 -17
- package/package.json +46 -42
- package/src/component-compiler.js +788 -784
- package/src/types.js +58 -58
- package/tsconfig.json +7 -7
- package/workspace.code-workspace +14 -11
- package/src/component-compiler.ts +0 -822
package/src/types.js
CHANGED
|
@@ -1,59 +1,59 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
exports.__esModule = true;
|
|
3
|
-
exports.delint = void 0;
|
|
4
|
-
|
|
5
|
-
const dict = {
|
|
6
|
-
"object" : "UnityEngine.Object",
|
|
7
|
-
"number": "float",
|
|
8
|
-
"string": "string",
|
|
9
|
-
"boolean": "bool",
|
|
10
|
-
"Map" : "System.Collections.Generic.HashSet",
|
|
11
|
-
// basic
|
|
12
|
-
"Behaviour" : "UnityEngine.Behaviour",
|
|
13
|
-
"Component" : "UnityEngine.Component",
|
|
14
|
-
"GameObject" : "UnityEngine.GameObject",
|
|
15
|
-
"Object3D" : "UnityEngine.GameObject",
|
|
16
|
-
// Addressables
|
|
17
|
-
"AssetReference" : "UnityEngine.Transform",
|
|
18
|
-
// events
|
|
19
|
-
"EventList" : "UnityEngine.Events.UnityEvent",
|
|
20
|
-
// audio
|
|
21
|
-
"AudioClip" : "UnityEngine.AudioClip",
|
|
22
|
-
"THREE.Object3D" : "UnityEngine.Transform",
|
|
23
|
-
"UnityEvent" : "UnityEngine.Events.UnityEvent",
|
|
24
|
-
"AudioSource" : "UnityEngine.AudioSource",
|
|
25
|
-
"THREE.Color" : "UnityEngine.Color",
|
|
26
|
-
"Color" : "UnityEngine.Color",
|
|
27
|
-
"RGBAColor" : "UnityEngine.Color",
|
|
28
|
-
"THREE.Vector2" : "UnityEngine.Vector2",
|
|
29
|
-
"Vector2" : "UnityEngine.Vector2",
|
|
30
|
-
"THREE.Vector3" : "UnityEngine.Vector3",
|
|
31
|
-
"Vector3" : "UnityEngine.Vector3",
|
|
32
|
-
"THREE.Vector4" : "UnityEngine.Vector4",
|
|
33
|
-
"Vector4" : "UnityEngine.Vector4",
|
|
34
|
-
// animation
|
|
35
|
-
"Animator" : "UnityEngine.Animator",
|
|
36
|
-
"Animation" : "UnityEngine.Animation",
|
|
37
|
-
"AnimationClip" : "UnityEngine.AnimationClip",
|
|
38
|
-
"SignalAsset" : "UnityEngine.Timeline.SignalAsset",
|
|
39
|
-
"PlayableDirector" : "UnityEngine.Playables.PlayableDirector",
|
|
40
|
-
"AnimatorController": "UnityEditor.Animations.AnimatorController",
|
|
41
|
-
// Rendering
|
|
42
|
-
"Renderer" : "UnityEngine.Renderer",
|
|
43
|
-
"Material" : "UnityEngine.Material",
|
|
44
|
-
"MeshBasicMaterial": "UnityEngine.Material",
|
|
45
|
-
"MeshPhysicalMaterial": "UnityEngine.Material",
|
|
46
|
-
"MeshStandardMaterial": "UnityEngine.Material",
|
|
47
|
-
"ShaderMaterial": "UnityEngine.Material",
|
|
48
|
-
"RawShaderMaterial": "UnityEngine.Material",
|
|
49
|
-
"Mesh" : "UnityEngine.Mesh",
|
|
50
|
-
"SkinnedMesh" : "UnityEngine.Mesh",
|
|
51
|
-
"Texture" : "UnityEngine.Texture",
|
|
52
|
-
// UI
|
|
53
|
-
"Text" : "UnityEngine.UI.Text",
|
|
54
|
-
"Image" : "UnityEngine.UI.Image",
|
|
55
|
-
"RawImage": "UnityEngine.UI.RawImage",
|
|
56
|
-
|
|
57
|
-
}
|
|
58
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
exports.__esModule = true;
|
|
3
|
+
exports.delint = void 0;
|
|
4
|
+
|
|
5
|
+
const dict = {
|
|
6
|
+
"object" : "UnityEngine.Object",
|
|
7
|
+
"number": "float",
|
|
8
|
+
"string": "string",
|
|
9
|
+
"boolean": "bool",
|
|
10
|
+
"Map" : "System.Collections.Generic.HashSet",
|
|
11
|
+
// basic
|
|
12
|
+
"Behaviour" : "UnityEngine.Behaviour",
|
|
13
|
+
"Component" : "UnityEngine.Component",
|
|
14
|
+
"GameObject" : "UnityEngine.GameObject",
|
|
15
|
+
"Object3D" : "UnityEngine.GameObject",
|
|
16
|
+
// Addressables
|
|
17
|
+
"AssetReference" : "UnityEngine.Transform",
|
|
18
|
+
// events
|
|
19
|
+
"EventList" : "UnityEngine.Events.UnityEvent",
|
|
20
|
+
// audio
|
|
21
|
+
"AudioClip" : "UnityEngine.AudioClip",
|
|
22
|
+
"THREE.Object3D" : "UnityEngine.Transform",
|
|
23
|
+
"UnityEvent" : "UnityEngine.Events.UnityEvent",
|
|
24
|
+
"AudioSource" : "UnityEngine.AudioSource",
|
|
25
|
+
"THREE.Color" : "UnityEngine.Color",
|
|
26
|
+
"Color" : "UnityEngine.Color",
|
|
27
|
+
"RGBAColor" : "UnityEngine.Color",
|
|
28
|
+
"THREE.Vector2" : "UnityEngine.Vector2",
|
|
29
|
+
"Vector2" : "UnityEngine.Vector2",
|
|
30
|
+
"THREE.Vector3" : "UnityEngine.Vector3",
|
|
31
|
+
"Vector3" : "UnityEngine.Vector3",
|
|
32
|
+
"THREE.Vector4" : "UnityEngine.Vector4",
|
|
33
|
+
"Vector4" : "UnityEngine.Vector4",
|
|
34
|
+
// animation
|
|
35
|
+
"Animator" : "UnityEngine.Animator",
|
|
36
|
+
"Animation" : "UnityEngine.Animation",
|
|
37
|
+
"AnimationClip" : "UnityEngine.AnimationClip",
|
|
38
|
+
"SignalAsset" : "UnityEngine.Timeline.SignalAsset",
|
|
39
|
+
"PlayableDirector" : "UnityEngine.Playables.PlayableDirector",
|
|
40
|
+
"AnimatorController": "UnityEditor.Animations.AnimatorController",
|
|
41
|
+
// Rendering
|
|
42
|
+
"Renderer" : "UnityEngine.Renderer",
|
|
43
|
+
"Material" : "UnityEngine.Material",
|
|
44
|
+
"MeshBasicMaterial": "UnityEngine.Material",
|
|
45
|
+
"MeshPhysicalMaterial": "UnityEngine.Material",
|
|
46
|
+
"MeshStandardMaterial": "UnityEngine.Material",
|
|
47
|
+
"ShaderMaterial": "UnityEngine.Material",
|
|
48
|
+
"RawShaderMaterial": "UnityEngine.Material",
|
|
49
|
+
"Mesh" : "UnityEngine.Mesh",
|
|
50
|
+
"SkinnedMesh" : "UnityEngine.Mesh",
|
|
51
|
+
"Texture" : "UnityEngine.Texture",
|
|
52
|
+
// UI
|
|
53
|
+
"Text" : "UnityEngine.UI.Text",
|
|
54
|
+
"Image" : "UnityEngine.UI.Image",
|
|
55
|
+
"RawImage": "UnityEngine.UI.RawImage",
|
|
56
|
+
|
|
57
|
+
}
|
|
58
|
+
|
|
59
59
|
exports.dict = dict;
|
package/tsconfig.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"types": [
|
|
4
|
-
"mocha",
|
|
5
|
-
"node"
|
|
6
|
-
]
|
|
7
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"types": [
|
|
4
|
+
"mocha",
|
|
5
|
+
"node"
|
|
6
|
+
]
|
|
7
|
+
}
|
|
8
8
|
}
|
package/workspace.code-workspace
CHANGED
|
@@ -1,12 +1,15 @@
|
|
|
1
|
-
{
|
|
2
|
-
"folders": [
|
|
3
|
-
{
|
|
4
|
-
"path": "
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
{
|
|
2
|
+
"folders": [
|
|
3
|
+
{
|
|
4
|
+
"path": "../.github"
|
|
5
|
+
},
|
|
6
|
+
{
|
|
7
|
+
"path": "."
|
|
8
|
+
}
|
|
9
|
+
],
|
|
10
|
+
"settings": {
|
|
11
|
+
"files.exclude": {
|
|
12
|
+
"test/*.js": true
|
|
13
|
+
}
|
|
14
|
+
}
|
|
12
15
|
}
|