public BuildScreenTemplate(BuildMode gamemode, Planet planet, ProductionLine productionLine, BuildPlacer buildPlacer, ShipSectionRenderer shipSectionRenderer) { _planet = planet; _shipSectionRenderer = shipSectionRenderer; _gamemode = gamemode; _productionLine = productionLine; _buildPlacer = buildPlacer; }
public void Initialise() { _triModel = Content.Load <Model>("Models/tri"); _floorModel = Content.Load <Model>("Models/floor2"); _floorModel.EnableDefaultLighting(); _floorModel.SetDiffuseColour(Color.DarkSlateBlue); Entity.Add(new StaticBody(MeshShape.FromModel(_floorModel), (byte)HitLayers.BuildTile, Offset)); //Entity.Add(new StaticBody(MeshShape.FromModel(_triModel), (byte)HitLayers.BuildTile)); _shipRenderer = Entity.Add(new ShipSectionRenderer()); }
public void Initialise() { _shipRenderer = Entity.Add(new ShipSectionRenderer()); FlightSpaces.ShipSpace.Add(Entity); }
public void Initialise() { _shipRenderer = Entity.Add(new ShipSectionRenderer()); }