It is necessary to write an array of structures in Swift, based on existing c ++ code.
c ++:
struct luchnik{ int sila=0, target; float hp=100, udar=0; }; Then an array of structures is created.
luchnik a[20]; And the following work with him: Appeal to certain elements, their change, etc. How best to implement it on Swift?
As I understand it, they do not use a similar work scheme.
swift массивы,swift классы. - AivanF.