Skip to content
This repository has been archived by the owner on Jan 6, 2022. It is now read-only.

Commit

Permalink
Draft for campaign loader process
Browse files Browse the repository at this point in the history
  • Loading branch information
REHERC committed Apr 25, 2021
1 parent 14b5471 commit 71547e3
Show file tree
Hide file tree
Showing 6 changed files with 42 additions and 1 deletion.
5 changes: 5 additions & 0 deletions Distance.AdventureMaker/Distance.AdventureMaker.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,11 @@
</ItemGroup>
<ItemGroup>
<Compile Include="ApplicationArguments.cs" />
<Compile Include="Loader\CampaignLoaderLogic.cs" />
<Compile Include="Entry.cs" />
<Compile Include="Loader\Steps\CampaignReader.cs" />
<Compile Include="Loader\Steps\CampaignExtractor.cs" />
<Compile Include="Loader\Steps\CampaignListing.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
Expand All @@ -109,6 +113,7 @@
<Name>Centrifuge.Distance</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup />
<Import Project="..\Common.Distance.AdventureMaker\Common.Distance.AdventureMaker.projitems" Label="Shared" />
<Import Project="..\Common.Json\Common.Json.projitems" Label="Shared" />
<Import Project="..\Common.SharpCompress\Common.SharpCompress.projitems" Label="Shared" />
Expand Down
8 changes: 7 additions & 1 deletion Distance.AdventureMaker/Entry.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using Events.MainMenu;
using Distance.AdventureMaker.Loader;
using Events.MainMenu;
using Reactor.API.Attributes;
using Reactor.API.Interfaces.Systems;
using Reactor.API.Logging;
Expand All @@ -18,13 +19,18 @@ public class Mod : MonoBehaviour

public ApplicationArguments StartParameters { get; set; }

private CampaignLoaderLogic CampaignLoader { get; set; }

public void Initialize(IManager manager)
{
DontDestroyOnLoad(this);

Instance = this;
Manager = manager;
Logger = LogManager.GetForCurrentAssembly();

CampaignLoader = gameObject.AddComponent<CampaignLoaderLogic>();

StartParameters = ApplicationArguments.Parse();

RuntimePatcher.AutoPatch();
Expand Down
12 changes: 12 additions & 0 deletions Distance.AdventureMaker/Loader/CampaignLoaderLogic.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
using Distance.AdventureMaker.Loader.Steps;
using UnityEngine;

namespace Distance.AdventureMaker.Loader
{
public class CampaignLoaderLogic : MonoBehaviour
{
private CampaignListing listing;
private CampaignExtractor extractor;
private CampaignReader reader;
}
}
6 changes: 6 additions & 0 deletions Distance.AdventureMaker/Loader/Steps/CampaignExtractor.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
namespace Distance.AdventureMaker.Loader.Steps
{
public class CampaignExtractor
{
}
}
6 changes: 6 additions & 0 deletions Distance.AdventureMaker/Loader/Steps/CampaignListing.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
namespace Distance.AdventureMaker.Loader.Steps
{
public class CampaignListing
{
}
}
6 changes: 6 additions & 0 deletions Distance.AdventureMaker/Loader/Steps/CampaignReader.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
namespace Distance.AdventureMaker.Loader.Steps
{
public class CampaignReader
{
}
}

0 comments on commit 71547e3

Please sign in to comment.