Vixen
02b45cc4
csharp
public static class InputActionAssetReader

Binds a parsed .vxinput tree to the asset model.

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

Remarks

Hand-written rather than driven by Vixen.Core.Yaml's object mapper, for the reason VxInputNode gives: the same code has to run inside the compiler, where a generated type registry does not exist. The cost is this file; the benefit is that the accessor a project compiles against and the asset it loads at run time were produced by one reader.

Nothing throws. Every problem is a diagnostic with a line and a column, because the two callers both want to report rather than crash — a generator turns them into compiler errors against the file, and the runtime loader into a log line naming the asset.

Methods (1)

  • public static InputAssetReadResult Read(string text, string defaultName = "InputActions")

    Reads a document.

Used by (7)

  • GeneratedAccessorTestsVixen.Input.Tests
  • InputActionAssetTestsVixen.Input.Tests
  • InputActionsVixen.Input
  • SampleVixen.Input.Tests
  • VxInputGeneratorVixen.Input.Generators
  • AuthoringTestsVixen.Editor.AssetEditors.Tests
  • InputActionsDocumentVixen.Editor.AssetEditors