pawn-natives icon indicating copy to clipboard operation
pawn-natives copied to clipboard

Add support for non-string arrays

Open BigETI opened this issue 5 years ago • 0 comments

There are no ParamCast<T> template overloads for non-string arrays. Collections such as std::vector<cell> or std::array<cell, N> could be used to interface with those parameters. std::array<cell, N> can be used if the expected size of an array is known at compile-time.

Some template overload ideas:

Immutable array:

const std::vector<cell>&

or

const std::array<cell, N>&

Mutable array:

std::vector<cell>&

or

std::vector<cell>*

or

std::array<cell, N>&

or

std::array<cell, N>*

BigETI avatar Oct 26 '20 14:10 BigETI