Files
SVSimServer/SVSim.EmulatedEntrypoint/Models/Dtos/UserConfig.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

33 lines
1.2 KiB
C#

using MessagePack;
using System.Text.Json.Serialization;
namespace SVSim.EmulatedEntrypoint.Models.Dtos;
[MessagePackObject]
public class UserConfig
{
[JsonPropertyName("receive_invitation")]
[Key("receive_invitation")]
public int ReceiveInvitation { get; set; }
[JsonPropertyName("receive_invitation_in_battle")]
[Key("receive_invitation_in_battle")]
public int ReceiveInvitationInBattle { get; set; }
[JsonPropertyName("receive_invitation_in_offline")]
[Key("receive_invitation_in_offline")]
public int ReceiveInvitationInOffline { get; set; }
[JsonPropertyName("receive_friend_apply")]
[Key("receive_friend_apply")]
public int ReceiveFriendApply { get; set; }
[JsonPropertyName("is_allow_send_adjust")]
[Key("is_allow_send_adjust")]
public int IsAllowSendAdjust { get; set; }
[JsonPropertyName("is_foil_preferred")]
[Key("is_foil_preferred")]
public int IsFoilPreferred { get; set; }
[JsonPropertyName("is_prize_preferred")]
[Key("is_prize_preferred")]
public int IsPrizePreferred { get; set; }
[JsonPropertyName("is_skip_gacha_effect")]
[Key("is_skip_gacha_effect")]
public int IsSkipGachaEffect { get; set; }
}