{"TotalCount":75,"Files":[{"Ident":"waypoint.dropout","Path":"styles/base/_navigator.scss","FileName":"_navigator.scss","PackageType":"game","CodeKind":"Game","AssetVersionId":307399,"IsPrivate":false,"Code":".navigator-body\r\n{\r\n\t\u0026.hidden\r\n\t{\r\n\t\tdisplay: none;\r\n\t}\r\n}\r\n"},{"Ident":"waypoint.dropout","Path":"ui/controlsheet/controlsheetgroup.cs.scss","FileName":"controlsheetgroup.cs.scss","PackageType":"game","CodeKind":"Game","AssetVersionId":307399,"IsPrivate":false,"Code":".controlgroup\r\n{\r\n\tborder-radius: 8px;\r\n\tpadding: 0.5rem;\r\n\tflex-direction: column;\r\n\tflex-shrink: 0;\r\n\r\n\t\u0026.hidden\r\n\t{\r\n\t\tdisplay: none;\r\n\t}\r\n}\r\n\r\n.controlgroup \u003E .header\r\n{\r\n\tfont-weight: 550;\r\n\tcolor: #fff;\r\n\tflex-shrink: 0;\r\n\tpadding: 8px 0;\r\n\ttext-shadow: 1px 1px 1px #0004;\r\n}\r\n\r\n.controlgroup \u003E .body\r\n{\r\n\tflex-direction: column;\r\n\tflex-shrink: 0;\r\n\tgap: 2px;\r\n\tpadding-left: 16px;\r\n\r\n\t\u0026.hidden\r\n\t{\r\n\t\tdisplay: none;\r\n\t}\r\n}"},{"Ident":"waypoint.dropout","Path":"ui/controlsheet/controlsheetgroupheader.cs.scss","FileName":"controlsheetgroupheader.cs.scss","PackageType":"game","CodeKind":"Game","AssetVersionId":307399,"IsPrivate":false,"Code":"ControlSheetGroupHeader\r\n{\r\n\tfont-size: 1.33rem;\r\n\tcolor: red;\r\n\tgap: 2px;\r\n\talign-items: center;\r\n\r\n\t\u0026.hidden\r\n\t{\r\n\t\tdisplay: none;\r\n\t}\r\n\r\n\t\u003E .title\r\n\t{\r\n\t\tfont-weight: 600;\r\n\t}\r\n\r\n\t\u0026.has-toggle\r\n\t{\r\n\t\tcursor: pointer;\r\n\t\topacity: 0.8;\r\n\r\n\t\t\u0026:before\r\n\t\t{\r\n\t\t\tcontent: \u0027 \u0027;\r\n\t\t\twidth: 22px;\r\n\t\t\theight: 22px;\r\n\t\t\tbackground-color: #000a;\r\n\t\t\talign-items: center;\r\n\t\t\tjustify-content: center;\r\n\t\t\ttext-align: center;\r\n\t\t\tborder-radius: 5px;\r\n\t\t\tborder: 1px solid #555;\r\n\t\t}\r\n\r\n\t\t\u0026:hover\r\n\t\t{\r\n\t\t\topacity: 1;\r\n\r\n\t\t\t\u0026:before\r\n\t\t\t{\r\n\t\t\t\tborder-color: #888;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t\u0026.checked\r\n\t\t{\r\n\t\t\t\u003E .title\r\n\t\t\t{\r\n\t\t\t\tcolor: white;\r\n\t\t\t}\r\n\r\n\t\t\t\u0026:before\r\n\t\t\t{\r\n\t\t\t\tcontent: \u0027\u2713\u0027;\r\n\t\t\t\tfont-weight: bold;\r\n\t\t\t\tcolor: #08f;\r\n\t\t\t\tborder-color: #08f;\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n}\r\n"},{"Ident":"waypoint.dropout","Path":"ui/spectatorui.razor.scss","FileName":"spectatorui.razor.scss","PackageType":"game","CodeKind":"Game","AssetVersionId":307399,"IsPrivate":false,"Code":"SpectatorUI {\r\n    .spectator {\r\n        position: absolute;\r\n        bottom: 48px;\r\n        left: 0;\r\n        right: 0;\r\n        flex-direction: column;\r\n        align-items: center;\r\n        font-family: Poppins;\r\n        color: white;\r\n        text-shadow: 0px 2px 12px rgba(#000, 0.8);\r\n\r\n        .spectator-target {\r\n            font-size: 28px;\r\n            font-weight: 700;\r\n            margin-bottom: 8px;\r\n        }\r\n\r\n        .spectator-hints {\r\n            flex-direction: row;\r\n            align-items: center;\r\n\r\n            .hint {\r\n                background: rgba(#000, 0.55);\r\n                border-radius: 16px;\r\n                padding: 8px;\r\n                font-size: 18px;\r\n                font-weight: 500;\r\n                margin: 0 12px;\r\n                align-items: center;\r\n\r\n                .glyph {\r\n                    width: 64px;\r\n                    height: 64px;\r\n                }\r\n\r\n                \u0026.hint-prev {\r\n                    padding-left: 16px;\r\n                    padding-right: 8px;\r\n                }\r\n\r\n                \u0026.hint-next {\r\n                    padding-left: 8px;\r\n                    padding-right: 16px;\r\n                }\r\n            }\r\n        }\r\n    }\r\n\r\n    .results {\r\n        position: absolute;\r\n        top: 0;\r\n        left: 0;\r\n        right: 0;\r\n        bottom: 0;\r\n        pointer-events: none;\r\n\r\n        .results-name {\r\n            position: absolute;\r\n            top: 48px;\r\n            left: 0;\r\n            right: 0;\r\n            flex-direction: row;\r\n            justify-content: center;\r\n            font-family: Poppins;\r\n            font-size: 144px;\r\n            font-weight: 900;\r\n            color: #FFD700;\r\n            letter-spacing: 6px;\r\n            text-shadow: 0px 6px 24px rgba(#000, 0.85);\r\n        }\r\n\r\n        .results-wins {\r\n            position: absolute;\r\n            bottom: 96px;\r\n            left: 0;\r\n            right: 0;\r\n            flex-direction: row;\r\n            justify-content: center;\r\n            font-family: Poppins;\r\n            font-size: 96px;\r\n            font-weight: 900;\r\n            color: white;\r\n            letter-spacing: 8px;\r\n            text-shadow: 0px 6px 24px rgba(#000, 0.85);\r\n        }\r\n\r\n        .results-countdown {\r\n            position: absolute;\r\n            bottom: 48px;\r\n            left: 0;\r\n            right: 0;\r\n            flex-direction: row;\r\n            justify-content: center;\r\n            font-family: Poppins;\r\n            font-size: 24px;\r\n            font-weight: 500;\r\n            color: white;\r\n            text-shadow: 0px 2px 12px rgba(#000, 0.8);\r\n            opacity: 0.85;\r\n        }\r\n    }\r\n}"},{"Ident":"waypoint.dropout","Path":"audio/Music.cs","FileName":"Music.cs","PackageType":"game","CodeKind":"Game","AssetVersionId":307399,"IsPrivate":false,"Code":"using Sandbox;\r\n\r\npublic sealed class Music : Component\r\n{\r\n\t[Property] public SoundPointComponent SoundPoint { get; set; }\r\n\t[Property] public float FadeInDuration { get; set; } = 3f;\r\n\t[Property] public float FadeOutDuration { get; set; } = 3f;\r\n\t[Property] public bool AutoFadeIn { get; set; } = true;\r\n\r\n\tprivate float mutedVolume = 0f;\r\n\tprivate float maxVolume = 1f;\r\n\r\n\tpublic bool IsFadingIn { get; private set; } = false;\r\n\tpublic bool IsFadingOut { get; private set; } = false;\r\n\tpublic bool IsFinished { get; private set; } = false;\r\n\r\n\tprotected override void OnAwake()\r\n\t{\r\n\t\tSoundPoint.Volume = mutedVolume;\r\n\r\n\t\tif ( AutoFadeIn )\r\n\t\t{\r\n\t\t\tFadeIn();\r\n\t\t}\r\n\t}\r\n\r\n\tpublic void FadeIn()\r\n\t{\r\n\t\tIsFinished = false;\r\n\t\tIsFadingOut = false;\r\n\t\tIsFadingIn = true;\r\n\t}\r\n\r\n\tpublic void FadeOut()\r\n\t{\r\n\t\tIsFinished = false;\r\n\t\tIsFadingIn = false;\r\n\t\tIsFadingOut = true;\r\n\t}\r\n\r\n\tprotected override void OnFixedUpdate()\r\n\t{\r\n\t\tif ( IsFadingIn )\r\n\t\t{\r\n\t\t\tif ( SoundPoint.Volume \u003E= maxVolume )\r\n\t\t\t{\r\n\t\t\t\tIsFadingIn = false;\r\n\t\t\t\tIsFinished = true;\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\r\n\t\t\tSoundPoint.Volume = SoundPoint.Volume.LerpTo( maxVolume, Time.Delta / FadeInDuration );\r\n\t\t}\r\n\t\telse if ( IsFadingOut )\r\n\t\t{\r\n\t\t\tif ( SoundPoint.Volume \u003C= mutedVolume )\r\n\t\t\t{\r\n\t\t\t\tIsFadingOut = false;\r\n\t\t\t\tIsFinished = true;\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\r\n\t\t\tSoundPoint.Volume = SoundPoint.Volume.LerpTo( mutedVolume, Time.Delta / FadeOutDuration );\r\n\t\t}\r\n\t}\r\n}\r\n"},{"Ident":"waypoint.dropout","Path":"game/KillBox.cs","FileName":"KillBox.cs","PackageType":"game","CodeKind":"Game","AssetVersionId":307399,"IsPrivate":false,"Code":"public sealed class KillBox : Component, Component.ITriggerListener\r\n{\r\n    [Property] public GameManager GameManager { get; set; }\r\n\r\n    public void OnTriggerEnter( Collider other )\r\n    {\r\n        if ( !Networking.IsHost ) return;\r\n        if ( !other.GameObject.Tags.Has( \u0022player\u0022 ) ) return;\r\n\r\n        var player = other.GameObject.Root.GetComponent\u003CPlayerController\u003E();\r\n        if ( player == null ) return;\r\n\r\n        if ( GameManager.IsValid() )\r\n        {\r\n            GameManager.PlayerEliminated( player );\r\n        }\r\n    }\r\n}\r\n"},{"Ident":"waypoint.dropout","Path":"game/WinnerFocusCam.cs","FileName":"WinnerFocusCam.cs","PackageType":"game","CodeKind":"Game","AssetVersionId":307399,"IsPrivate":false,"Code":"using System;\r\n\r\n/// \u003Csummary\u003E\r\n/// Cinematic camera that takes over during the post-game results phase. Lives on the\r\n/// main camera GameObject alongside \u003Csee cref=\u0022SpectatorMode\u0022/\u003E. Activates on every\r\n/// client whenever \u003Csee cref=\u0022VictoryManager.IsShowingResults\u0022/\u003E is true and a Winner is set.\r\n///\r\n/// Behavior: starts in front of the winner (looking at their face), sways gently\r\n/// side-to-side, and dollies in over the results duration for a hero-shot.\r\n/// \u003C/summary\u003E\r\npublic sealed class WinnerFocusCam : Component\r\n{\r\n    // Dolly distance from winner in units; lerps Start -\u003E End across the results window.\r\n    private const float DistanceStart = 140f;\r\n    private const float DistanceEnd = 110f;\r\n\r\n    // Height is relative to the lookAt point (winner chest level): 0 = straight-on,\r\n    // negative = camera below winner looking up. Lerps Start -\u003E End across the results window.\r\n    private const float HeightStart = 10f;\r\n    private const float HeightEnd = -15f;\r\n\r\n    // A simple camera sweep left/right of the winner.\r\n    private const float SwayAmplitude = 15f;   // degrees off-center each direction\r\n    private const float SwayPeriod = 8f;       // seconds for one full left-right-back cycle\r\n\r\n    private float _baseYaw;\r\n    private float _startTime;\r\n    private bool _hasCapturedYaw;\r\n\r\n    protected override void OnUpdate()\r\n    {\r\n        VictoryManager victory = VictoryManager.Current;\r\n        GameObject winner = (victory != null \u0026\u0026 victory.IsShowingResults) ? victory.Winner : null;\r\n\r\n        if ( !winner.IsValid() )\r\n        {\r\n            _hasCapturedYaw = false;\r\n            return;\r\n        }\r\n\r\n        CameraComponent camera = Scene.Camera;\r\n        if ( !camera.IsValid() ) return;\r\n\r\n        if ( !_hasCapturedYaw )\r\n        {\r\n            _hasCapturedYaw = true;\r\n            // PlayerController is disabled on freeze \u2014 pass true to GetComponent so we can\r\n            // still find it. Renderer is the SkinnedModelRenderer whose GameObject rotation\r\n            // is the visual facing.\r\n            PlayerController pc = winner.GetComponent\u003CPlayerController\u003E( true );\r\n            Rotation rendererRotation = (pc?.Renderer.IsValid() == true) ? pc.Renderer.WorldRotation : winner.WorldRotation;\r\n            _baseYaw = rendererRotation.Yaw() \u002B 180f;\r\n            _startTime = Time.Now;\r\n        }\r\n\r\n        float elapsed = Time.Now - _startTime;\r\n        float swayPhase = (elapsed / SwayPeriod) * MathF.PI * 2f;\r\n        float yaw = _baseYaw \u002B MathF.Sin( swayPhase ) * SwayAmplitude;\r\n\r\n        // Dolly-in: lerp distance \u002B height across the results window using the synced timer.\r\n        float remaining = (float)victory.ResultsTimer;\r\n        float t = Math.Clamp( 1f - (remaining / VictoryManager.ResultsDuration), 0f, 1f );\r\n        float distance = MathX.Lerp( DistanceStart, DistanceEnd, t );\r\n        float height = MathX.Lerp( HeightStart, HeightEnd, t );\r\n\r\n        Rotation rotation = new Angles( 0f, yaw, 0f ).ToRotation();\r\n        Vector3 lookAt = winner.WorldPosition \u002B Vector3.Up * 60f;\r\n        Vector3 camPos = lookAt \u002B rotation.Forward * -distance \u002B Vector3.Up * height;\r\n\r\n        camera.WorldPosition = camPos;\r\n        camera.WorldRotation = Rotation.LookAt( (lookAt - camPos).Normal );\r\n    }\r\n}\r\n"},{"Ident":"waypoint.dropout","Path":"managers/VictoryManager.cs","FileName":"VictoryManager.cs","PackageType":"game","CodeKind":"Game","AssetVersionId":307399,"IsPrivate":false,"Code":"using System;\r\nusing System.Collections.Generic;\r\nusing Sandbox;\r\n\r\n/// \u003Csummary\u003E\r\n/// Handles the post-game victory sequence: declaring the winner, freezing them on a\r\n/// gold podium, raining confetti, disintegrating the arena, and finally swapping back\r\n/// to the lobby scene. \u003Csee cref=\u0022GameManager\u0022/\u003E kicks this off via \u003Csee cref=\u0022BeginVictory\u0022/\u003E\r\n/// once only one player remains.\r\n/// \u003C/summary\u003E\r\npublic sealed class VictoryManager : Component\r\n{\r\n    [Property] TileManager TileManager { get; set; }\r\n    [Property] public GameObject ConfettiPrefab { get; set; }\r\n    [Property] public SoundEvent ConfettiSound { get; set; }\r\n    [Property] public SoundEvent VictoryMusic { get; set; }\r\n    [Property] public SceneFile SceneToLoadFinish { get; set; }\r\n\r\n    /// \u003Csummary\u003ETotal length of the victory phase, from winner declared to scene swap.\u003C/summary\u003E\r\n    public const float ResultsDuration = 7f;\r\n    /// \u003Csummary\u003EHow long the outward tile-drop wave takes inside \u003Csee cref=\u0022ResultsDuration\u0022/\u003E.\u003C/summary\u003E\r\n    public const float DisintegrationDuration = 5f;\r\n    // Seconds the screen takes to fade to black at the tail of the results window.\r\n    private const float ResultsFadeDuration = 2f;\r\n    // Seconds the victory music ramps down for at the tail of the results window so the scene swap doesn\u0027t cut it off abruptly.\r\n    private const float VictoryMusicFadeDuration = 3f;\r\n\r\n    [Sync] public bool IsShowingResults { get; private set; } = false;\r\n    [Sync] public GameObject Winner { get; private set; }\r\n    [Sync] public TimeUntil ResultsTimer { get; private set; }\r\n\r\n    public static VictoryManager Current { get; private set; }\r\n\r\n    // Host-only guard so we only kick off the scene change once.\r\n    private bool _hasFinishedResults = false;\r\n\r\n    // Per-client: ensures the closing fade-out fires once during the results window.\r\n    private bool _hasTriggeredResultsFade = false;\r\n\r\n    // Per-client: starts the LerpTo on _victoryMusicHandle.Volume once the timer enters the window.\r\n    private bool _hasTriggeredMusicFade = false;\r\n\r\n    private SoundHandle _victoryMusicHandle;\r\n\r\n    // Host-only: tiles queued to drop during results, sorted outward from the podium.\r\n    private readonly List\u003C(Tile tile, TimeUntil at)\u003E _disintegrationSchedule = new();\r\n\r\n    // Confetti bursts queued during results. Populated locally on every client when the\r\n    // host\u0027s BroadcastBeginConfetti RPC arrives, then ticked locally to spawn prefab clones.\r\n    // \u0060initialVelocity\u0060 is per-burst world-space bias (inward toward the winner \u002B upward)\r\n    // applied to the spawned ParticleEffect so confetti arcs up and over the player.\r\n    private readonly List\u003C(TimeUntil at, Vector3 pos, Vector3 initialVelocity)\u003E _confettiBurstSchedule = new();\r\n\r\n    // Per-client: keeps the winner in a celebratory pose during results. Renderer animation\r\n    // params are local-only (not network-synced), so each client sets the special_idle_states\r\n    // enum on its own SkinnedModelRenderer.\r\n    private const int WinnerIdleState = 1;  // citizen animgraph special_idle_states: 0=normal, 1=avatar_menu\r\n\r\n    private static readonly Color[] ConfettiColors =\r\n    {\r\n        Color.Parse( \u0022#FF5757\u0022 ) ?? Color.Red,\r\n        Color.Parse( \u0022#FFD93D\u0022 ) ?? Color.Yellow,\r\n        Color.Parse( \u0022#6BCB77\u0022 ) ?? Color.Green,\r\n        Color.Parse( \u0022#4D96FF\u0022 ) ?? Color.Blue,\r\n        Color.Parse( \u0022#FF6FFF\u0022 ) ?? Color.Magenta,\r\n        Color.White,\r\n    };\r\n\r\n    protected override void OnEnabled()\r\n    {\r\n        Current = this;\r\n    }\r\n\r\n    protected override void OnDisabled()\r\n    {\r\n        // Stop the victory music handle so it doesn\u0027t carry over into the next scene\r\n        if ( _victoryMusicHandle.IsValid() )\r\n        {\r\n            _victoryMusicHandle.Stop();\r\n            _victoryMusicHandle = null;\r\n        }\r\n\r\n        if ( Current == this )\r\n            Current = null;\r\n    }\r\n\r\n    protected override void OnFixedUpdate()\r\n    {\r\n        // Per-client: hold the winner in their victory pose regardless of host status.\r\n        TickWinnerPose();\r\n        // Per-client: drive the confetti schedule locally (populated by BroadcastBeginConfetti).\r\n        TickConfettiBursts();\r\n\r\n        // Per-client: trigger the closing screen fade once the results timer enters the fade window.\r\n        if ( IsShowingResults \u0026\u0026 !_hasTriggeredResultsFade \u0026\u0026 (float)ResultsTimer \u003C= ResultsFadeDuration )\r\n        {\r\n            _hasTriggeredResultsFade = true;\r\n            ScreenFade.FadeOut( ResultsFadeDuration );\r\n        }\r\n\r\n        // Per-client: ramp the victory music down over the final stretch so the scene swap is more smooth\r\n        // Mirrors the LerpTo pattern in Music.FadeOut \u2014 trigger once on entering the window, then\r\n        // lerp every tick until the handle drops out / scene swaps.\r\n        if ( IsShowingResults \u0026\u0026 !_hasTriggeredMusicFade \u0026\u0026 (float)ResultsTimer \u003C= VictoryMusicFadeDuration )\r\n        {\r\n            _hasTriggeredMusicFade = true;\r\n        }\r\n        if ( _hasTriggeredMusicFade \u0026\u0026 _victoryMusicHandle.IsValid() )\r\n        {\r\n            _victoryMusicHandle.Volume = _victoryMusicHandle.Volume.LerpTo( 0f, Time.Delta / VictoryMusicFadeDuration );\r\n        }\r\n\r\n        if ( !Networking.IsHost ) return;\r\n        if ( !IsShowingResults ) return;\r\n\r\n        TickDisintegration();\r\n\r\n        if ( !_hasFinishedResults \u0026\u0026 ResultsTimer \u003C= 0f )\r\n        {\r\n            _hasFinishedResults = true;\r\n            FinishGame();\r\n        }\r\n    }\r\n\r\n    /// \u003Csummary\u003E\r\n    /// Host-only. Enter the post-game results phase: declare the winner, freeze the game,\r\n    /// set up the podium tile, and start the timer that eventually swaps back to the lobby scene.\r\n    /// \u003Cparamref name=\u0022winner\u0022/\u003E may be null (e.g. last two players were eliminated simultaneously).\r\n    /// \u003C/summary\u003E\r\n    public void BeginVictory( PlayerController winner )\r\n    {\r\n        if ( !Networking.IsHost ) return;\r\n        if ( IsShowingResults ) return;\r\n\r\n        GameObject winnerGameObject = winner.IsValid() ? winner.GameObject : null;\r\n\r\n        GameObject podiumGameObject = null;\r\n        if ( winnerGameObject.IsValid() )\r\n        {\r\n            podiumGameObject = SetupPodium( winner );\r\n\r\n            // Center the winner on the podium tile so a stray last step can\u0027t carry them off the edge.\r\n            // Teleport must run while the rigidbody is still active so the position\r\n            // change propagates through physics/network sync before the freeze lands.\r\n            if ( podiumGameObject.IsValid() )\r\n                BroadcastTeleportWinner( winnerGameObject, podiumGameObject.WorldPosition );\r\n\r\n            BroadcastFreezeWinner( winnerGameObject );\r\n        }\r\n\r\n        ScheduleDisintegration( podiumGameObject );\r\n\r\n        BroadcastResultsBegin( winnerGameObject );\r\n\r\n        // Session-wide leaderboard: fanned out so every client increments\r\n        // their own local Leaderboard copy. Bots use PlayerReadyState.LeaderboardId\r\n        // (a synthetic id) so wins/crowns are tracked per-bot and don\u0027t smear onto the host.\r\n        string winnerLeaderboardId = winner?.GetComponent\u003CPlayerReadyState\u003E()?.LeaderboardId;\r\n        if ( !string.IsNullOrEmpty( winnerLeaderboardId ) )\r\n        {\r\n            BroadcastRecordWin( winnerLeaderboardId );\r\n        }\r\n\r\n        // Confetti: fan out via RPC so every client populates its own local burst schedule.\r\n        // [Sync] doesn\u0027t propagate reliably on this scene-singleton (verified), but\r\n        // [Rpc.Broadcast] bodies do run on clients (same mechanism BroadcastResultsBegin uses).\r\n        if ( winnerGameObject.IsValid() \u0026\u0026 podiumGameObject.IsValid() )\r\n        {\r\n            Vector3 winnerForward = winnerGameObject.WorldRotation.Forward.WithZ( 0f );\r\n            if ( winnerForward.LengthSquared \u003E 0.001f )\r\n            {\r\n                BroadcastBeginConfetti( podiumGameObject.WorldPosition, winnerForward.Normal );\r\n            }\r\n        }\r\n\r\n        string winnerName = winner.GetPlayerName();\r\n        Log.Info( $\u0022{winnerName} won! Showing results for {ResultsDuration}s.\u0022 );\r\n    }\r\n\r\n    // Find the tile the winner is standing on and convert it into a golden podium. If they\r\n    // were mid-air, spawn a fresh podium tile above the arena center and teleport them onto it.\r\n    // Returns the podium tile\u0027s prefab root so callers can exclude it from the disintegration wave.\r\n    private GameObject SetupPodium( PlayerController winner )\r\n    {\r\n        Vector3 winnerPos = winner.WorldPosition;\r\n        // Start well above the player so we\u0027re clearly outside their body capsule, trace down\r\n        // past their feet. Ignore both the player root and the separate ColliderObject \u2014 the\r\n        // \u0022Colliders\u0022 child isn\u0027t tagged \u0022player\u0022, so WithoutTags alone won\u0027t exclude it.\r\n        var trace = Scene.Trace.Ray( winnerPos \u002B Vector3.Up * 200f, winnerPos \u002B Vector3.Down * 60f )\r\n            .WithoutTags( \u0022player\u0022 )\r\n            .IgnoreGameObjectHierarchy( winner.GameObject );\r\n        if ( winner.ColliderObject.IsValid() )\r\n            trace = trace.IgnoreGameObjectHierarchy( winner.ColliderObject );\r\n        SceneTraceResult result = trace.Run();\r\n\r\n        GameObject podiumGameObject = null;\r\n        if ( result.Hit \u0026\u0026 result.GameObject.IsValid() )\r\n        {\r\n            // result.GameObject is the TileModelCollider; one level up is the tile prefab root,\r\n            // which contains the Tile component on a sibling child. Don\u0027t use .Root \u2014 that walks\r\n            // all the way up to the scene-level TileManager and would tint the whole arena.\r\n            GameObject tileRoot = result.GameObject.Parent;\r\n            Tile existingTile = tileRoot?.GetComponentInChildren\u003CTile\u003E();\r\n            if ( existingTile != null )\r\n            {\r\n                podiumGameObject = tileRoot;\r\n            }\r\n        }\r\n\r\n        if ( podiumGameObject == null )\r\n        {\r\n            // Mid-air winner: spawn a podium tile above the arena center. The winner is teleported\r\n            // onto it by BeginVictory, not here, so the snap happens after the freeze.\r\n            podiumGameObject = SpawnPodiumGameObject();\r\n            if ( podiumGameObject == null )\r\n            {\r\n                Log.Warning( \u0022[Results] Could not produce a podium tile for mid-air winner.\u0022 );\r\n                return null;\r\n            }\r\n        }\r\n\r\n        BroadcastConvertToPodium( podiumGameObject );\r\n        return podiumGameObject;\r\n    }\r\n\r\n    // Host-only. Build an outward-from-podium drop schedule for every non-podium tile, spread\r\n    // across DisintegrationDuration. Tile.BreakTile is host-authoritative and flips a [Sync]\r\n    // _falling flag, so clients animate the cascade for free.\r\n    private void ScheduleDisintegration( GameObject podiumGameObject )\r\n    {\r\n        _disintegrationSchedule.Clear();\r\n        if ( TileManager == null ) return;\r\n\r\n        Vector3 podiumPos = podiumGameObject.IsValid()\r\n            ? podiumGameObject.WorldPosition\r\n            : TileManager.WorldPosition;\r\n\r\n        var candidates = new List\u003C(Tile tile, float distance)\u003E();\r\n        foreach ( Tile tile in TileManager.GameObject.GetComponentsInChildren\u003CTile\u003E() )\r\n        {\r\n            if ( !tile.IsValid() ) continue;\r\n            // Tile lives on a child of the prefab root; comparing parents skips the podium tile.\r\n            if ( podiumGameObject.IsValid() \u0026\u0026 tile.GameObject.Parent == podiumGameObject ) continue;\r\n\r\n            // Use horizontal distance only so every layer ripples outward together,\r\n            // instead of cascading top-layer-first to bottom-layer-last.\r\n            float horizontalDistance = (tile.WorldPosition - podiumPos).WithZ( 0f ).Length;\r\n            candidates.Add( (tile, horizontalDistance) );\r\n        }\r\n\r\n        candidates.Sort( ( a, b ) =\u003E a.distance.CompareTo( b.distance ) );\r\n\r\n        for ( int i = 0; i \u003C candidates.Count; i\u002B\u002B )\r\n        {\r\n            float t = candidates.Count \u003E 1 ? (float)i / (candidates.Count - 1) : 0f;\r\n            TimeUntil dropAt = t * DisintegrationDuration;\r\n            _disintegrationSchedule.Add( (candidates[i].tile, dropAt) );\r\n        }\r\n    }\r\n\r\n    // Runs on every client. Holds the winner in the citizen animgraph\u0027s avatar_menu pose\r\n    // (hands-on-hips victory stance) for the duration of the results window.\r\n    private void TickWinnerPose()\r\n    {\r\n        if ( !IsShowingResults || !Winner.IsValid() ) return;\r\n\r\n        PlayerController pc = Winner.GetComponent\u003CPlayerController\u003E( true );\r\n        if ( pc == null || !pc.Renderer.IsValid() ) return;\r\n\r\n        pc.Renderer.Set( \u0022special_idle_states\u0022, WinnerIdleState );\r\n    }\r\n\r\n    // Fanned out from the host so every client (including host) populates its own local\r\n    // confetti schedule from the same pattern. Plain RPC \u2014 [Sync] doesn\u0027t propagate on this\r\n    // scene-singleton (verified). Mirror of the BroadcastResultsBegin pattern.\r\n    [Rpc.Broadcast]\r\n    private void BroadcastBeginConfetti( Vector3 podiumPos, Vector3 winnerForward )\r\n    {\r\n        _confettiBurstSchedule.Clear();\r\n\r\n        if ( winnerForward.LengthSquared \u003C 0.001f ) return;\r\n        winnerForward = winnerForward.Normal;\r\n\r\n        // (delay seconds, yaw offset from \u0022directly behind\u0022 in degrees, radius, height)\r\n        // Spawn well behind the winner and at or below podium level so each burst starts\r\n        // near the bottom of the WinnerFocusCam frame, then arcs up into view.\r\n        var pattern = new (float delay, float yaw, float radius, float height)[]\r\n        {\r\n            ( 0.00f,    0f, 110f,  -5f ),  // dead behind\r\n\t\t\t( 0.60f,  -55f, 120f,   0f ),  // behind-left\r\n\t\t\t( 1.20f,   55f, 120f,   0f ),  // behind-right\r\n\t\t\t( 2.00f,    0f,  95f,  10f ),  // closer, slightly higher (over-the-top pop)\r\n\t\t\t( 2.80f,  -90f, 135f, -10f ),  // hard left flank, low\r\n\t\t\t( 2.80f,   90f, 135f, -10f ),  // hard right flank, low\r\n\t\t\t( 3.80f,    0f, 110f,  -5f ),  // final center pop\r\n\t\t};\r\n\r\n        foreach ( var (delay, yaw, radius, height) in pattern )\r\n        {\r\n            Vector3 offsetDir = Rotation.FromYaw( yaw ) * (-winnerForward);\r\n            Vector3 pos = podiumPos \u002B offsetDir * radius \u002B Vector3.Up * height;\r\n\r\n            // Push each particle horizontally toward the winner (so bursts behind/around\r\n            // them arc inward) and upward (so they rise into the camera frame before\r\n            // drifting back down like paper). World-space \u2014 the prefab has LocalSpace=0.\r\n            Vector3 inwardHorizontal = (podiumPos - pos).WithZ( 0f );\r\n            Vector3 inwardDir = inwardHorizontal.LengthSquared \u003E 0.001f ? inwardHorizontal.Normal : Vector3.Zero;\r\n            Vector3 initialVelocity = inwardDir * 260f \u002B Vector3.Up * 240f;\r\n\r\n            _confettiBurstSchedule.Add( (delay, pos, initialVelocity) );\r\n        }\r\n    }\r\n\r\n    private void TickConfettiBursts()\r\n    {\r\n        if ( _confettiBurstSchedule.Count == 0 ) return;\r\n\r\n        for ( int i = _confettiBurstSchedule.Count - 1; i \u003E= 0; i-- )\r\n        {\r\n            var entry = _confettiBurstSchedule[i];\r\n            if ( entry.at \u003C= 0f )\r\n            {\r\n                SpawnConfettiLocally( entry.pos, entry.initialVelocity );\r\n                _confettiBurstSchedule.RemoveAt( i );\r\n            }\r\n        }\r\n    }\r\n\r\n    private void TickDisintegration()\r\n    {\r\n        if ( _disintegrationSchedule.Count == 0 ) return;\r\n\r\n        for ( int i = _disintegrationSchedule.Count - 1; i \u003E= 0; i-- )\r\n        {\r\n            var entry = _disintegrationSchedule[i];\r\n            if ( !entry.tile.IsValid() )\r\n            {\r\n                _disintegrationSchedule.RemoveAt( i );\r\n                continue;\r\n            }\r\n            if ( entry.at \u003C= 0f )\r\n            {\r\n                entry.tile.BreakTile();\r\n                _disintegrationSchedule.RemoveAt( i );\r\n            }\r\n        }\r\n    }\r\n\r\n    private GameObject SpawnPodiumGameObject()\r\n    {\r\n        if ( TileManager == null || !TileManager.TilePrefab.IsValid() ) return null;\r\n\r\n        // Raise the podium above the top layer so it doesn\u0027t z-fight with the existing center tile.\r\n        Vector3 spawnPos = TileManager.WorldPosition \u002B Vector3.Up * 96f;\r\n        GameObject tileGameObject = TileManager.TilePrefab.Clone( new CloneConfig\r\n        {\r\n            Parent = TileManager.GameObject,\r\n            StartEnabled = true,\r\n            Transform = new Transform( spawnPos )\r\n        } );\r\n        tileGameObject.Name = \u0022Tile_Podium\u0022;\r\n        tileGameObject.NetworkSpawn();\r\n        return tileGameObject;\r\n    }\r\n\r\n    // Fanned out so every client locally disables the regular Tile behavior on this GameObject\r\n    // and swaps in a PodiumTile component (which tints it gold \u002B resets any in-progress wobble).\r\n    [Rpc.Broadcast]\r\n    private void BroadcastConvertToPodium( GameObject tileGameObject )\r\n    {\r\n        if ( !tileGameObject.IsValid() ) return;\r\n\r\n        // Tile lives on a child of the prefab root, so search downward.\r\n        Tile tile = tileGameObject.GetComponentInChildren\u003CTile\u003E();\r\n        if ( tile != null )\r\n        {\r\n            tile.SetTriggerEnabled( false );\r\n            tile.Enabled = false;\r\n        }\r\n\r\n        if ( tileGameObject.GetComponent\u003CPodiumTile\u003E() == null )\r\n        {\r\n            tileGameObject.AddComponent\u003CPodiumTile\u003E();\r\n        }\r\n    }\r\n\r\n    // Fanned out so every client sets the winner\u0027s local PlayerController flags. Matches the\r\n    // pattern used by PlayerManager.EnablePlayersInput.\r\n    [Rpc.Broadcast]\r\n    private void BroadcastFreezeWinner( GameObject winnerGameObject )\r\n    {\r\n        if ( !winnerGameObject.IsValid() ) return;\r\n        PlayerController pc = winnerGameObject.GetComponent\u003CPlayerController\u003E();\r\n        if ( pc == null ) return;\r\n        pc.UseInputControls = false;\r\n        pc.UseCameraControls = false;\r\n        // Clear any held input \u2014 otherwise the last WishVelocity (e.g. W still pressed)\r\n        // keeps driving the controller forward after input is disabled.\r\n        pc.WishVelocity = Vector3.Zero;\r\n\r\n        // Disable the controller and freeze rigidbody motion so the winner-hop tick can drive\r\n        // the transform directly without the move modes or physics overriding our position.\r\n        pc.Enabled = false;\r\n        Rigidbody rb = winnerGameObject.GetComponent\u003CRigidbody\u003E();\r\n        if ( rb != null ) rb.MotionEnabled = false;\r\n\r\n        // PlayerController.OnUpdate is what pumps animation params each frame; once we\r\n        // disable it, the last \u0022sprinting\u0022 values stick and the winner runs in place.\r\n        // Zero them so the citizen animgraph falls back to idle.\r\n        SkinnedModelRenderer renderer = pc.Renderer;\r\n        if ( renderer.IsValid() )\r\n        {\r\n            renderer.Set( \u0022move_groundspeed\u0022, 0f );\r\n            renderer.Set( \u0022move_x\u0022, 0f );\r\n            renderer.Set( \u0022move_y\u0022, 0f );\r\n            renderer.Set( \u0022move_z\u0022, 0f );\r\n            renderer.Set( \u0022move_direction\u0022, 0f );\r\n            renderer.Set( \u0022b_grounded\u0022, true );\r\n        }\r\n    }\r\n\r\n    // Only the owning client actually moves the transform \u2014 it owns the player\u0027s authority.\r\n    [Rpc.Broadcast]\r\n    private void BroadcastTeleportWinner( GameObject winnerGameObject, Vector3 position )\r\n    {\r\n        if ( !winnerGameObject.IsValid() ) return;\r\n\r\n        // Lock input on every client so a held WASD / camera input can\u0027t carry the\r\n        // player off the podium during the one-frame gap before BroadcastFreezeWinner.\r\n        PlayerController pc = winnerGameObject.GetComponent\u003CPlayerController\u003E();\r\n        if ( pc != null )\r\n        {\r\n            pc.UseInputControls = false;\r\n            pc.UseCameraControls = false;\r\n            pc.WishVelocity = Vector3.Zero;\r\n        }\r\n\r\n        if ( !winnerGameObject.Network.IsOwner ) return;\r\n        winnerGameObject.WorldPosition = position;\r\n    }\r\n\r\n    private void SpawnConfettiLocally( Vector3 spawnPos, Vector3 initialVelocity )\r\n    {\r\n        if ( !ConfettiPrefab.IsValid() ) return;\r\n\r\n        // One clone per color so each burst contains a mix of colored particles. The clone\u0027s\r\n        // ParticleSphereEmitter is single-shot (Loop=false, DestroyOnEnd=true) so each cleans itself up.\r\n        foreach ( Color color in ConfettiColors )\r\n        {\r\n            GameObject clone = ConfettiPrefab.Clone( new CloneConfig\r\n            {\r\n                StartEnabled = true,\r\n                Transform = new Transform( spawnPos, Rotation.Identity )\r\n            } );\r\n\r\n            ParticleEffect effect = clone.GetComponent\u003CParticleEffect\u003E();\r\n            if ( effect != null )\r\n            {\r\n                effect.Tint = color;\r\n                effect.InitialVelocity = initialVelocity;\r\n            }\r\n        }\r\n\r\n        if ( ConfettiSound == null ) return;\r\n        SoundHandle handle = Sound.Play( ConfettiSound, spawnPos );\r\n        if ( !handle.IsValid() ) return;\r\n        handle.Volume = 0.2f;\r\n    }\r\n\r\n    // Fanned out from the host so every client (including host) sets the same local results\r\n    // state and starts its own timer. Plain RPC instead of [Sync] because [Sync] props on this\r\n    // scene-level component don\u0027t propagate to non-host clients in this project\u0027s setup.\r\n    [Rpc.Broadcast]\r\n    private void BroadcastResultsBegin( GameObject winnerGameObject )\r\n    {\r\n        IsShowingResults = true;\r\n        Winner = winnerGameObject;\r\n        ResultsTimer = ResultsDuration;\r\n\r\n        // Fade out any in-scene music (the game track) so the victory cue can take over\r\n        // cleanly. Music components live on dedicated GameObjects in the scene.\r\n        foreach ( Music music in Scene.GetAllComponents\u003CMusic\u003E() )\r\n        {\r\n            music.FadeOut();\r\n        }\r\n\r\n        if ( VictoryMusic != null )\r\n        {\r\n            _victoryMusicHandle = Sound.Play( VictoryMusic );\r\n        }\r\n    }\r\n\r\n    private void FinishGame()\r\n    {\r\n        if ( !Networking.IsHost ) return;\r\n\r\n        if ( SceneToLoadFinish is null )\r\n        {\r\n            Log.Error( \u0022VictoryManager: SceneToLoadFinish is not assigned, can\u0027t return to lobby.\u0022 );\r\n            return;\r\n        }\r\n\r\n        BroadcastLoadLobbyScene( SceneToLoadFinish.ResourcePath );\r\n    }\r\n\r\n    // Per-client Scene.Load to reload the lobby.\r\n    // Game.ChangeScene was tried first but wouldn\u0027t suppress the loading screen.\r\n    [Rpc.Broadcast]\r\n    private void BroadcastLoadLobbyScene( string resourcePath )\r\n    {\r\n        SceneLoadOptions loadOptions = new();\r\n        if ( !loadOptions.SetScene( resourcePath ) ) return;\r\n        loadOptions.ShowLoadingScreen = false;\r\n        Game.ActiveScene.Load( loadOptions );\r\n    }\r\n\r\n    [Rpc.Broadcast]\r\n    private void BroadcastRecordWin( string id )\r\n    {\r\n        Leaderboard.RecordWin( id );\r\n        if ( Connection.Local != null \u0026\u0026 id == Leaderboard.PlayerId( Connection.Local.SteamId ) )\r\n        {\r\n            PlayerStats.RecordWin();\r\n        }\r\n        foreach ( PlayerReadyState state in Scene.GetAllComponents\u003CPlayerReadyState\u003E() )\r\n        {\r\n            state.RefreshCrown();\r\n        }\r\n    }\r\n}\r\n"},{"Ident":"waypoint.dropout","Path":"Assembly.cs","FileName":"Assembly.cs","PackageType":"game","CodeKind":"Game","AssetVersionId":307399,"IsPrivate":false,"Code":"global using Sandbox;\r\nglobal using System.Collections.Generic;\r\nglobal using System.Linq;\r\n"},{"Ident":"waypoint.dropout","Path":"game/Tile.cs","FileName":"Tile.cs","PackageType":"game","CodeKind":"Game","AssetVersionId":307399,"IsPrivate":false,"Code":"using System;\r\n\r\npublic sealed class Tile : Component, Component.ITriggerListener\r\n{\r\n\t// Timing \u002B physics for the break sequence (delay before breaking, how long the\r\n\t// debris falls before despawn, mass applied so it actually falls, and the\r\n\t// flash pulse rate as the tile is about to give way).\r\n\t[Property, Group( \u0022Break\u0022 )] public float BreakDelay { get; set; } = 1.0f;\r\n\t[Property, Group( \u0022Break\u0022 )] public float FallDuration { get; set; } = 2.0f;\r\n\t[Property, Group( \u0022Break\u0022 )] public float FallMass { get; set; } = 100f;\r\n\t[Property, Group( \u0022Break\u0022 )] public float FlashSpeed { get; set; } = 12f;\r\n\r\n\t// Pre-break wobble: max roll angle in degrees and how fast it oscillates\r\n\t// (radians/sec fed into Sin).\r\n\t[Property, Group( \u0022Wobble\u0022 )] public float WobbleAngle { get; set; } = 5.0f;\r\n\t[Property, Group( \u0022Wobble\u0022 )] public float WobbleSpeed { get; set; } = 25.0f;\r\n\r\n\t// Visual dip when a player is standing on the tile: how far down (local units)\r\n\t// and how fast the model lerps toward depressed/rest.\r\n\t[Property, Group( \u0022Depress\u0022 )] public float DepressDepth { get; set; } = 3f;\r\n\t[Property, Group( \u0022Depress\u0022 )] public float DepressSpeed { get; set; } = 25f;\r\n\r\n\t// Wired up in the prefab inspector. SolidCollider is what the player stands on\r\n\t// (flipped to a trigger on break). TriggerCollider detects step-on. Model is the\r\n\t// renderer used for flash \u002B depression bob (must be a child so we can move it\r\n\t// without moving the colliders). TileRoot is the prefab root we destroy on fall.\r\n\t[Property, Group( \u0022References\u0022 )] public Collider SolidCollider { get; set; }\r\n\t[Property, Group( \u0022References\u0022 )] public Collider TriggerCollider { get; set; }\r\n\t[Property, Group( \u0022References\u0022 )] public ModelRenderer Model { get; set; }\r\n\t[Property, Group( \u0022References\u0022 )] public GameObject TileRoot { get; set; }\r\n\r\n\t// Synced state used for host/client coordination.\r\n\t[Sync] private bool _triggered { get; set; } = false;\r\n\t[Sync] private bool _falling { get; set; } = false;\r\n\r\n\t/// \u003Csummary\u003ETrue while the tile is a valid landing spot (not counting down to break, not falling).\u003C/summary\u003E\r\n\tpublic bool IsSafe =\u003E !_triggered \u0026\u0026 !_falling;\r\n\r\n\t// The per-layer color the host assigns at grid build time. Synced so non-host\r\n\t// clients see the layer colors instead of the prefab default. Default is the zero\r\n\t// color (alpha 0); we use that as the \u0022not assigned\u0022 sentinel.\r\n\t[Sync, Change( nameof( OnLayerTintChanged ) )] public Color LayerTint { get; set; }\r\n\r\n\tprivate TimeUntil _breakAt;\r\n\tprivate TimeUntil _destroyAt;\r\n\tprivate Rotation _restRotation;\r\n\tprivate Vector3 _modelRestPosition;\r\n\tprivate bool _hasCapturedModelRest;\r\n\tprivate bool _appliedBreakLocally = false;\r\n\tprivate int _playersOnTile = 0;\r\n\tprivate Color _baseTint = Color.White;\r\n\tprivate float _wobblePhase;\r\n\tprivate float _wobbleSpeedJitter = 1f;\r\n\tprivate Rigidbody _rigidbody;\r\n\r\n\tprotected override void OnStart()\r\n\t{\r\n\t\t// Cache the initial rotation and build a deterministic random wobble offset.\r\n\t\t_restRotation = TileRoot.IsValid() ? TileRoot.WorldRotation : WorldRotation;\r\n\t\tvar rng = new Random( HashCode.Combine( GameObject.Id ) );\r\n\t\t_wobblePhase = (float)rng.NextDouble() * MathF.PI * 2f;\r\n\t\t_wobbleSpeedJitter = 0.75f \u002B (float)rng.NextDouble() * 0.5f;\r\n\r\n\t\tif ( Model.IsValid() )\r\n\t\t{\r\n\t\t\tCaptureModelRest();\r\n\t\t\t// If the host has already assigned a layer tint, apply it before capturing\r\n\t\t\t// the rest color so the flash animation pulses between the tint and white.\r\n\t\t\tif ( LayerTint.a \u003E 0f )\r\n\t\t\t\tModel.Tint = LayerTint;\r\n\t\t\t_baseTint = Model.Tint;\r\n\t\t}\r\n\r\n\t\t// Start with the trigger disabled; the tile becomes active only when requested.\r\n\t\tif ( TriggerCollider.IsValid() )\r\n\t\t{\r\n\t\t\tTriggerCollider.Enabled = false;\r\n\t\t}\r\n\t}\r\n\r\n\tprotected override void OnFixedUpdate()\r\n\t{\r\n\t\t// Host handles authoritative break timing and destruction.\r\n\t\tif ( Networking.IsHost )\r\n\t\t{\r\n\t\t\tHostFixedUpdate();\r\n\t\t}\r\n\r\n\t\t// All clients handle local animation and state application.\r\n\t\tClientFixedUpdate();\r\n\t}\r\n\r\n\tprivate void HostFixedUpdate()\r\n\t{\r\n\t\tif ( _triggered \u0026\u0026 !_falling )\r\n\t\t{\r\n\t\t\tUpdateTriggeredAnimation();\r\n\r\n\t\t\tif ( _breakAt \u003C= 0 )\r\n\t\t\t{\r\n\t\t\t\tBreakTile();\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif ( _falling \u0026\u0026 _destroyAt \u003C= 0 )\r\n\t\t{\r\n\t\t\tTileRoot?.Destroy();\r\n\t\t}\r\n\t}\r\n\r\n\tprivate void ClientFixedUpdate()\r\n\t{\r\n\t\tif ( _triggered \u0026\u0026 !_falling )\r\n\t\t{\r\n\t\t\tUpdateTriggeredAnimation();\r\n\t\t}\r\n\r\n\t\tif ( Model.IsValid() \u0026\u0026 !_falling )\r\n\t\t{\r\n\t\t\t// Smoothly depress the tile when players are standing on it.\r\n\t\t\tvar target = _playersOnTile \u003E 0 ? _modelRestPosition \u002B Vector3.Down * DepressDepth : _modelRestPosition;\r\n\t\t\tModel.LocalPosition = Vector3.Lerp( Model.LocalPosition, target, Time.Delta * DepressSpeed );\r\n\t\t}\r\n\r\n\t\tif ( _falling \u0026\u0026 !_appliedBreakLocally )\r\n\t\t{\r\n\t\t\tApplyBreakStateLocally();\r\n\t\t}\r\n\t}\r\n\r\n\tprivate void UpdateTriggeredAnimation()\r\n\t{\r\n\t\tfloat progress = MathX.Clamp( 1f - (float)_breakAt / BreakDelay, 0f, 1f );\r\n\t\tfloat angle = MathF.Sin( Time.Now * WobbleSpeed * _wobbleSpeedJitter \u002B _wobblePhase ) * WobbleAngle * progress;\r\n\t\tvar wobbleTarget = TileRoot.IsValid() ? TileRoot : GameObject;\r\n\t\twobbleTarget.WorldRotation = _restRotation * Rotation.FromRoll( angle );\r\n\r\n\t\tif ( Model.IsValid() )\r\n\t\t{\r\n\t\t\tfloat pulse = (MathF.Sin( Time.Now * FlashSpeed ) \u002B 1f) * 0.5f;\r\n\t\t\tModel.Tint = Color.Lerp( _baseTint, Color.White, pulse * progress );\r\n\t\t}\r\n\t}\r\n\r\n\tpublic void OnTriggerEnter( Collider other )\r\n\t{\r\n\t\tif ( !other.Tags.Has( \u0022player\u0022 ) ) return;\r\n\r\n\t\t_playersOnTile\u002B\u002B;\r\n\r\n\t\t// Only the host can begin the break countdown.\r\n\t\tif ( !Networking.IsHost || _triggered || _falling ) return;\r\n\r\n\t\t_triggered = true;\r\n\t\t_breakAt = BreakDelay;\r\n\t}\r\n\r\n\tpublic void OnTriggerExit( Collider other )\r\n\t{\r\n\t\tif ( !other.Tags.Has( \u0022player\u0022 ) ) return;\r\n\r\n\t\t_playersOnTile = Math.Max( 0, _playersOnTile - 1 );\r\n\t}\r\n\r\n\tpublic void SetTriggerEnabled( bool enabled )\r\n\t{\r\n\t\tif ( TriggerCollider.IsValid() )\r\n\t\t{\r\n\t\t\tTriggerCollider.Enabled = enabled;\r\n\t\t}\r\n\t}\r\n\r\n\t// Snap the model back to its captured rest position, cancelling any in-progress\r\n\t// depression bob. Useful when the tile is taken out of the normal break flow and\r\n\t// the lerp in ClientFixedUpdate stops running.\r\n\tpublic void SnapModelToRest()\r\n\t{\r\n\t\tif ( !Model.IsValid() ) return;\r\n\t\t// PodiumTile spawns a fresh tile and disables this component in the same frame,\r\n\t\t// so OnStart may never have run \u2014 capture the prefab-default rest position now\r\n\t\t// or the model snaps to (0,0,0) and rises above the collider top.\r\n\t\tCaptureModelRest();\r\n\t\tModel.LocalPosition = _modelRestPosition;\r\n\t}\r\n\r\n\tprivate void CaptureModelRest()\r\n\t{\r\n\t\tif ( _hasCapturedModelRest ) return;\r\n\t\tif ( !Model.IsValid() ) return;\r\n\t\t_modelRestPosition = Model.LocalPosition;\r\n\t\t_hasCapturedModelRest = true;\r\n\t}\r\n\r\n\t// Fires on clients when the host assigns LayerTint after the tile has already started.\r\n\tprivate void OnLayerTintChanged( Color oldValue, Color newValue )\r\n\t{\r\n\t\tif ( newValue.a \u003C= 0f ) return;\r\n\t\tif ( Model.IsValid() )\r\n\t\t\tModel.Tint = newValue;\r\n\t\t_baseTint = newValue;\r\n\t}\r\n\r\n\tpublic void BreakTile()\r\n\t{\r\n\t\tif ( !Networking.IsHost || _falling ) return;\r\n\r\n\t\t_falling = true;\r\n\t\t_destroyAt = FallDuration;\r\n\t\tApplyBreakStateLocally();\r\n\t}\r\n\r\n\tprivate void ApplyBreakStateLocally()\r\n\t{\r\n\t\tif ( _appliedBreakLocally ) return;\r\n\t\t_appliedBreakLocally = true;\r\n\r\n\t\t// Convert the walkable collider into a trigger so the player falls through.\r\n\t\tif ( SolidCollider.IsValid() )\r\n\t\t\tSolidCollider.IsTrigger = true;\r\n\r\n\t\tif ( TriggerCollider.IsValid() )\r\n\t\t\tTriggerCollider.Enabled = false;\r\n\r\n\t\tif ( SolidCollider.IsValid() )\r\n\t\t{\r\n\t\t\t_rigidbody = SolidCollider.GameObject.AddComponent\u003CRigidbody\u003E();\r\n\t\t\t_rigidbody.MassOverride = FallMass;\r\n\t\t\t_rigidbody.MotionEnabled = true;\r\n\t\t}\r\n\t}\r\n}\r\n"},{"Ident":"waypoint.dropout","Path":"lobby/LobbyReadyUp.cs","FileName":"LobbyReadyUp.cs","PackageType":"game","CodeKind":"Game","AssetVersionId":307399,"IsPrivate":false,"Code":"/// \u003Csummary\u003E\r\n/// Trigger listener for the lobby ready-up zone. Flips the networked\r\n/// \u003Csee cref=\u0022PlayerReadyState.IsReady\u0022/\u003E on the player that entered/exited.\r\n/// \u003C/summary\u003E\r\npublic sealed class LobbyReadyUp : Component, Component.ITriggerListener\r\n{\r\n\tpublic void OnTriggerEnter( Collider other )\r\n\t{\r\n\t\tvar state = other.GameObject.Root.GetComponent\u003CPlayerReadyState\u003E();\r\n\t\tif ( state is null ) return;\r\n\r\n\t\tstate.IsReady = true;\r\n\t}\r\n\r\n\tpublic void OnTriggerExit( Collider other )\r\n\t{\r\n\t\tvar state = other.GameObject.Root.GetComponent\u003CPlayerReadyState\u003E();\r\n\t\tif ( state is null ) return;\r\n\r\n\t\tstate.IsReady = false;\r\n\t}\r\n}\r\n"},{"Ident":"waypoint.dropout","Path":"player/PlayerFallSound.cs","FileName":"PlayerFallSound.cs","PackageType":"game","CodeKind":"Game","AssetVersionId":307399,"IsPrivate":false,"Code":"using Sandbox;\r\n\r\n/// \u003Csummary\u003E\r\n/// Plays a \u0022woo\u0022 sound from the local player when they actually fall down to the\r\n/// layer below \u2014 not when they\u0027re just jumping or hopping around. Detection is\r\n/// owner-only (PlayerController.Velocity is owner-authoritative), the trigger\r\n/// fans out to every client via RPC so the sound is heard positionally.\r\n/// \u003C/summary\u003E\r\npublic sealed class PlayerFallSound : Component, PlayerController.IEvents\r\n{\r\n    [Property] public PlayerController PlayerController { get; set; }\r\n    [Property] public SoundEvent FallSound { get; set; }\r\n\r\n    /// \u003Csummary\u003E\r\n    /// How far the player must descend from their airborne peak before the fall\r\n    /// sound triggers. Filters small jumps and step-downs.\r\n    /// \u003C/summary\u003E\r\n    public float FallTriggerDistance { get; set; } = 100f;\r\n\r\n    private float _airbornePeakZ;\r\n    private bool _isTrackingFall;\r\n    private bool _hasPlayedFallSound;\r\n\r\n    protected override void OnUpdate()\r\n    {\r\n        if ( GameObject.Network.Owner != Connection.Local ) return;\r\n        if ( PlayerController == null ) return;\r\n\r\n        if ( PlayerController.IsOnGround )\r\n        {\r\n            // Fresh airtime next time they leave the ground.\r\n            _isTrackingFall = false;\r\n            _hasPlayedFallSound = false;\r\n            return;\r\n        }\r\n\r\n        // Track the highest point of this airtime so we can compare current Z\r\n        // against the peak \u2014 a jump goes up first, so the drop from peak only\r\n        // exceeds FallTriggerDistance if they actually fell off something.\r\n        float currentZ = PlayerController.WorldPosition.z;\r\n        if ( !_isTrackingFall )\r\n        {\r\n            _isTrackingFall = true;\r\n            _airbornePeakZ = currentZ;\r\n        }\r\n        else if ( currentZ \u003E _airbornePeakZ )\r\n        {\r\n            _airbornePeakZ = currentZ;\r\n        }\r\n\r\n        if ( _hasPlayedFallSound ) return;\r\n        // Skip the upward arc of a jump.\r\n        if ( PlayerController.Velocity.z \u003E= 0f ) return;\r\n        if ( _airbornePeakZ - currentZ \u003C FallTriggerDistance ) return;\r\n\r\n        _hasPlayedFallSound = true;\r\n        BroadcastFallSound();\r\n    }\r\n\r\n    [Rpc.Broadcast]\r\n    private void BroadcastFallSound()\r\n    {\r\n        if ( FallSound == null ) return;\r\n        // PlaySound from the the GameObject so the sound follows the player as they fall.\r\n        GameObject.PlaySound( FallSound );\r\n    }\r\n}\r\n"},{"Ident":"waypoint.dropout","Path":"player/PlayerImpactSound.cs","FileName":"PlayerImpactSound.cs","PackageType":"game","CodeKind":"Game","AssetVersionId":307399,"IsPrivate":false,"Code":"using Sandbox;\r\n\r\npublic sealed class PlayerImpactSound : Component, PlayerController.IEvents\r\n{\r\n\t[Property] public PlayerController PlayerController { get; set; }\r\n\t[Property] public SoundEvent Sound { get; set; }\r\n\r\n\t// Fallback for scenes with no TileManager (e.g. lobby).\r\n\tprivate readonly float DefaultMinFallDistance = TileManager.Current?.LayerSpacing * 1.2f ?? 400f;\r\n\t[Rpc.Broadcast]\r\n\tprivate void BroadcastSound()\r\n\t{\r\n\t\tGameObject.PlaySound( Sound );\r\n\t}\r\n\r\n\tvoid PlayerController.IEvents.OnLanded( float distance, Vector3 impactVelocity )\r\n\t{\r\n\t\tif ( GameObject.Network.Owner != Connection.Local ) return;\r\n\t\tif ( distance \u003E DefaultMinFallDistance ) BroadcastSound();\r\n\t}\r\n}\r\n"},{"Ident":"waypoint.dropout","Path":"player/PlayerNameExtensions.cs","FileName":"PlayerNameExtensions.cs","PackageType":"game","CodeKind":"Game","AssetVersionId":307399,"IsPrivate":false,"Code":"using Sandbox;\r\n\r\n/// \u003Csummary\u003E\r\n/// Player-name helpers. Handles the bot-vs-real-player fork in one place so callers\r\n/// (UI, HUDs, log lines, spectator, victory) don\u0027t have to check themselves.\r\n/// \u003C/summary\u003E\r\npublic static class PlayerNameExtensions\r\n{\r\n    /// \u003Csummary\u003E\r\n    /// Returns the display name for a player-owned GameObject (steam display name) or \r\n    /// the bot\u0027s synthetic name if a \u003Csee cref=\u0022BotController\u0022/\u003E is present\r\n    /// \u003C/summary\u003E\r\n    public static string GetPlayerName( this GameObject go )\r\n    {\r\n        if ( !go.IsValid() ) return \u0022Unknown\u0022;\r\n        BotController bot = go.GetComponent\u003CBotController\u003E();\r\n        if ( bot != null ) return bot.BotName;\r\n        return go.Network?.Owner?.DisplayName ?? \u0022Unknown\u0022;\r\n    }\r\n\r\n    /// \u003Csummary\u003EConvenience overload for callers holding a Component (e.g. PlayerController).\u003C/summary\u003E\r\n    public static string GetPlayerName( this Component component )\r\n    {\r\n        if ( !component.IsValid() ) return \u0022Unknown\u0022;\r\n        return component.GameObject.GetPlayerName();\r\n    }\r\n}\r\n"},{"Ident":"waypoint.dropout","Path":"player/PlayerOutfit.cs","FileName":"PlayerOutfit.cs","PackageType":"game","CodeKind":"Game","AssetVersionId":307399,"IsPrivate":false,"Code":"using Sandbox;\r\nusing System.Threading.Tasks;\r\n\r\n/// \u003Csummary\u003E\r\n/// Defers a \u003Csee cref=\u0022Dresser.Apply\u0022/\u003E call after spawn. With Source = OwnerConnection\r\n/// the Dresser\u0027s built-in auto-apply often runs before the owner\u0027s avatar data has\r\n/// loaded, leaving the player naked. Runs on every client so each machine dresses\r\n/// its local copy from the owning connection\u0027s avatar.\r\n/// \u003C/summary\u003E\r\npublic sealed class PlayerOutfit : Component\r\n{\r\n    [Property] public Dresser Dresser { get; set; }\r\n    [Property] public float StartDelay { get; set; } = 0.05f;\r\n\r\n    protected override void OnStart()\r\n    {\r\n        _ = ApplyOutfitAsync();\r\n    }\r\n\r\n    private async Task ApplyOutfitAsync()\r\n    {\r\n        Dresser dresser = Dresser ?? GetComponent\u003CDresser\u003E();\r\n        if ( dresser == null ) return;\r\n\r\n        await Task.DelayRealtimeSeconds( StartDelay );\r\n        if ( !this.IsValid() ) return;\r\n\r\n        if ( this.IsBot() )\r\n        {\r\n            // Bots are host-owned so Dresser.Source = OwnerConnection would stream the\r\n            // host\u0027s avatar directly, ignoring the Clothing list. Switch to Manual so\r\n            // the outfit list is what actually gets rendered, then fan the change out\r\n            // via Network.Refresh. Owner-only so only the host rolls / restores.\r\n            if ( !Network.IsOwner ) return;\r\n            dresser.Source = Dresser.ClothingSource.Manual;\r\n            BotController botController = GetComponent\u003CBotController\u003E();\r\n            await Bots.ApplyOutfitForSlot( dresser, botController.IsValid() ? botController.Slot : 0 );\r\n            if ( !this.IsValid() ) return;\r\n            GameObject.Network.Refresh();\r\n            return;\r\n        }\r\n\r\n        await dresser.Apply();\r\n    }\r\n}\r\n"},{"Ident":"waypoint.dropout","Path":"ui/InfoBoard.razor","FileName":"InfoBoard.razor","PackageType":"game","CodeKind":"Game","AssetVersionId":307399,"IsPrivate":false,"Code":"@using Sandbox\r\n@using Sandbox.UI\r\n@using System.Linq\r\n@inherits PanelComponent\r\n\r\n\u003Croot\u003E\r\n    \u003Cdiv class=\u0022board\u0022\u003E\r\n        \u003Cdiv class=\u0022title\u0022\u003E@CurrentPageTitle\u003C/div\u003E\r\n        \u003Cdiv class=\u0022page\u0022\u003E\r\n            @switch (CurrentPage)\r\n            {\r\n                case PageType.Controls:\r\n                    \u003Cdiv class=\u0022controls-list\u0022\u003E\r\n                        \u003Cdiv class=\u0022control-row\u0022\u003E\r\n                            \u003Cdiv class=\u0022label\u0022\u003EMove\u003C/div\u003E\r\n                            \u003Cdiv class=\u0022glyphs\u0022\u003E\r\n                                \u003CImage class=\u0022glyph\u0022 Texture=@Input.GetGlyph(\u0022Forward\u0022, InputGlyphSize.Large, GlyphStyle.Light) /\u003E\r\n                                \u003CImage class=\u0022glyph\u0022 Texture=@Input.GetGlyph(\u0022Left\u0022, InputGlyphSize.Large, GlyphStyle.Light) /\u003E\r\n                                \u003CImage class=\u0022glyph\u0022 Texture=@Input.GetGlyph(\u0022Backward\u0022, InputGlyphSize.Large, GlyphStyle.Light) /\u003E\r\n                                \u003CImage class=\u0022glyph\u0022 Texture=@Input.GetGlyph(\u0022Right\u0022, InputGlyphSize.Large, GlyphStyle.Light) /\u003E\r\n                            \u003C/div\u003E\r\n                        \u003C/div\u003E\r\n                        \u003Cdiv class=\u0022control-row\u0022\u003E\r\n                            \u003Cdiv class=\u0022label\u0022\u003EJump\u003C/div\u003E\r\n                            \u003Cdiv class=\u0022glyphs\u0022\u003E\r\n                                \u003CImage class=\u0022glyph\u0022 Texture=@Input.GetGlyph(\u0022Jump\u0022, InputGlyphSize.Large, GlyphStyle.Light) /\u003E\r\n                            \u003C/div\u003E\r\n                        \u003C/div\u003E\r\n                        \u003Cdiv class=\u0022control-row\u0022\u003E\r\n                            \u003Cdiv class=\u0022label\u0022\u003ELeap Dive\u003C/div\u003E\r\n                            \u003Cdiv class=\u0022glyphs\u0022\u003E\r\n                                \u003CImage class=\u0022glyph\u0022 Texture=@Input.GetGlyph(\u0022Attack1\u0022, InputGlyphSize.Large, GlyphStyle.Light) /\u003E\r\n                            \u003C/div\u003E\r\n                        \u003C/div\u003E\r\n                    \u003C/div\u003E\r\n                    break;\r\n                case PageType.Title:\r\n                    \u003Cdiv class=\u0022title-page\u0022\u003E\r\n                        \u003Cimg class=\u0022title-thumbnail\u0022 src=\u0022textures/dropout_thumbnail_910x512.png\u0022 /\u003E\r\n                    \u003C/div\u003E\r\n                    break;\r\n            }\r\n        \u003C/div\u003E\r\n    \u003C/div\u003E\r\n\u003C/root\u003E\r\n\r\n@code {\r\n    // To add a new page: add an enum value, add it to Pages, and add a switch case above.\r\n    private enum PageType\r\n    {\r\n        Controls,\r\n        Title,\r\n    }\r\n\r\n    private static readonly PageType[] Pages = new[]\r\n    {\r\n        PageType.Controls,\r\n        PageType.Title,\r\n    };\r\n\r\n    /// \u003Csummary\u003ESeconds each page is shown before cycling to the next.\u003C/summary\u003E\r\n    private const float PageDuration = 8f;\r\n\r\n    private int _pageIndex = 0;\r\n    private TimeUntil _nextPageAt = PageDuration;\r\n\r\n    private PageType CurrentPage =\u003E Pages[_pageIndex];\r\n\r\n    private string CurrentPageTitle =\u003E CurrentPage switch\r\n    {\r\n        PageType.Controls =\u003E \u0022Controls\u0022,\r\n        PageType.Title =\u003E \u0022\u0022,\r\n        _ =\u003E string.Empty,\r\n    };\r\n\r\n    protected override void OnUpdate()\r\n    {\r\n        if (Pages.Length \u003C= 1) return;\r\n\r\n        if ((float)_nextPageAt \u003C= 0f)\r\n        {\r\n            _pageIndex = (_pageIndex \u002B 1) % Pages.Length;\r\n            _nextPageAt = PageDuration;\r\n        }\r\n    }\r\n\r\n    protected override int BuildHash() =\u003E System.HashCode.Combine(_pageIndex, Input.UsingController);\r\n}\r\n"},{"Ident":"waypoint.dropout","Path":"ui/LobbyBoard.razor","FileName":"LobbyBoard.razor","PackageType":"game","CodeKind":"Game","AssetVersionId":307399,"IsPrivate":false,"Code":"@using Sandbox\r\n@using Sandbox.UI\r\n@using System.Linq\r\n@inherits PanelComponent\r\n\r\n\u003Croot\u003E\r\n    \u003Cdiv class=\u0022board\u0022\u003E\r\n        @if (LobbyManager.HasActiveLobbyMessage)\r\n        {\r\n            \u003Cdiv class=\u0022message-banner\u0022\u003E@LobbyManager.LobbyMessage\u003C/div\u003E\r\n        }\r\n\r\n        @if (LaunchSeconds \u003E 0)\r\n        {\r\n            \u003Cdiv class=\u0022title\u0022\u003EStarting in\u003C/div\u003E\r\n            \u003Cdiv class=\u0022launch-number\u0022\u003E@LaunchSeconds\u003C/div\u003E\r\n        }\r\n        else\r\n        {\r\n            \u003Cdiv class=\u0022title\u0022\u003EPlayers\u003C/div\u003E\r\n            \u003Cdiv class=\u0022grid\u0022\u003E\r\n                @foreach (PlayerReadyState player in Scene.GetAllComponents\u003CPlayerReadyState\u003E())\r\n                {\r\n                    \u003Cdiv class=\u0022cell @(player.IsReady ? \u0022ready\u0022 : \u0022notready\u0022)\u0022\u003E\r\n                        @if (player.IsBot())\r\n                        {\r\n                            \u003Cdiv class=\u0022avatar bot-avatar\u0022 style=\u0022background-color: @(BotColor(player.DisplayName));\u0022\u003E\r\n                                @(BotInitial(player.DisplayName))\r\n                            \u003C/div\u003E\r\n                        }\r\n                        else\r\n                        {\r\n                            \u003Cimg class=\u0022avatar\u0022 src=\u0022avatar:@(player.Network.Owner.SteamId)\u0022 /\u003E\r\n                        }\r\n                        \u003Cdiv class=\u0022name\u0022\u003E@player.DisplayName\u003C/div\u003E\r\n                        \u003Cdiv class=\u0022wins\u0022 title=\u0022Wins\u0022\u003E\r\n                            \u003Cdiv class=\u0022trophy\u0022\u003E\uD83C\uDFC6\u003C/div\u003E\r\n                            \u003Cdiv class=\u0022count\u0022\u003E@player.WinCount\u003C/div\u003E\r\n                        \u003C/div\u003E\r\n                    \u003C/div\u003E\r\n                }\r\n            \u003C/div\u003E\r\n        }\r\n    \u003C/div\u003E\r\n\u003C/root\u003E\r\n\r\n@code {\r\n    private int LaunchSeconds\r\n    {\r\n        get\r\n        {\r\n            LobbyManager mgr = LobbyManager.Current;\r\n            if (mgr is null || !mgr.IsLaunching) return 0;\r\n            return System.Math.Max(1, (int)System.MathF.Ceiling(mgr.LaunchSecondsRemaining));\r\n        }\r\n    }\r\n\r\n    private static string BotInitial(string name) =\u003E\r\n        string.IsNullOrEmpty(name) ? \u0022?\u0022 : name.Substring(0, 1).ToUpper();\r\n\r\n    // Stable per-name HSL so each bot keeps the same badge color across ticks.\r\n    private static string BotColor(string seed)\r\n    {\r\n        int hue = System.Math.Abs(seed.GetHashCode()) % 360;\r\n        return $\u0022hsl({hue}, 55%, 45%)\u0022;\r\n    }\r\n\r\n    protected override int BuildHash()\r\n    {\r\n        IEnumerable\u003Cstring\u003E parts = Scene.GetAllComponents\u003CPlayerReadyState\u003E()\r\n            .Select(p =\u003E $\u0022{p.DisplayName}:{p.IsReady}:{p.WinCount}\u0022);\r\n        return System.HashCode.Combine(string.Join(\u0022,\u0022, parts), LaunchSeconds, LobbyManager.HasActiveLobbyMessage);\r\n    }\r\n}\r\n"},{"Ident":"waypoint.dropout","Path":"ui/controls/color/colorsaturationvaluecontrol.cs.scss","FileName":"colorsaturationvaluecontrol.cs.scss","PackageType":"game","CodeKind":"Game","AssetVersionId":307399,"IsPrivate":false,"Code":"ColorSaturationValueControl\r\n{\r\n\twidth: 240px;\r\n\theight: 240px;\r\n\tbackground-color: red;\r\n\tposition: relative;\r\n\tborder-radius: 4px;\r\n\tcursor: pointer;\r\n\tborder: 1px solid #333;\r\n\r\n\t\u0026:hover\r\n\t{\r\n\t\tborder: 1px solid #08f;\r\n\t}\r\n\r\n\t\u0026:active\r\n\t{\r\n\t\tborder: 1px solid #fff;\r\n\t}\r\n\r\n\t.handle\r\n\t{\r\n\t\twidth: 16px;\r\n\t\theight: 16px;\r\n\t\tborder-radius: 100px;\r\n\t\tborder: 2px solid #444;\r\n\t\tposition: absolute;\r\n\t\tbackground-color: white;\r\n\t\tbox-shadow: 2px 2px 16px #000a;\r\n\t\ttransform: translateX( -50% ) translateY( -50% );\r\n\t\tpointer-events: none;\r\n\t\tz-index: 100;\r\n\t\tz-index: 100;\r\n\t}\r\n\r\n\t.gradient\r\n\t{\r\n\t\tposition: absolute;\r\n\t\twidth: 100%;\r\n\t\theight: 100%;\r\n\t\tborder-radius: 4px;\r\n\t\tbackground: linear-gradient( to right, white, rgba( 255, 255, 255, 0 ) );\r\n\r\n\t\t\u0026:after\r\n\t\t{\r\n\t\t\tcontent: \u0022\u0022;\r\n\t\t\tposition: absolute;\r\n\t\t\twidth: 100%;\r\n\t\t\theight: 100%;\r\n\t\t\tborder-radius: 4px;\r\n\t\t\tbackground: linear-gradient( to top, black, rgba( 0, 0, 0, 0 ) );\r\n\t\t}\r\n\t}\r\n}\r\n"},{"Ident":"waypoint.dropout","Path":"ui/controls/color/colorpickercontrol.cs.scss","FileName":"colorpickercontrol.cs.scss","PackageType":"game","CodeKind":"Game","AssetVersionId":307399,"IsPrivate":false,"Code":"ColorPickerControl\r\n{\r\n\tflex-direction: column;\r\n\tflex-shrink: 0;\r\n\tgap: 0.5rem;\r\n\tmargin: 1rem;\r\n}"},{"Ident":"waypoint.dropout","Path":"styles/form/_checkbox.scss","FileName":"_checkbox.scss","PackageType":"game","CodeKind":"Game","AssetVersionId":307399,"IsPrivate":false,"Code":"\r\n@import \u0022/styles/_theme.scss\u0022;\r\n\r\n$primary: $primary-blue !default;\r\n$primary-alt: white !default;\r\n$form-control-height: 24px !default;\r\n\r\n.checkbox\r\n{\r\n\tcursor: pointer;\r\n\tcolor: rgba( $primary-alt, 0.6 );\r\n\talign-items: center;\r\n\tgap: 8px;\r\n\r\n\tlabel\r\n\t{\r\n\t\tpointer-events: none;\r\n\t}\r\n\r\n\t\u003E .checkmark\r\n\t{\r\n\t\tpadding: 1px;\r\n\t\tfont-size: 22px;\r\n\t\tborder: 1px solid $primary;\r\n\t\tborder-radius: $rounding-small;\r\n\t\ttext-align: center;\r\n\t\tjustify-content: center;\r\n\t\talign-items: center;\r\n\t\tcolor: transparent;\r\n\t\tmin-height: $form-control-height;\r\n\t\tpointer-events: none;\r\n\t\tflex-shrink: 0;\r\n\t}\r\n\r\n\t\u0026.checked\r\n\t{\r\n\t\t\u003E .checkmark\r\n\t\t{\r\n\t\t\tcolor: $primary-alt;\r\n\t\t\tbackground-color: $primary;\r\n\t\t}\r\n\t}\r\n\r\n\t\u0026:active\r\n\t{\r\n\t\tcolor: $primary-alt;\r\n\t}\r\n\r\n\t\u0026:hover\r\n\t{\r\n\t\tcolor: $primary-alt;\r\n\t}\r\n}\r\n"}]}