Vixen
02b45cc4
csharp
public sealed class PlayerSession

One running player process.

No guide page documents this yet — the page shows what the code says about itself.

Fields and properties (5)

  • public PlayerRole Role

    What it is for.

  • public int ProcessId

    Its process id, for a log line and for the session panel.

  • public int InspectorPort

    The port the remote inspector attaches on, or zero.

  • public bool IsRunning

    Whether it is still running.

  • public int? ExitCode

    What it exited with, or while it is running.

Events (1)

  • public Action<PlayerSession>? Ended

    Raised when the process ends, however it ended.

Methods (2)

  • public void Stop(TimeSpan grace = default(TimeSpan))

    Asks it to close, and kills it if it will not.

  • public void Dispose()

    Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

Used by (1)

  • PlayerSessionsVixen.Editor.SceneView