This repository has been archived by the owner on Jan 6, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
85 additions
and
17 deletions.
There are no files selected for viewing
Submodule Centrifuge.Distance
updated
from 17b8e4 to 1247cb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 21 additions & 2 deletions
23
Distance.AdventureMaker/Loader/Steps/CampaignWorkspaceSetup.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,33 @@ | ||
using Centrifuge.Distance.Game; | ||
using Reactor.API.Storage; | ||
using System.Collections; | ||
using System.IO; | ||
using static Distance.AdventureMaker.Loader.CampaignLoaderLogic; | ||
|
||
namespace Distance.AdventureMaker.Loader.Steps | ||
{ | ||
public class CampaignWorkspaceSetup : LoaderTask | ||
{ | ||
public override IEnumerator Run(Task.Status status, CampaignLoader loader) | ||
DirectoryInfo LocalCampaignsFolder; | ||
DirectoryInfo DocumentsCampaignsFolder; | ||
|
||
public CampaignWorkspaceSetup(CampaignLoader loader) : base(loader) | ||
{ | ||
} | ||
|
||
public override IEnumerator Run(Task.Status status) | ||
{ | ||
throw new System.NotImplementedException(); | ||
status.SetText("Creating directory structure..."); | ||
|
||
FileSystem fs = new FileSystem(); | ||
|
||
LocalCampaignsFolder = new DirectoryInfo(Path.Combine(fs.RootDirectory, "Campaigns")); | ||
LocalCampaignsFolder.CreateIfDoesntExist(); | ||
|
||
DocumentsCampaignsFolder = new DirectoryInfo(Path.Combine(Resource.personalDistanceDirPath_, "Campaigns")); | ||
DocumentsCampaignsFolder.CreateIfDoesntExist(); | ||
|
||
yield break; | ||
} | ||
} | ||
} |