24 lines
494 B
C#
24 lines
494 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
|
|
namespace DanieleMarotta.RiversongCodeShowcase
|
|
{
|
|
public interface IEntityCollection
|
|
{
|
|
T Create<T>() where T : Entity, new();
|
|
|
|
void Add(Entity entity);
|
|
|
|
Entity Remove(int id);
|
|
|
|
bool Exists(int id);
|
|
|
|
Entity Get(int id);
|
|
|
|
Type GetEntityType(int id);
|
|
|
|
public List<Entity> GetInternalEntityList(Type type);
|
|
|
|
public IEntityCollectionCallbacks<T> On<T>() where T : Entity;
|
|
}
|
|
} |