Пример #1
0
 public BuildScreenTemplate(BuildMode gamemode, Planet planet, ProductionLine productionLine, BuildPlacer buildPlacer, ShipSectionRenderer shipSectionRenderer)
 {
     _planet = planet;
     _shipSectionRenderer = shipSectionRenderer;
     _gamemode            = gamemode;
     _productionLine      = productionLine;
     _buildPlacer         = buildPlacer;
 }
Пример #2
0
        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());
        }
Пример #3
0
 public void Initialise()
 {
     _shipRenderer = Entity.Add(new ShipSectionRenderer());
     FlightSpaces.ShipSpace.Add(Entity);
 }
Пример #4
0
 public void Initialise()
 {
     _shipRenderer = Entity.Add(new ShipSectionRenderer());
 }