com.elestrago.unity.entitas-redux 3.1.3 → 3.2.0

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.
Files changed (19) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/Core/Systems/Commands/CleanupCommandSystem.cs +12 -0
  3. package/Core/Systems/Commands/CleanupCommandSystem.cs.meta +3 -0
  4. package/Core/Systems/Commands/{CommandFixedUpdateSystem.cs → FixedUpdateCommandSystem.cs} +3 -3
  5. package/Core/Systems/Commands/ForEachCleanupCommandSystem.cs +20 -0
  6. package/Core/Systems/Commands/ForEachCleanupCommandSystem.cs.meta +3 -0
  7. package/Core/Systems/Commands/{ForEachCommandFixedUpdateSystem.cs → ForEachFixedUpdateCommandSystem.cs} +2 -4
  8. package/Core/Systems/Commands/{ForEachCommandLateUpdateSystem.cs → ForEachLateUpdateCommandSystem.cs} +2 -4
  9. package/Core/Systems/Commands/{ForEachCommandUpdateSystem.cs → ForEachUpdateCommandSystem.cs} +2 -4
  10. package/Core/Systems/Commands/{CommandLateUpdateSystem.cs → LateUpdateCommandSystem.cs} +2 -2
  11. package/Core/Systems/Commands/{CommandUpdateSystem.cs → UpdateCommandSystem.cs} +2 -2
  12. package/Plugins/EntitasRedux.Core.Generator.dll +0 -0
  13. package/package.json +2 -2
  14. /package/Core/Systems/Commands/{CommandFixedUpdateSystem.cs.meta → FixedUpdateCommandSystem.cs.meta} +0 -0
  15. /package/Core/Systems/Commands/{ForEachCommandFixedUpdateSystem.cs.meta → ForEachFixedUpdateCommandSystem.cs.meta} +0 -0
  16. /package/Core/Systems/Commands/{ForEachCommandLateUpdateSystem.cs.meta → ForEachLateUpdateCommandSystem.cs.meta} +0 -0
  17. /package/Core/Systems/Commands/{ForEachCommandUpdateSystem.cs.meta → ForEachUpdateCommandSystem.cs.meta} +0 -0
  18. /package/Core/Systems/Commands/{CommandLateUpdateSystem.cs.meta → LateUpdateCommandSystem.cs.meta} +0 -0
  19. /package/Core/Systems/Commands/{CommandUpdateSystem.cs.meta → UpdateCommandSystem.cs.meta} +0 -0
package/CHANGELOG.md CHANGED
@@ -6,6 +6,26 @@ All notable changes to this project will be documented in this file.
6
6
 
7
7
  ---
8
8
 
9
+ ## [3.2.0](https://gitlab.com/elestrago-pkg/entitas-redux/-/tags/3.2.0)
10
+
11
+ ### Added
12
+
13
+ - `CleanupCommandSystem`
14
+
15
+ ### Changes
16
+
17
+ - Change command system naming
18
+
19
+ ---
20
+
21
+ ## [3.1.4](https://gitlab.com/elestrago-pkg/entitas-redux/-/tags/3.1.4)
22
+
23
+ ### Fixed
24
+
25
+ - Use `IContext<TEntity>` interface in EntityIndex extension methods
26
+
27
+ ---
28
+
9
29
  ## [3.1.3](https://gitlab.com/elestrago-pkg/entitas-redux/-/tags/3.1.3)
10
30
 
11
31
  ### Fixed
@@ -0,0 +1,12 @@
1
+ namespace JCMG.EntitasRedux.Commands
2
+ {
3
+ public abstract class CleanupCommandSystem<TCommand> : CommandSystem<TCommand>, ICleanupSystem
4
+ where TCommand : struct
5
+ {
6
+ protected CleanupCommandSystem(ICommandBuffer commandBuffer) : base(commandBuffer)
7
+ {
8
+ }
9
+
10
+ public void Cleanup() => ExecuteCommands();
11
+ }
12
+ }
@@ -0,0 +1,3 @@
1
+ fileFormatVersion: 2
2
+ guid: f013518ce9e342bca6067300609086ff
3
+ timeCreated: 1739453675
@@ -1,12 +1,12 @@
1
1
  namespace JCMG.EntitasRedux.Commands
2
2
  {
3
- public abstract class CommandFixedUpdateSystem<TCommand> : CommandSystem<TCommand>, IFixedUpdateSystem
3
+ public abstract class FixedUpdateCommandSystem<TCommand> : CommandSystem<TCommand>, IFixedUpdateSystem
4
4
  where TCommand : struct
5
5
  {
6
- protected CommandFixedUpdateSystem(ICommandBuffer commandBuffer) : base(commandBuffer)
6
+ protected FixedUpdateCommandSystem(ICommandBuffer commandBuffer) : base(commandBuffer)
7
7
  {
8
8
  }
9
9
 
10
10
  public void FixedUpdate() => ExecuteCommands();
11
11
  }
12
- }
12
+ }
@@ -0,0 +1,20 @@
1
+ using System;
2
+
3
+ namespace JCMG.EntitasRedux.Commands
4
+ {
5
+ public abstract class ForEachCleanupCommandSystem<TCommand> : CleanupCommandSystem<TCommand>
6
+ where TCommand : struct
7
+ {
8
+ protected ForEachCleanupCommandSystem(ICommandBuffer commandBuffer) : base(commandBuffer)
9
+ {
10
+ }
11
+
12
+ protected sealed override void Execute(Span<TCommand> commands)
13
+ {
14
+ foreach (ref var command in commands)
15
+ Execute(ref command);
16
+ }
17
+
18
+ protected abstract void Execute(ref TCommand command);
19
+ }
20
+ }
@@ -0,0 +1,3 @@
1
+ fileFormatVersion: 2
2
+ guid: c2c6927b4087414ba7d621d859d5bb03
3
+ timeCreated: 1739453720
@@ -2,15 +2,13 @@ using System;
2
2
 
3
3
  namespace JCMG.EntitasRedux.Commands
4
4
  {
5
- public abstract class ForEachCommandFixedUpdateSystem<TCommand> : CommandFixedUpdateSystem<TCommand>, IUpdateSystem
5
+ public abstract class ForEachFixedUpdateCommandSystem<TCommand> : FixedUpdateCommandSystem<TCommand>
6
6
  where TCommand : struct
7
7
  {
8
- protected ForEachCommandFixedUpdateSystem(ICommandBuffer commandBuffer) : base(commandBuffer)
8
+ protected ForEachFixedUpdateCommandSystem(ICommandBuffer commandBuffer) : base(commandBuffer)
9
9
  {
10
10
  }
11
11
 
12
- public void Update() => ExecuteCommands();
13
-
14
12
  protected sealed override void Execute(Span<TCommand> commands)
15
13
  {
16
14
  foreach (ref var command in commands)
@@ -2,15 +2,13 @@ using System;
2
2
 
3
3
  namespace JCMG.EntitasRedux.Commands
4
4
  {
5
- public abstract class ForEachCommandLateUpdateSystem<TCommand> : CommandLateUpdateSystem<TCommand>, IUpdateSystem
5
+ public abstract class ForEachLateUpdateCommandSystem<TCommand> : LateUpdateCommandSystem<TCommand>
6
6
  where TCommand : struct
7
7
  {
8
- protected ForEachCommandLateUpdateSystem(ICommandBuffer commandBuffer) : base(commandBuffer)
8
+ protected ForEachLateUpdateCommandSystem(ICommandBuffer commandBuffer) : base(commandBuffer)
9
9
  {
10
10
  }
11
11
 
12
- public void Update() => ExecuteCommands();
13
-
14
12
  protected sealed override void Execute(Span<TCommand> commands)
15
13
  {
16
14
  foreach (ref var command in commands)
@@ -2,15 +2,13 @@ using System;
2
2
 
3
3
  namespace JCMG.EntitasRedux.Commands
4
4
  {
5
- public abstract class ForEachCommandUpdateSystem<TCommand> : CommandSystem<TCommand>, IUpdateSystem
5
+ public abstract class ForEachUpdateCommandSystem<TCommand> : UpdateCommandSystem<TCommand>
6
6
  where TCommand : struct
7
7
  {
8
- protected ForEachCommandUpdateSystem(ICommandBuffer commandBuffer) : base(commandBuffer)
8
+ protected ForEachUpdateCommandSystem(ICommandBuffer commandBuffer) : base(commandBuffer)
9
9
  {
10
10
  }
11
11
 
12
- public void Update() => ExecuteCommands();
13
-
14
12
  protected sealed override void Execute(Span<TCommand> commands)
15
13
  {
16
14
  foreach (ref var command in commands)
@@ -1,9 +1,9 @@
1
1
  namespace JCMG.EntitasRedux.Commands
2
2
  {
3
- public abstract class CommandLateUpdateSystem<TCommand> : CommandSystem<TCommand>, ILateUpdateSystem
3
+ public abstract class LateUpdateCommandSystem<TCommand> : CommandSystem<TCommand>, ILateUpdateSystem
4
4
  where TCommand : struct
5
5
  {
6
- protected CommandLateUpdateSystem(ICommandBuffer commandBuffer) : base(commandBuffer)
6
+ protected LateUpdateCommandSystem(ICommandBuffer commandBuffer) : base(commandBuffer)
7
7
  {
8
8
  }
9
9
 
@@ -1,9 +1,9 @@
1
1
  namespace JCMG.EntitasRedux.Commands
2
2
  {
3
- public abstract class CommandUpdateSystem<TCommand> : CommandSystem<TCommand>, IUpdateSystem
3
+ public abstract class UpdateCommandSystem<TCommand> : CommandSystem<TCommand>, IUpdateSystem
4
4
  where TCommand : struct
5
5
  {
6
- protected CommandUpdateSystem(ICommandBuffer commandBuffer) : base(commandBuffer)
6
+ protected UpdateCommandSystem(ICommandBuffer commandBuffer) : base(commandBuffer)
7
7
  {
8
8
  }
9
9
 
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "com.elestrago.unity.entitas-redux",
3
- "version": "3.1.3",
3
+ "version": "3.2.0",
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
- "category": "unity",
6
+ "category": "Unity",
7
7
  "unity": "2022.3",
8
8
  "homepage": "https://gitlab.com/elestrago-pkg/entitas-redux",
9
9
  "documentationUrl": "https://gitlab.com/elestrago-pkg/entitas-redux/-/blob/main/README.md",