How would I resize an array of a type?
Like my Create function creates the array like so:
Function Create:City(amount:Int,maxheight:Int,minheight:Int)
Local c:City=New City
c.Buildings=New Building[30]
For Local i:Int=0 To amount-1
c.Buildings[i]=New Building
Next
Return c
End Function
How exactly would I resize the Buildings:Building[] array?
Like my Create function creates the array like so:
Function Create:City(amount:Int,maxheight:Int,minheight:Int)
Local c:City=New City
c.Buildings=New Building[30]
For Local i:Int=0 To amount-1
c.Buildings[i]=New Building
Next
Return c
End Function
How exactly would I resize the Buildings:Building[] array?