Name

This UDA is to give a custom name to a type/field.

struct Name {}

Members

Variables

name
string name;
Undocumented in source.

Examples

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

@Name("FooBar")
struct Foo
{
    int bar;

    @Name("Not_a_type")
    string type;
}

Would produce the following SDLang file.

FooBar { bar 200 Not_a_type "SomeType" }

Meta