Skip to content

Commit

Permalink
Merge pull request #309 from UchuServer/enhancement/racing
Browse files Browse the repository at this point in the history
Racing
  • Loading branch information
teccheck authored Jul 18, 2023
2 parents ec4f2d7 + 9f50063 commit 876189a
Show file tree
Hide file tree
Showing 74 changed files with 5,023 additions and 160 deletions.
7 changes: 7 additions & 0 deletions Uchu.Api/Models/ZoneStatusResponse.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
namespace Uchu.Api.Models
{
public class ZoneStatusResponse : BaseResponse
{
public bool Loaded { get; set; }
}
}
7 changes: 7 additions & 0 deletions Uchu.Core/Database/Models/ActivityScore.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,19 @@ public class ActivityScore

public int Points { get; set; }

// BestTime for racing
public int Time { get; set; }

public long LastPlayed { get; set; }

public int NumPlayed { get; set; }

// Racing
public int BestLapTime { get; set; }

// Racing
public int Wins { get; set; }

// YYYYWW for Weekly leaderboard entries
// 0 for All-time leaderboard entries
public int Week { get; set; }
Expand Down
6 changes: 3 additions & 3 deletions Uchu.Core/Extensions/RakConnectionExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public static void Send(this IRakConnection @this, ISerializable serializable)
if (serializable == null)
throw new ArgumentNullException(nameof(serializable),
ResourceStrings.RakConnectionExtensions_Send_StreamNullException);
Logger.Debug($"Sending {serializable}");
// Logger.Debug($"Sending {serializable}");

using var stream = new MemoryStream();
using var writer = new BitWriter(stream);
Expand Down Expand Up @@ -57,7 +57,7 @@ public static void Send<T>(this IRakConnection @this, T packet) where T : struct
if (@this == null)
throw new ArgumentNullException(nameof(@this),
ResourceStrings.RakConnectionExtensions_Send_ConnectionNullException);
Logger.Debug($"Sending {packet}");
// Logger.Debug($"Sending {packet}");

try
{
Expand All @@ -69,4 +69,4 @@ public static void Send<T>(this IRakConnection @this, T packet) where T : struct
}
}
}
}
}
Loading

0 comments on commit 876189a

Please sign in to comment.