Files
SVSimServer/SVSim.Database/Models/ViewerInfo.cs
gamer147 715dd4dea8 feat(config): wire /config/update + /config/update_challenge_config (closes family 4/4)
is_skip_gacha_effect, use_challenge_two_pick_premium_card, and
challenge_two_pick_sleeve_id all persist on ViewerInfo and round-trip
through /load/index.

The two challenge fields move from the global ChallengeConfig section to
ViewerInfo — they're viewer preferences, not server-wide policy. Premium
card defaults to 0; sleeve falls back to DefaultLoadoutConfig.SleeveId
(3000011) when unset. MatchContextBuilder's TK2 sleeve read switches to
the same viewer-scoped path.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-13 11:25:40 -04:00

26 lines
802 B
C#

using Microsoft.EntityFrameworkCore;
namespace SVSim.Database.Models;
[Owned]
public class ViewerInfo
{
public DateTime BirthDate { get; set; }
public string CountryCode { get; set; } = string.Empty;
public int MaxFriends { get; set; }
public bool IsOfficial { get; set; }
public bool IsOfficialMarkDisplayed { get; set; }
public bool IsFoilPreferred { get; set; }
public bool IsPrizePreferred { get; set; }
public bool IsSkipGachaEffect { get; set; }
public bool UseChallengeTwoPickPremiumCard { get; set; }
public long ChallengeTwoPickSleeveId { get; set; }
#region Navigation Properties
public EmblemEntry SelectedEmblem { get; set; } = new EmblemEntry();
public DegreeEntry SelectedDegree { get; set; } = new DegreeEntry();
#endregion
}