Esempio n. 1
0
    public SettlementData CreateSaveData()
    {
        var cosmicPortData  = CosmicPort.CreateSaveData();
        var manufactoryData = Manufactory.CreateSaveData();
        var starLabsData    = StarLabs.CreateSaveData();
        // FIXME: temporary (will modify since the resources are updated directly from the playerDataManager's settlements data
        var productionData = new ProductionData(0, new List <Resource>());
        var resources      = ResourcesModule.resources;

        var studiesSaveData = StudiesManager.Instance.CreatSaveData();

        var settlementData = new SettlementData(planet, cosmicPortData, manufactoryData, starLabsData, studiesSaveData, productionData, resources);

        return(settlementData);
    }
    public void BuildDock()
    {
        CloseBuildDockView();

        CosmicPort.StartBuildingDock(selectableController.GetSelectedCell().data.dock);
    }