I can't figure out the syntax for passing an array to a method as an argument :/

Malurth

Member
Code:
void preBuff(int turns, skills[] blah) {
Code:
void preBuff(int turns, skill[] blah) {
Code:
void preBuff(int turns, skills blah) {

None of the above work, I can't find any info in the documentation, and I can't find any examples. Just using "skill" also doesn't work, of course, since it expects it to be an aggregate once you try to use it as one. Help pls?
 

heeheehee

Developer
Staff member
What kind of array? skill[4] blah is internally an array, skill[int] blah is a map keyed by integer values, and boolean[skill] blah matches plural typed constants like $skills[a, b] which are internally implemented as ArrayLists.
 
Top