Documentation
¶
Overview ¶
Package assets defines the boundary through which the otherwise-pure simulation obtains unit definitions and scripts. The native server build backs this with the virtual filesystem; the wasm build backs it with HTTP fetches against the studio asset endpoints (or a bundled pack). Keeping the interface here lets engine/sim and engine/session stay free of any I/O.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Provider ¶
type Provider interface {
// Unit returns the stat block and (optional) COB script binding for a unit
// type, or ok=false if the type is unknown.
Unit(name string) (meta *sim.UnitMeta, binding sim.Binding, ok bool)
}
Provider resolves a unit type name into its simulation metadata and an optional script binding. Implementations live outside the engine core so the core never imports os, net or a filesystem.
Click to show internal directories.
Click to hide internal directories.