Unit_Type is a class, which has properties Name, Icon, List_Owned. Super_Unit, Military_Unit and Civilian_Unit will all be properties of your Module and will be declared almost identically as VB, except that the IDE separates it out into separate fields.
Eg., go to the module and add a property. Set the fields as
Name: Super_Unit(300)
Type: Unit_Type
Scope: Global
Do the same for the other 2 arrays.
Something that hasn’t come up yet is that you will have to instantiate instances of the class before you can use it. This could be something as simple as putting this code in the open event of your window.
for i as integer = 0 to 299
Super_Unit(i) = new Unit_Type
next
I tend to instantiate objects as needed, rather than preallocate them. You can also build the array as needed with Super_Unit.Append(new Unit_type)
. That allows you to have a variable sized array instead of a fixed 300 slots.