![]() |
Attention | Topic was automatically imported from the old Question2Answer platform. |
![]() |
Asked By | Sylbur81PL |
Hello, I would like to write a star merchant style game on the GODOT 4 engine.
As a resource I have created a ship class which contains a hull type in addition to damage, name, etc. And when a hull resource is added I would like it to have a specified in the array how many cargo or passenger modules I can add to it.
For example:
extends Resource
class_name StarshipHull
@export var name: String
@export var hullModules: Array # how to specify for many types of hulls
when I create Array it always have size 0.
Thank You for feedback.