Arrays in functions

I think I’m going to take a different approach. I want to have a dropdown menu in my gamemanager where I can select any mode (in this case 1vs1 or 2vs2) and in each of those modes, I want to be able to select different barriers and teleporters to activate.

Along the way, however, I’m wondering if it’s possible to access different classes in such a dropdown menu. Essentially, I’ve created a class with a specific game mode (in this case, Boxfights) and in the game manager class itself, I’m now trying to create the dropdown menu I envisioned. I tried it with the kind of code shown below:

Game_Boxfights := class():
var CurrentMode : string = “No game mode selected”
@editable var Barriers : barrier_device = array{}
@editable var Teleporters : teleporter_device = array{}

Mode_1vs1() : void=
    set CurrentMode = "1vs1"

Mode_2vs2() : void=
    set CurrentMode = "2vs2"

gamemanager := class(creative_device):
@editable Boxfights : Game_Boxfights = CurrentMode{}

After trying many different approaches, I still can’t get it to work. Any suggestions?