com.artromskiy.deltaecs.unity 0.0.63 → 0.0.64

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 CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.0.64
4
+
5
+ - Published with the matching DeltaECS NuGet packages.
6
+
3
7
  ## 0.0.63
4
8
 
5
9
  - Published with the matching DeltaECS NuGet packages.
@@ -3,7 +3,6 @@ using System.Collections.Generic;
3
3
  using System.Linq;
4
4
  using System.Reflection;
5
5
 
6
-
7
6
  using UnityEditor.IMGUI.Controls;
8
7
 
9
8
  using UnityEngine;
@@ -34,6 +34,8 @@ namespace Delta.ECS.Unity.Editor
34
34
  internal int ComponentCount => _componentEntries.Count;
35
35
  private SceneAuthoring Authoring => _target.Authoring;
36
36
 
37
+ private ComponentRegistry Components => (_target.IsRuntime ? _target.RuntimeWorld : _previewWorld).World.Components;
38
+
37
39
  public SceneEntityInspectorView(SelectionProxy proxy)
38
40
  : this(() => proxy != null ? proxy.Target : default)
39
41
  {
@@ -190,18 +192,6 @@ namespace Delta.ECS.Unity.Editor
190
192
 
191
193
  private static Label CreateEntityIcon() => CreateClassLabel("◆", "ecs-entity-icon");
192
194
 
193
- private ComponentRegistry Components => (_target.IsRuntime ? _target.RuntimeWorld : _previewWorld).World.Components;
194
-
195
- private ComponentId? TryGetComponentId(ComponentData data)
196
- => _previewWorld.TryGetComponentId(data, out ComponentId componentId) ? componentId : null;
197
-
198
- private string GetComponentMenuPath(ComponentId componentId)
199
- {
200
- string namespacePath = Components.GetComponentType(componentId).Namespace?.Replace('.', '/') ?? string.Empty;
201
- string shortName = GetShortTypeName(Components.GetComponentType(componentId));
202
- return string.IsNullOrEmpty(namespacePath) ? shortName : $"{namespacePath}/{shortName}";
203
- }
204
-
205
195
  private static string GetShortTypeName(Type type)
206
196
  {
207
197
  string name = type.Name;
@@ -223,6 +213,16 @@ namespace Delta.ECS.Unity.Editor
223
213
  private static int GetComponentOrder(ulong schema) =>
224
214
  InspectorState.instance.GetComponentOrder(schema);
225
215
 
216
+ private ComponentId? TryGetComponentId(ComponentData data)
217
+ => _previewWorld.TryGetComponentId(data, out ComponentId componentId) ? componentId : null;
218
+
219
+ private string GetComponentMenuPath(ComponentId componentId)
220
+ {
221
+ string namespacePath = Components.GetComponentType(componentId).Namespace?.Replace('.', '/') ?? string.Empty;
222
+ string shortName = GetShortTypeName(Components.GetComponentType(componentId));
223
+ return string.IsNullOrEmpty(namespacePath) ? shortName : $"{namespacePath}/{shortName}";
224
+ }
225
+
226
226
  private void OnEntitySelectionChanged()
227
227
  {
228
228
  SyncSelection();
package/README.md CHANGED
@@ -18,7 +18,7 @@ Add the npm-compatible registry and package to the Unity project's
18
18
  }
19
19
  ],
20
20
  "dependencies": {
21
- "com.artromskiy.deltaecs.unity": "0.0.63"
21
+ "com.artromskiy.deltaecs.unity": "0.0.64"
22
22
  }
23
23
  }
24
24
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "com.artromskiy.deltaecs.unity",
3
- "version": "0.0.63",
3
+ "version": "0.0.64",
4
4
  "displayName": "DeltaECS Unity",
5
5
  "description": "Unity scene authoring and editor integration for DeltaECS.",
6
6
  "unity": "6000.7",