-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from BigBang1112/dev
Randomizer TMF 1.1.0
- Loading branch information
Showing
83 changed files
with
7,334 additions
and
1,904 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
using System.Text.RegularExpressions; | ||
|
||
namespace RandomizerTMF.Logic; | ||
|
||
internal static partial class CompiledRegex | ||
{ | ||
[GeneratedRegex("[^a-zA-Z0-9_.]+")] | ||
public static partial Regex SpecialCharRegex(); | ||
} |
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
namespace RandomizerTMF.Logic; | ||
|
||
public class DiscordRichPresenceConfig | ||
{ | ||
public bool Disable { get; set; } | ||
public bool DisableMapThumbnail { get; set; } | ||
} |
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,44 @@ | ||
using Microsoft.Extensions.Logging; | ||
|
||
namespace RandomizerTMF.Logic; | ||
|
||
internal class DiscordRpcLogger : DiscordRPC.Logging.ILogger | ||
{ | ||
private readonly ILogger logger; | ||
|
||
public DiscordRpcLogger(ILogger logger) | ||
{ | ||
this.logger = logger; | ||
} | ||
|
||
public DiscordRPC.Logging.LogLevel Level { get; set; } = DiscordRPC.Logging.LogLevel.Info; | ||
|
||
public void Error(string message, params object[] args) | ||
{ | ||
using var _ = CreateScope(); | ||
logger.LogError(message, args); | ||
} | ||
|
||
public void Info(string message, params object[] args) | ||
{ | ||
using var _ = CreateScope(); | ||
logger.LogInformation(message, args); | ||
} | ||
|
||
public void Trace(string message, params object[] args) | ||
{ | ||
// using var _ = CreateScope(); | ||
// logger.LogTrace(message, args); | ||
} | ||
|
||
public void Warning(string message, params object[] args) | ||
{ | ||
using var _ = CreateScope(); | ||
logger.LogWarning(message, args); | ||
} | ||
|
||
private IDisposable? CreateScope() | ||
{ | ||
return logger.BeginScope("Discord RPC"); | ||
} | ||
} |
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,6 @@ | ||
namespace RandomizerTMF.Logic | ||
namespace RandomizerTMF.Logic; | ||
|
||
public interface ISessionMap | ||
{ | ||
public interface ISessionMap | ||
{ | ||
TimeSpan? LastTimestamp { get; set; } | ||
} | ||
TimeSpan? LastTimestamp { get; set; } | ||
} |
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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
Rally: | ||
- [10, 18, 150] | ||
- [20, 18, 60] | ||
- [30, 18, 30] | ||
- [32, 12, 32] | ||
- [45, 18, 45] | ||
Island: | ||
- [36, 36, 36] | ||
- [45, 36, 45] | ||
Speed: | ||
- [10, 18, 150] | ||
- [20, 18, 60] | ||
- [30, 18, 30] | ||
- [32, 12, 32] | ||
- [45, 18, 45] | ||
Stadium: | ||
- [32, 32, 32] | ||
Coast: | ||
- [36, 36, 36] | ||
- [45, 36, 45] | ||
Alpine: | ||
- [10, 18, 150] | ||
- [20, 18, 60] | ||
- [30, 18, 30] | ||
- [32, 12, 32] | ||
- [45, 18, 45] | ||
Bay: | ||
- [36, 36, 36] | ||
- [45, 36, 45] |
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 was deleted.
Oops, something went wrong.
Oops, something went wrong.