๐Ÿ“ฆ sleepyfran / duets

๐Ÿ“„ LeaveVehicle.Command.fs ยท 17 lines
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17namespace Duets.Cli.Components.Commands

open Duets.Cli
open Duets.Cli.SceneIndex
open Duets.Simulation

[<RequireQualifiedAccess>]
module LeaveVehicleCommand =
    /// Command to leave the car or metro.
    let get =
        { Name = "leave"
          Description = "Allows you leave the current vehicle."
          Handler =
            fun _ ->
                Situations.freeRoam |> Effect.apply
                Scene.WorldAfterMovement }