com.elestrago.unity.entitas-redux 3.7.3 → 3.7.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/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
---
|
|
4
4
|
|
|
5
|
+
## [3.7.4](https://gitlab.com/elestrago-pkg/entitas-redux/-/tags/3.7.4)
|
|
6
|
+
|
|
7
|
+
### Fixed
|
|
8
|
+
|
|
9
|
+
- `ContextObserver` do not add already created entities to observe
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
5
13
|
## [3.7.3](https://gitlab.com/elestrago-pkg/entitas-redux/-/tags/3.7.3)
|
|
6
14
|
|
|
7
15
|
### Changed
|
package/Core/Context/Context.cs
CHANGED
package/Core/Context/IContext.cs
CHANGED
|
@@ -46,6 +46,8 @@ namespace JCMG.EntitasRedux
|
|
|
46
46
|
|
|
47
47
|
event ContextGroupChanged OnGroupCreated;
|
|
48
48
|
|
|
49
|
+
IEntity[] GetEntities();
|
|
50
|
+
|
|
49
51
|
void DestroyAllEntities();
|
|
50
52
|
|
|
51
53
|
void AddEntityIndex(IEntityIndex entityIndex);
|
|
@@ -67,7 +69,7 @@ namespace JCMG.EntitasRedux
|
|
|
67
69
|
|
|
68
70
|
bool HasEntity(TEntity entity);
|
|
69
71
|
|
|
70
|
-
TEntity[] GetEntities();
|
|
72
|
+
new TEntity[] GetEntities();
|
|
71
73
|
|
|
72
74
|
ArrayDisposable<TEntity> GetEntities(out Span<TEntity> entities);
|
|
73
75
|
|
|
@@ -54,6 +54,12 @@ namespace JCMG.EntitasRedux.VisualDebugging
|
|
|
54
54
|
|
|
55
55
|
_context.OnEntityCreated += OnEntityCreated;
|
|
56
56
|
_context.OnGroupCreated += OnGroupCreated;
|
|
57
|
+
|
|
58
|
+
var entities = _context.GetEntities();
|
|
59
|
+
foreach (var entity in entities)
|
|
60
|
+
{
|
|
61
|
+
OnEntityCreated(_context, entity);
|
|
62
|
+
}
|
|
57
63
|
}
|
|
58
64
|
|
|
59
65
|
public void Deactivate()
|
|
@@ -104,4 +110,4 @@ namespace JCMG.EntitasRedux.VisualDebugging
|
|
|
104
110
|
return str;
|
|
105
111
|
}
|
|
106
112
|
}
|
|
107
|
-
}
|
|
113
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "com.elestrago.unity.entitas-redux",
|
|
3
|
-
"version": "3.7.
|
|
3
|
+
"version": "3.7.4",
|
|
4
4
|
"displayName": "JCMG Entitas Redux",
|
|
5
5
|
"description": "Entitas Redux is an fast, accessible, and feature-rich ECS framework for Unity. It leverages code generation and an extensible plugin framework to make life easier for developers.",
|
|
6
6
|
"category": "Unity",
|