-
Notifications
You must be signed in to change notification settings - Fork 0
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
1 parent
49fad0e
commit d62d0aa
Showing
34 changed files
with
453 additions
and
232 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,11 @@ | ||
namespace E5Renewer | ||
{ | ||
/// <summary>Constraints container.</summary> | ||
public static class Constraints | ||
{ | ||
/// <value>The time format in log.</value> | ||
public const string loggingTimeFormat = "yyyy-MM-dd HH:mm:ss "; | ||
/// <value>The log level.</value> | ||
public static LogLevel loggingLevel = LogLevel.Information; | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,12 @@ | ||
namespace E5Renewer.Config | ||
{ | ||
/// <summary>The interface of object has a bool property named <c>check</c>.</summary> | ||
public interface ICheckable | ||
{ | ||
/// <value><br/> | ||
/// The <c>check</c> property.<br/> | ||
/// It shows that if this object is correct. | ||
/// </value> | ||
public bool check { get; } | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
namespace E5Renewer.Exceptions | ||
{ | ||
/// <summary>The Exception that is thown when config is invalid.</summary> | ||
public class InvalidConfigException : ArgumentException | ||
{ | ||
/// <summary>Initialize <c>InvalidConfigException</c> by using message.</summary> | ||
public InvalidConfigException(string msg) : base(msg) { } | ||
} | ||
} |
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,7 +1,9 @@ | ||
namespace E5Renewer.Exceptions | ||
{ | ||
/// <summary>The Exception is thown when no <c>ConfigParser</c> is found for config path given.</summary> | ||
public class NoParserFoundException : Exception | ||
{ | ||
/// <summary>Initialize <c>NoParserFoundException</c> from config path.</summary> | ||
public NoParserFoundException(string configName) : base(string.Format("No Parser found for config {0}", configName)) { } | ||
} | ||
} |
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,7 +1,9 @@ | ||
namespace E5Renewer.Exceptions | ||
{ | ||
/// <summary>The Exception is thown when generic runtime error happend.</summary> | ||
public class RuntimeException : Exception | ||
{ | ||
/// <summary>Initialize <c>RuntimeException</c> from message.</summary> | ||
public RuntimeException(string msg) : base(msg) { } | ||
} | ||
} |
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,11 +1,16 @@ | ||
namespace E5Renewer.Modules | ||
{ | ||
/// <summary>The api interface of loadable module.</summary> | ||
public interface IModule | ||
{ | ||
private readonly static SemVer targetSemVer = new SemVer(0,1,0); | ||
public string name{ get; } | ||
public string author{ get; } | ||
private readonly static SemVer targetSemVer = new SemVer(0, 1, 0); | ||
/// <value>The name of the module.</value> | ||
public string name { get; } | ||
/// <value>The author of the module.</value> | ||
public string author { get; } | ||
/// <value>The api version of the module.</value> | ||
public SemVer apiVersion { get; } | ||
public bool IsDeprecated { get => apiVersion < targetSemVer; } | ||
/// <value> If the module is deprecated.</value> | ||
public bool isDeprecated { get => !apiVersion.IsCompatibleTo(targetSemVer); } | ||
} | ||
} |
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,5 +1,6 @@ | ||
namespace E5Renewer.Modules | ||
{ | ||
/// <summary>The attribute to mark module class.</summary> | ||
[AttributeUsage(AttributeTargets.Class)] | ||
public class ModuleAttribute : Attribute {} | ||
public class ModuleAttribute : Attribute { } | ||
} |
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.