Example #1
0
        public void ShipComponentAdded(IBlueprint blueprint, Coordinate position)
        {
            var shipComponent = blueprint.GetBlock(position).ShipComponent;

            objectTable.SetShipComponent(position, shipComponentFactory.Create(shipComponent));
            objectTable.GetShipComponent(position).Position = objectTable.GetTile(position).Position;
            objectTable.GetShipComponent(position).Scale    = objectTable.GetTile(position).Scale;
            controller.AssignShipComponentControl(objectTable.GetShipComponent(position), position);
            UpdateTiles();
        }
 public IConstBlock GetBlock(Coordinate position)
 {
     return(blueprint.GetBlock(position));
 }