public IEntityCollection CreateCollection(string name)
        {
            var pool = EntityCollectionFactory.Create(name);

            _pools.Add(name, pool);

            EventSystem.Publish(new PoolAddedEvent(pool));

            return(pool);
        }
Exemple #2
0
        public IEntityCollection CreateCollection(int id)
        {
            var collection = EntityCollectionFactory.Create(id);

            _collections.Add(collection);
            SubscribeToCollection(collection);

            _onCollectionAdded.OnNext(collection);

            return(collection);
        }
Exemple #3
0
        public IEntityCollection CreateCollection(string name)
        {
            var collection = EntityCollectionFactory.Create(name);

            _collections.Add(name, collection);
            SubscribeToCollection(collection);

            _onCollectionAdded.OnNext(collection);

            return(collection);
        }