com.elestrago.unity.entitas-redux 3.4.0 → 3.4.2

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,22 @@
2
2
 
3
3
  ---
4
4
 
5
+ ## [3.4.2](https://gitlab.com/elestrago-pkg/entitas-redux/-/tags/3.4.2)
6
+
7
+ ### Added
8
+
9
+ - Add a component method with a return new component without providing parameters
10
+
11
+ ---
12
+
13
+ ## [3.4.1](https://gitlab.com/elestrago-pkg/entitas-redux/-/tags/3.4.1)
14
+
15
+ ### Fixed
16
+
17
+ - Possible command class extension generations in Rider IDE
18
+
19
+ ---
20
+
5
21
  ## [3.4.0](https://gitlab.com/elestrago-pkg/entitas-redux/-/tags/3.4.0)
6
22
 
7
23
  ### Removed
@@ -64,8 +64,6 @@ namespace JCMG.EntitasRedux
64
64
 
65
65
  private EntityRepo<TEntity> _entityRepo;
66
66
 
67
- private TEntity[] _entitiesCache;
68
-
69
67
  /// <summary>
70
68
  /// The preferred way to create a context is to use the generated methods
71
69
  /// from the code generator, e.g. var context = new GameContext();
@@ -213,8 +211,6 @@ namespace JCMG.EntitasRedux
213
211
 
214
212
  private void OnDestroyEntity(IEntity entity)
215
213
  {
216
- _entitiesCache = null;
217
-
218
214
  using (_onEntityDestroyed.Invokable(out var listeners))
219
215
  {
220
216
  foreach (var listener in listeners)
@@ -328,7 +324,6 @@ namespace JCMG.EntitasRedux
328
324
  }
329
325
 
330
326
  entity.Retain(this);
331
- _entitiesCache = null;
332
327
 
333
328
  entity.OnComponentAdded += _cachedEntityChanged;
334
329
  entity.OnComponentRemoved += _cachedEntityChanged;
@@ -1,6 +1,5 @@
1
1
  using System;
2
2
  using System.Buffers;
3
- using System.Runtime.CompilerServices;
4
3
  using EntitasRedux.Core.Libs;
5
4
  using EntitasRedux.Core.Libs.Collections;
6
5
 
@@ -33,7 +32,6 @@ namespace JCMG.EntitasRedux
33
32
 
34
33
  public static class EntityRepoExtensions
35
34
  {
36
- [MethodImpl(MethodImplOptions.AggressiveInlining)]
37
35
  public static bool Alloc<TEntity>(this ref EntityRepo<TEntity> repo, out TEntity entity)
38
36
  where TEntity : class, IEntity
39
37
  {
@@ -56,7 +54,6 @@ namespace JCMG.EntitasRedux
56
54
  return true;
57
55
  }
58
56
 
59
- [MethodImpl(MethodImplOptions.AggressiveInlining)]
60
57
  public static bool Has<TEntity>(this ref EntityRepo<TEntity> repo, GenId id)
61
58
  where TEntity : class, IEntity
62
59
  {
@@ -67,7 +64,6 @@ namespace JCMG.EntitasRedux
67
64
  return entity.Id.CreationIndex == id.CreationIndex;
68
65
  }
69
66
 
70
- [MethodImpl(MethodImplOptions.AggressiveInlining)]
71
67
  public static bool Release<TEntity>(this ref EntityRepo<TEntity> repo, GenId id)
72
68
  where TEntity : class, IEntity
73
69
  {
@@ -83,7 +79,6 @@ namespace JCMG.EntitasRedux
83
79
  return true;
84
80
  }
85
81
 
86
- [MethodImpl(MethodImplOptions.AggressiveInlining)]
87
82
  public static void ReleaseAll<TEntity>(this ref EntityRepo<TEntity> repo)
88
83
  where TEntity : class, IEntity
89
84
  {
@@ -97,7 +92,6 @@ namespace JCMG.EntitasRedux
97
92
  }
98
93
  }
99
94
 
100
- [MethodImpl(MethodImplOptions.AggressiveInlining)]
101
95
  public static TEntity GetById<TEntity>(this ref EntityRepo<TEntity> repo, GenId id)
102
96
  where TEntity : class, IEntity
103
97
  {
@@ -108,7 +102,6 @@ namespace JCMG.EntitasRedux
108
102
  return entity;
109
103
  }
110
104
 
111
- [MethodImpl(MethodImplOptions.AggressiveInlining)]
112
105
  public static void GroupHandleEntitySilently<TEntity>(
113
106
  this ref EntityRepo<TEntity> repo,
114
107
  IGroup<TEntity> collection
@@ -124,7 +117,6 @@ namespace JCMG.EntitasRedux
124
117
  }
125
118
  }
126
119
 
127
- [MethodImpl(MethodImplOptions.AggressiveInlining)]
128
120
  public static ArrayDisposable<TEntity> GetEntities<TEntity>(
129
121
  this ref EntityRepo<TEntity> repo,
130
122
  out Span<TEntity> entities
@@ -146,14 +138,12 @@ namespace JCMG.EntitasRedux
146
138
  return new ArrayDisposable<TEntity>(array);
147
139
  }
148
140
 
149
- [MethodImpl(MethodImplOptions.AggressiveInlining)]
150
141
  public static void ResetCreationIndex<TEntity>(this ref EntityRepo<TEntity> repo)
151
142
  where TEntity : class, IEntity
152
143
  {
153
144
  repo.CreationIndex = 0;
154
145
  }
155
146
 
156
- [MethodImpl(MethodImplOptions.AggressiveInlining)]
157
147
  public static TEntity[] ToArray<TEntity>(this ref EntityRepo<TEntity> repo)
158
148
  where TEntity : class, IEntity
159
149
  {
@@ -171,7 +161,6 @@ namespace JCMG.EntitasRedux
171
161
  return entities;
172
162
  }
173
163
 
174
- [MethodImpl(MethodImplOptions.AggressiveInlining)]
175
164
  public static ReadOnlySpan<TEntity> AsReadOnlySpan<TEntity>(this ref EntityRepo<TEntity> repo)
176
165
  where TEntity : class, IEntity
177
166
  => new(repo.Pool, 0, repo.Length);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "com.elestrago.unity.entitas-redux",
3
- "version": "3.4.0",
3
+ "version": "3.4.2",
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",