rigComponent 0.1.1
RigKit pack API - rigComponent
Loading...
Searching...
No Matches
rigkit::ecs::CCode Struct Reference

An editable text / source buffer owned by the ECS. More...

#include <rigComponent/src/CCode.h>

Public Member Functions

std::vector< sProp > GetProperties ()
 text is deliberately absent - buffers are too large for inspector rows.

Public Attributes

std::string language
 Lowercase id: "gcode", "svg", "python", "" = plain.
bool dirty = false
 Set by the editor on edit, cleared by producers on regenerate.
uint32_t epoch = 0
 Bumped whenever text is replaced by a producer, so editors reload.

Detailed Description

An editable text / source buffer owned by the ECS.

NO CODE JUST DATA. One entity per buffer. Producers (exporters, generators) write text; editor packs list every CCode entity and edit it in place, so the component - not a file and not an editor buffer - is the source of truth. Compose CAssetRef on the same entity when the buffer has an on-disk origin or export target (rig.media.asset_ref). name / order stay host chrome until rig.meta.named. dirty / epoch are editor cache

  • do not serialize (see port-map).

The documentation for this struct was generated from the following file:
  • packs/rigComponent/src/CCode.h