-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update to 1.5, add P5R & PKG building
- Loading branch information
Showing
20 changed files
with
401 additions
and
81 deletions.
There are no files selected for viewing
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
33 changes: 33 additions & 0 deletions
33
Source/ModCompendiumLibrary/Configuration/GameConfigs/PKGGameConfig.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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
using System.Xml.Linq; | ||
|
||
namespace ModCompendiumLibrary.Configuration | ||
{ | ||
public abstract class PKGGameConfig : GameConfig | ||
{ | ||
protected PKGGameConfig() | ||
{ | ||
PKGPath = string.Empty; | ||
Compression = "True"; | ||
} | ||
|
||
public string PKGPath { get; set; } | ||
public string Compression { get; set; } | ||
|
||
protected override void DeserializeCore(XElement element) | ||
{ | ||
PKGPath = element.GetElementValueOrEmpty(nameof(PKGPath)); | ||
Compression = element.GetElementValueOrEmpty(nameof(Compression)); | ||
} | ||
|
||
protected override void SerializeCore(XElement element) | ||
{ | ||
element.AddNameValuePair(nameof(PKGPath), PKGPath); | ||
element.AddNameValuePair(nameof(Compression), Compression); | ||
} | ||
|
||
public class Persona5RoyalGameConfig : PKGGameConfig | ||
{ | ||
public override Game Game => Game.Persona5Royal; | ||
} | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
Source/ModCompendiumLibrary/Configuration/GameConfigs/Persona5RoyalGameConfig.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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
using System.Xml.Linq; | ||
|
||
namespace ModCompendiumLibrary.Configuration | ||
{ | ||
public class Persona5RoyalGameConfig : PKGGameConfig | ||
{ | ||
public override Game Game => Game.Persona5Royal; | ||
|
||
} | ||
} |
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
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
Oops, something went wrong.