API reference
This chapter lists every public type in the product assemblies. Anything not listed here is internal, so code outside the product assemblies cannot depend on it. The public surface is kept narrow, and the listed types are all that your code and your plugins can use.
In this chapter
- Plugin contracts: find the interface a plugin implements, the registry it fills and the observer it can attach to the pipeline.
- Types and grammar: parse your own cell type, read the sheet grammar constants, and handle asset references, asset delivery and visual values.
- Validation and edges: add a domain validator, scan references and declare the edges of the reference graph.
- Canvas and surfaces: shape the record canvas, add a color preset, declare authoring surfaces and register code registries.
- IR model and errors: read the imported tables in the intermediate representation (IR), handle errors and results, and read the push plan.
- Editor assembly: run an import from code, add a delivery mode or a source provider, approve a push and drive the authoring engine.
- Studio extension points: mount your own UI in the Data Studio.
- Runtime assembly: load baked databases in your game and extend the generated types.
Find a type
Types are grouped by assembly, then by the job they do.
Core assembly
SheetForge.Core is pure C#. It has no UnityEngine, no IO, no network and no domain knowledge. The compiler enforces this, because Core references nothing.
| Types | Page |
|---|---|
| Plugin interfaces, composition, registries, templates, plugin UI strings, pipeline observation | Plugin contracts |
| Custom cell types, sheet grammar constants, typed asset references, asset delivery, visual value types | Types and grammar |
| Domain validation, the edge seam, the reference graph index | Validation and edges |
| Record canvas, color presets, declarative authoring surfaces, code registries | Canvas and surfaces |
| IR read model, errors and results, indices and utilities, push plan | IR model and errors |
Editor assembly
SheetForge.Editor takes two pages.
| Types | Page |
|---|---|
| Settings, localization, composition, the delivery seam, the source-provider seam, push approval, the authoring engine, staging value types, authoring helpers | Editor assembly |
| Data Studio extension points | Studio extension points |
Several editor types work on staged edits. A staged edit is one that the Data Studio holds and has not yet written to the source. How an edit reaches the sheet shows the whole cycle.
Runtime assembly
| Types | Page |
|---|---|
The types of SheetForge.Runtime, the pattern of the generated types | Runtime assembly |
Size of the public surface
| Assembly | Public types |
|---|---|
Core (SheetForge.Core + SheetForge.Core.Tooling) | 144 (Core: 137, Core.Tooling: 7) |
| Editor | 58 top-level, plus their public nested types |
| Runtime | 15, plus generated outputs |
Core.Tooling is the editor-only half of Core. It holds import-time services such as reporting and push planning. None of it ships in player builds.
The types are counted on the 1.1.0 sources as namespace-level public types. The 1.1.0 additions are the six asset-delivery types in Core, the five types of the editor delivery seam, and the eight runtime loading types. Core.Tooling's seventh type is PlannedRowDelete, the row-deletion part of a Push plan. Each is named on its own page.
This is exactly the surface that the consumer-simulation tests compile against. Those tests use no InternalsVisibleTo.
Conventions
Signatures are abbreviated. … means "see the source XML docs". "Pure" means no UnityEngine and no IO.
Compile-time detection
A separate asset can detect at compile time that SheetForge is installed. It checks the SHEETFORGE scripting-define symbol, which the Editor assembly self-registers. The symbol is a define, not a public type, so the type tables do not list it. See Detect SheetForge from another asset.
SHEETFORGE_ADDRESSABLES is a different symbol. It is an internal version-define that only marks whether the Addressables package is present. It guards the Addressables loader alone, not the load API.
Other assemblies
None of these assemblies adds product API.
The sample assemblies come from the demo packages. Try the demos says where each package is and how to run it. This section lists only what each sample compiles into.
SheetForge.Setup
SheetForge.Setup is the dependency-free Addressables-absence bootstrap. It has no public API. Everything in it is internal, and it exists to show a guidance window. The setup notice describes that window.
The bootstrap reads a per-project editor preference that the product writes on every domain reload. It therefore stays quiet when every workbook in the project delivers through a Resources folder or a scene catalogue.
SheetForge.PluginDemo
SheetForge.PluginDemo holds the Plugin demo, the reference sample. It is not product API. It is one merged asmdef plus a Demo.Editor asmdef. The content namespace is SheetForge.Skills.
| Type | What it shows |
|---|---|
SkillsPlugin | Seven plugin interfaces: base, validator, edge, template, graph, code registry, theme |
Modifier + ModifierCellParser | A custom cell type |
ModifierStatEdgeContributor | An edge contributor |
ExamplePipelineAugmenter / ExampleReactiveAugmenter | Canvas overrides |
ExampleCodeAtoms | The _Refs code registry |
ExampleStudioUi | Declarative actions, a panel, a column badge and a cell-editor hint |
ExampleImportObserver | A pipeline observer |
ExampleStageStripWidget / ExampleInspectorAction / ExampleStudioPanel | Data Studio Editor extension points, painted from the public palette |
ExampleLocStrings | Registers the labels of those extension points in two languages |
SkillRunner | The game code that consumes the data |
ExampleLocStrings lives in the main assembly, so the browser shows the labels too.
The package also holds an assembly-level SheetForgePluginCompat declaration.
Its generated Example* types sit in the default SheetForge.Generated namespace. Isolation is by the Example* prefix, not by a separate namespace.
SheetForge.CoreDemo
SheetForge.CoreDemo holds the Core-only demo, the plugin-free sample. It ships with zero asmdefs and compiles into Assembly-CSharp.
SheetForge.ResourcesDemo
SheetForge.ResourcesDemo holds the Resources demo, which delivers through the Resources folder delivery mode. Nothing in the sample mentions Addressables.
The sample has one runtime asmdef, which references SheetForge.Runtime only, plus a Demo.Editor asmdef.
Next steps
- Plugin authoring
The contracts in use, with full examples.
- Authoring kernel
The engine types in context.
- Capabilities and limits
The behavioral boundaries of these APIs.