public IEntityCollection CreateCollection(string name) { var pool = EntityCollectionFactory.Create(name); _pools.Add(name, pool); EventSystem.Publish(new PoolAddedEvent(pool)); return(pool); }
public IEntityCollection CreateCollection(int id) { var collection = EntityCollectionFactory.Create(id); _collections.Add(collection); SubscribeToCollection(collection); _onCollectionAdded.OnNext(collection); return(collection); }
public IEntityCollection CreateCollection(string name) { var collection = EntityCollectionFactory.Create(name); _collections.Add(name, collection); SubscribeToCollection(collection); _onCollectionAdded.OnNext(collection); return(collection); }