com.elestrago.unity.entitas-redux 3.1.4 → 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.
- package/CHANGELOG.md +12 -0
- package/Core/Systems/Commands/CleanupCommandSystem.cs +12 -0
- package/Core/Systems/Commands/CleanupCommandSystem.cs.meta +3 -0
- package/Core/Systems/Commands/{CommandFixedUpdateSystem.cs → FixedUpdateCommandSystem.cs} +3 -3
- package/Core/Systems/Commands/ForEachCleanupCommandSystem.cs +20 -0
- package/Core/Systems/Commands/ForEachCleanupCommandSystem.cs.meta +3 -0
- package/Core/Systems/Commands/{ForEachCommandFixedUpdateSystem.cs → ForEachFixedUpdateCommandSystem.cs} +2 -4
- package/Core/Systems/Commands/{ForEachCommandLateUpdateSystem.cs → ForEachLateUpdateCommandSystem.cs} +2 -4
- package/Core/Systems/Commands/{ForEachCommandUpdateSystem.cs → ForEachUpdateCommandSystem.cs} +2 -4
- package/Core/Systems/Commands/{CommandLateUpdateSystem.cs → LateUpdateCommandSystem.cs} +2 -2
- package/Core/Systems/Commands/{CommandUpdateSystem.cs → UpdateCommandSystem.cs} +2 -2
- package/package.json +1 -1
- /package/Core/Systems/Commands/{CommandFixedUpdateSystem.cs.meta → FixedUpdateCommandSystem.cs.meta} +0 -0
- /package/Core/Systems/Commands/{ForEachCommandFixedUpdateSystem.cs.meta → ForEachFixedUpdateCommandSystem.cs.meta} +0 -0
- /package/Core/Systems/Commands/{ForEachCommandLateUpdateSystem.cs.meta → ForEachLateUpdateCommandSystem.cs.meta} +0 -0
- /package/Core/Systems/Commands/{ForEachCommandUpdateSystem.cs.meta → ForEachUpdateCommandSystem.cs.meta} +0 -0
- /package/Core/Systems/Commands/{CommandLateUpdateSystem.cs.meta → LateUpdateCommandSystem.cs.meta} +0 -0
- /package/Core/Systems/Commands/{CommandUpdateSystem.cs.meta → UpdateCommandSystem.cs.meta} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,18 @@ 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
|
+
|
|
9
21
|
## [3.1.4](https://gitlab.com/elestrago-pkg/entitas-redux/-/tags/3.1.4)
|
|
10
22
|
|
|
11
23
|
### 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
|
+
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
namespace JCMG.EntitasRedux.Commands
|
|
2
2
|
{
|
|
3
|
-
public abstract class
|
|
3
|
+
public abstract class FixedUpdateCommandSystem<TCommand> : CommandSystem<TCommand>, IFixedUpdateSystem
|
|
4
4
|
where TCommand : struct
|
|
5
5
|
{
|
|
6
|
-
protected
|
|
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
|
+
}
|
|
@@ -2,15 +2,13 @@ using System;
|
|
|
2
2
|
|
|
3
3
|
namespace JCMG.EntitasRedux.Commands
|
|
4
4
|
{
|
|
5
|
-
public abstract class
|
|
5
|
+
public abstract class ForEachFixedUpdateCommandSystem<TCommand> : FixedUpdateCommandSystem<TCommand>
|
|
6
6
|
where TCommand : struct
|
|
7
7
|
{
|
|
8
|
-
protected
|
|
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
|
|
5
|
+
public abstract class ForEachLateUpdateCommandSystem<TCommand> : LateUpdateCommandSystem<TCommand>
|
|
6
6
|
where TCommand : struct
|
|
7
7
|
{
|
|
8
|
-
protected
|
|
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)
|
package/Core/Systems/Commands/{ForEachCommandUpdateSystem.cs → ForEachUpdateCommandSystem.cs}
RENAMED
|
@@ -2,15 +2,13 @@ using System;
|
|
|
2
2
|
|
|
3
3
|
namespace JCMG.EntitasRedux.Commands
|
|
4
4
|
{
|
|
5
|
-
public abstract class
|
|
5
|
+
public abstract class ForEachUpdateCommandSystem<TCommand> : UpdateCommandSystem<TCommand>
|
|
6
6
|
where TCommand : struct
|
|
7
7
|
{
|
|
8
|
-
protected
|
|
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
|
|
3
|
+
public abstract class LateUpdateCommandSystem<TCommand> : CommandSystem<TCommand>, ILateUpdateSystem
|
|
4
4
|
where TCommand : struct
|
|
5
5
|
{
|
|
6
|
-
protected
|
|
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
|
|
3
|
+
public abstract class UpdateCommandSystem<TCommand> : CommandSystem<TCommand>, IUpdateSystem
|
|
4
4
|
where TCommand : struct
|
|
5
5
|
{
|
|
6
|
-
protected
|
|
6
|
+
protected UpdateCommandSystem(ICommandBuffer commandBuffer) : base(commandBuffer)
|
|
7
7
|
{
|
|
8
8
|
}
|
|
9
9
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "com.elestrago.unity.entitas-redux",
|
|
3
|
-
"version": "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
6
|
"category": "Unity",
|
/package/Core/Systems/Commands/{CommandFixedUpdateSystem.cs.meta → FixedUpdateCommandSystem.cs.meta}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/Core/Systems/Commands/{CommandLateUpdateSystem.cs.meta → LateUpdateCommandSystem.cs.meta}
RENAMED
|
File without changes
|
|
File without changes
|