18 lines
378 B
C#
18 lines
378 B
C#
using System;
|
|
|
|
namespace DanieleMarotta.RiversongCodeShowcase
|
|
{
|
|
public interface IEntityCollectionCallbacks
|
|
{
|
|
public void OnAdded(Entity entity);
|
|
|
|
public void OnRemoved(Entity entity);
|
|
}
|
|
|
|
public interface IEntityCollectionCallbacks<out T> : IEntityCollectionCallbacks
|
|
{
|
|
event Action<T> Added;
|
|
|
|
event Action<T> Removed;
|
|
}
|
|
} |