com.artromskiy.deltaecs.unity 0.0.45 → 0.0.47

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,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.0.47
4
+
5
+ - Published with the matching DeltaECS NuGet packages.
6
+
7
+ ## 0.0.46
8
+
9
+ - Published with the matching DeltaECS NuGet packages.
10
+
3
11
  ## 0.0.45
4
12
 
5
13
  - Published with the matching DeltaECS NuGet packages.
@@ -525,15 +525,15 @@ namespace Delta.ECS.Unity.Editor
525
525
  bool changed = false;
526
526
  runtimeWorld.World.ForEachEntity(in query, entity =>
527
527
  {
528
- if (runtimeWorld.TryGetStableId(entity.Handle, out _) || runtimeWorld.TryGetView(entity.Handle, out _))
528
+ if (runtimeWorld.TryGetStableId(entity, out _) || runtimeWorld.TryGetView(entity, out _))
529
529
  {
530
530
  return;
531
531
  }
532
532
 
533
- var key = new EntityKey(runtimeWorld, entity.Handle);
533
+ var key = new EntityKey(runtimeWorld, entity);
534
534
  _activeEntityKeys.Add(key);
535
535
  string name = $"ECS Entity {entity.Index}:{entity.Generation}";
536
- var reference = new NodeReference(authoring, null, runtimeWorld, entity.Handle);
536
+ var reference = new NodeReference(authoring, null, runtimeWorld, entity);
537
537
  if (_entityNodes.TryGetValue(key, out EntityNode entityNode))
538
538
  {
539
539
  if (entityNode.Reference.RuntimeWorld != reference.RuntimeWorld
@@ -942,8 +942,8 @@ namespace Delta.ECS.Unity.Editor
942
942
 
943
943
  public override bool Equals(object obj) => obj is EntityKey other && Equals(other);
944
944
  public override int GetHashCode() => _runtimeWorld != null
945
- ? unchecked((_runtimeWorld.GetHashCode() * 397) ^ _runtimeEntity.GetHashCode())
946
- : unchecked((_authoringId.GetHashCode() * 397) ^ StringComparer.Ordinal.GetHashCode(_stableId ?? string.Empty));
945
+ ? (_runtimeWorld.GetHashCode() * 397) ^ _runtimeEntity.GetHashCode()
946
+ : (_authoringId.GetHashCode() * 397) ^ StringComparer.Ordinal.GetHashCode(_stableId ?? string.Empty);
947
947
  }
948
948
  }
949
949
 
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.45"
21
+ "com.artromskiy.deltaecs.unity": "0.0.47"
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.45",
3
+ "version": "0.0.47",
4
4
  "displayName": "DeltaECS Unity",
5
5
  "description": "Unity scene authoring and editor integration for DeltaECS.",
6
6
  "unity": "6000.7",