Y-Less/pawn-natives

Add support for non-string arrays

BigETI opened this issue · 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>*