16 lines
350 B
C#
16 lines
350 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
|
|
namespace DanieleMarotta.RiversongCodeShowcase
|
|
{
|
|
public interface IEntityCache
|
|
{
|
|
void CreateCache<T>(int key, Predicate<T> filter) where T : Entity;
|
|
|
|
List<T> Get<T>(int key) where T : Entity;
|
|
|
|
void OnAdded(Entity entity);
|
|
|
|
void OnRemoved(Entity entity);
|
|
}
|
|
} |