Vixen
02b45cc4
csharp
public sealed class RemoteInspectorView

A running build's entities, its counters, and a way to write a value back.

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

Remarks

Doc 13 calls this "how mobile and console debugging actually happens", and doc 20's E4 asks for an entity to be mutated live. The entity tree is the far end's — the editor has no idea what those entities are or which scene they came from — which is why the rows carry a name and a component list rather than anything this process could inspect.

⚠ The write box takes Component.Member and a text value rather than drawing the inspector. Drawing a real inspector needs the far end's type descriptors, which is a second protocol and a schema negotiation between two builds that may differ. What a text field buys is that the exit criterion — an entity mutated live — is met today, over a protocol both ends can implement in an afternoon.

⚠ Polled from the panel's tick rather than from a thread. That is the transport's own contract: nothing is delivered outside Poll, so the entity list is only ever touched on the frame thread and the panel needs no lock.

Fields and properties (12)

  • protected override string TagName

    The element name this type answers to when a caller does not choose one.

  • protected override bool AcceptsFocus

    Whether the focus can rest on this kind of control at all.

  • public UiElement Toolbar

    The strip along the top.

  • public Button AttachButton

    Attaches and detaches.

  • public Button RefreshButton

    Asks for the tree again.

  • public UiElement Status

    What the connection is doing.

  • public TreeView Tree

    The entities.

  • public UiElement CounterPane

    The live numbers.

  • public TextBox Member

    Which member to write, as Component.Member.

  • public TextBox Value

    What to write into it.

  • public Button Apply

    Writes it.

  • public RemoteEntity? Selected

    Which entity is selected, or .

Methods (4)

  • public void Show(RemoteInspectorClient inspector)

    Points the panel at a client.

  • public void Tick(TimeSpan elapsed)

    Advances the connection.

  • protected override void OnCreated()

    Builds whatever this element is made of, once, as it joins a document.

  • protected override void OnRemoved()

    Called once, as the element leaves the document.

Used by (1)

  • DiagnosticsModuleVixen.Editor.Diagnostics