mirror of
https://github.com/DorkSquadRR/DorkNet.git
synced 2026-10-26 07:28:45 -07:00
Add game configuration management: implement endpoints for retrieving and updating discovered game configurations; enhance database schema and UI integration
This commit is contained in:
@@ -611,6 +611,7 @@ public class DorkNetDbContext(DbContextOptions<DorkNetDbContext> options) : DbCo
|
||||
e.Property(s => s.WeeklyChallengeRewardJson).HasDefaultValue(string.Empty);
|
||||
e.Property(s => s.PlayMenuTagsJson).HasDefaultValue(string.Empty);
|
||||
e.Property(s => s.RecCenterDoorsJson).HasDefaultValue(string.Empty);
|
||||
e.Property(s => s.DiscoveredGameConfigsJson).HasDefaultValue(string.Empty);
|
||||
});
|
||||
|
||||
modelBuilder.Entity<RoomKeyEntity>(e =>
|
||||
|
||||
@@ -48,5 +48,11 @@ public class ServerSettingsEntity
|
||||
/// Door.{Category}.Title and Door.{Category}.Query entries.</summary>
|
||||
public string RecCenterDoorsJson { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>Admin-managed values for GameConfig keys confirmed in
|
||||
/// the 2020.12 decomp. Kept typed in the admin API; stored as JSON
|
||||
/// here so newly discovered built-in keys do not require a table
|
||||
/// migration each time.</summary>
|
||||
public string DiscoveredGameConfigsJson { get; set; } = string.Empty;
|
||||
|
||||
public DateTime UpdatedAt { get; set; } = DateTime.UtcNow;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user