ItsDeltin / Overwatch-Script-To-Workshop

Converts scripts to Overwatch workshops.
208 stars 24 forks source link

Explicitly-defined anonymous struct type declaration #334

Open ItsDeltin opened 3 years ago

ItsDeltin commented 3 years ago

Right now, anonymous struct types can be inferred doing: define x = {a: 0, b: "value"} But there is currently no way to explicitly define it, so they can't be returned from functions without using an actual declared struct such as:

struct MyStruct
{
    public Number a;
    public String b;
}

Which is bulky in scenarios where it is not used much.