Instantiating a struct in Verse

Yup which is why I had the @editable in the code from before but it gave off that build error about the unhandled attribute type. Any ideas?

Levels := struct {
    @editable
    Teleporters : []teleporter_device = array{teleporter_device{}}
}




PickMap := class(creative_device):

    Level : []Levels = array{Levels  {
    }}

    # Runs when the device is started in a running game
    OnBegin<override>()<suspends>:void=
        Print("Game Started")

Putting @editable above ‘Level’ gives an error (The editable attribute is not supported for classes that aren’t concrete.)
and having it inside the struct doesn’t seem to be doing anything

1 Like