Attribute

This UDA should be attached to any field that is used as an attribute.

For binary based archives, this likely has no real meaning. For text based archives, this will likely determine how the value is formatted.

struct Attribute

Examples

For example, with the SDLang archive (ArchiveSDL), the following struct.

struct Foo
{
    int bar;

    @Attribute
    string type;
}

Would produce the following SDLang file.

Foo type="SomeType" { bar 200 }

Meta