Skip to content

Commit

Permalink
made T of ISystem contravariant
Browse files Browse the repository at this point in the history
  • Loading branch information
Doraku committed Jun 24, 2019
1 parent 7ba16de commit 8cd9414
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions source/DefaultEcs/DefaultEcs.Package.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ added EntityDisposed event on World
added WhenAdded, WhenChanged and WhenRemoved filter on EntitySetBuilder to create reactive EntitySet
added WhenAddedAttribute, WhenChangedAttribute and WhenRemovedAttribute for automatique AEntitySystem EntitySet creation from a World
added Complete method on EntitySet to clear its content if created with a reactive filter
made T of ISystem contravariant

breaking changes
removed IEntitySetObserver and implementation, use EntityAdded and EntityRemoved events on EntitySet instead
Expand Down
2 changes: 1 addition & 1 deletion source/DefaultEcs/System/ISystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ namespace DefaultEcs.System
/// Exposes a method to update a system.
/// </summary>
/// <typeparam name="T">The type of the object used as state to update the system.</typeparam>
public interface ISystem<T> : IDisposable
public interface ISystem<in T> : IDisposable
{
/// <summary>
/// Gets or sets whether the current <see cref="ISystem{T}"/> instance should update or not.
Expand Down

0 comments on commit 8cd9414

Please sign in to comment.