protected override object CreateDataSource(string name, Type type, NamedParameters ctorArgs)
        {
            if (type == typeof(IPriceSeriesDataSource))
            {
                var realDS    = RealFactory.Create <IEnumerableDataSource <SimplePrice> >(name, ctorArgs);
                var operators = GetOperatorsForDataSource(name);
                return(new PriceSeriesDataSource(realDS, operators));
            }

            return(RealFactory.Create(name, type, ctorArgs));
        }
        /// <summary>
        /// Build a building
        /// </summary>
        public void PlaceBuilding(Vector2Int _gridPos, BuildingType _buildingType)
        {
            //buildings
            IBuilding building = buildingFactory.Create(_buildingType, _gridPos, -0.6f);

            buildings.Add(building);
            highlightTiles.Reset();

            Vector2Int extents = new Vector2Int(_gridPos.x + building.Width, _gridPos.y + building.Height);

            for (int y = _gridPos.y; y < extents.y; y++)
            {
                for (int x = _gridPos.x; x < extents.x; x++)
                {
                    tiles[x, y].Empty = false;
                }
            }
        }