mirror of
https://git.lewd.wtf/PGR/ascnet
synced 2025-12-13 09:04:39 +01:00
PreFightResponse data from DB
This commit is contained in:
@@ -21,6 +21,7 @@ namespace AscNet.Common.Database
|
||||
{
|
||||
Stage stage = new()
|
||||
{
|
||||
Uid = uid,
|
||||
Stages = new()
|
||||
};
|
||||
foreach (var guideFight in GuideFightTableReader.Instance.All)
|
||||
|
||||
@@ -2,6 +2,14 @@
|
||||
{
|
||||
public static class Miscs
|
||||
{
|
||||
public static int ParseIntOr(string? s, int d)
|
||||
{
|
||||
if (int.TryParse(s, out var parsed))
|
||||
{
|
||||
return parsed;
|
||||
}
|
||||
return d;
|
||||
}
|
||||
public static byte[] HexStringToByteArray(string hex)
|
||||
{
|
||||
if (hex.Length % 2 == 1)
|
||||
|
||||
Reference in New Issue
Block a user