Type Field initializers

Blitz3D Forums/Blitz3D Programming/Type Field initializers

No, but you could do something like ...

Function CreateTypeWeapon()

   tw.TypeWeapon = New TypeWeapon
   tw\WeaponID% = 1
   tw\Ammo% = 500
   tw\FireRate% = 2
   tw\Velocity% = 100
   tw\Range% = 500
   tw\Damage% = 1
   tw\Force% = 1
   tw\Weight% = 50

End Function


Then you could just call the function to create a new instance with all the variables initialized. Of course you probably do that already and don't care but I thought I'd try something more than just ... no.