Function field

Meant to be added to members for making them YAML accessible.

Prototype

auto field(string loader)(
  string name
);

Parameters

NameDescription
name The name of the tag in YAML.
loader If cannot be loaded directly, specify function used to load it.

Example

@yamlComponent("Test")
class Test : Component
{
    @field("X")
    int x;
}

Authors

Copyright

License