1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2024-11-08 08:47:17 +01:00
SqMod/module/Base/Vector2i.cpp

607 lines
19 KiB
C++
Raw Normal View History

// ------------------------------------------------------------------------------------------------
2015-09-30 02:56:11 +02:00
#include "Base/Vector2i.hpp"
#include "Base/Vector2.hpp"
#include "Base/DynArg.hpp"
#include "Core/Buffer.hpp"
#include "Core/Utility.hpp"
#include "Library/Numeric/Random.hpp"
2015-09-30 02:56:11 +02:00
// ------------------------------------------------------------------------------------------------
namespace SqMod {
// ------------------------------------------------------------------------------------------------
SQMOD_DECL_TYPENAME(Typename, _SC("Vector2i"))
2015-09-30 02:56:11 +02:00
// ------------------------------------------------------------------------------------------------
const Vector2i Vector2i::NIL = Vector2i(0);
const Vector2i Vector2i::MIN = Vector2i(std::numeric_limits< Vector2i::Value >::min());
const Vector2i Vector2i::MAX = Vector2i(std::numeric_limits< Vector2i::Value >::max());
2015-09-30 02:56:11 +02:00
// ------------------------------------------------------------------------------------------------
SQChar Vector2i::Delim = ',';
// ------------------------------------------------------------------------------------------------
2020-03-22 08:16:40 +01:00
Vector2i::Vector2i(Value sv) noexcept
: x(sv), y(sv)
2015-09-30 02:56:11 +02:00
{
/* ... */
2015-09-30 02:56:11 +02:00
}
// ------------------------------------------------------------------------------------------------
2020-03-22 08:16:40 +01:00
Vector2i::Vector2i(Value xv, Value yv) noexcept
: x(xv), y(yv)
2015-09-30 02:56:11 +02:00
{
/* ... */
2015-09-30 02:56:11 +02:00
}
// ------------------------------------------------------------------------------------------------
Vector2i & Vector2i::operator = (Value s)
2015-09-30 02:56:11 +02:00
{
x = s;
y = s;
return *this;
}
// ------------------------------------------------------------------------------------------------
Vector2i & Vector2i::operator = (const Vector2 & v)
2015-09-30 02:56:11 +02:00
{
x = ConvTo< Value >::From(v.x);
y = ConvTo< Value >::From(v.y);
2015-09-30 02:56:11 +02:00
return *this;
}
// ------------------------------------------------------------------------------------------------
Vector2i & Vector2i::operator += (const Vector2i & v)
2015-09-30 02:56:11 +02:00
{
x += v.x;
y += v.y;
return *this;
}
// ------------------------------------------------------------------------------------------------
Vector2i & Vector2i::operator -= (const Vector2i & v)
2015-09-30 02:56:11 +02:00
{
x -= v.x;
y -= v.y;
return *this;
}
// ------------------------------------------------------------------------------------------------
Vector2i & Vector2i::operator *= (const Vector2i & v)
2015-09-30 02:56:11 +02:00
{
x *= v.x;
y *= v.y;
return *this;
}
// ------------------------------------------------------------------------------------------------
Vector2i & Vector2i::operator /= (const Vector2i & v)
2015-09-30 02:56:11 +02:00
{
x /= v.x;
y /= v.y;
return *this;
}
// ------------------------------------------------------------------------------------------------
Vector2i & Vector2i::operator %= (const Vector2i & v)
2015-09-30 02:56:11 +02:00
{
x %= v.x;
y %= v.y;
return *this;
}
// ------------------------------------------------------------------------------------------------
Vector2i & Vector2i::operator &= (const Vector2i & v)
2015-09-30 02:56:11 +02:00
{
2020-03-22 08:16:40 +01:00
x &= v.x; // NOLINT(hicpp-signed-bitwise)
y &= v.y; // NOLINT(hicpp-signed-bitwise)
2015-09-30 02:56:11 +02:00
return *this;
}
// ------------------------------------------------------------------------------------------------
Vector2i & Vector2i::operator |= (const Vector2i & v)
2015-09-30 02:56:11 +02:00
{
2020-03-22 08:16:40 +01:00
x |= v.x; // NOLINT(hicpp-signed-bitwise)
y |= v.y; // NOLINT(hicpp-signed-bitwise)
2015-09-30 02:56:11 +02:00
return *this;
}
// ------------------------------------------------------------------------------------------------
Vector2i & Vector2i::operator ^= (const Vector2i & v)
2015-09-30 02:56:11 +02:00
{
2020-03-22 08:16:40 +01:00
x ^= v.x; // NOLINT(hicpp-signed-bitwise)
y ^= v.y; // NOLINT(hicpp-signed-bitwise)
2015-09-30 02:56:11 +02:00
return *this;
}
// ------------------------------------------------------------------------------------------------
Vector2i & Vector2i::operator <<= (const Vector2i & v)
2015-09-30 02:56:11 +02:00
{
2020-03-22 08:16:40 +01:00
x <<= v.x; // NOLINT(hicpp-signed-bitwise)
y <<= v.y; // NOLINT(hicpp-signed-bitwise)
2015-09-30 02:56:11 +02:00
return *this;
}
// ------------------------------------------------------------------------------------------------
Vector2i & Vector2i::operator >>= (const Vector2i & v)
2015-09-30 02:56:11 +02:00
{
2020-03-22 08:16:40 +01:00
x >>= v.x; // NOLINT(hicpp-signed-bitwise)
y >>= v.y; // NOLINT(hicpp-signed-bitwise)
2015-09-30 02:56:11 +02:00
return *this;
}
// ------------------------------------------------------------------------------------------------
Vector2i & Vector2i::operator += (Value s)
2015-09-30 02:56:11 +02:00
{
x += s;
y += s;
return *this;
}
// ------------------------------------------------------------------------------------------------
Vector2i & Vector2i::operator -= (Value s)
2015-09-30 02:56:11 +02:00
{
x -= s;
y -= s;
return *this;
}
// ------------------------------------------------------------------------------------------------
Vector2i & Vector2i::operator *= (Value s)
2015-09-30 02:56:11 +02:00
{
x *= s;
y *= s;
return *this;
}
// ------------------------------------------------------------------------------------------------
Vector2i & Vector2i::operator /= (Value s)
2015-09-30 02:56:11 +02:00
{
x /= s;
y /= s;
return *this;
}
// ------------------------------------------------------------------------------------------------
Vector2i & Vector2i::operator %= (Value s)
2015-09-30 02:56:11 +02:00
{
x %= s;
y %= s;
return *this;
}
// ------------------------------------------------------------------------------------------------
Vector2i & Vector2i::operator &= (Value s)
2015-09-30 02:56:11 +02:00
{
2020-03-22 08:16:40 +01:00
x &= s; // NOLINT(hicpp-signed-bitwise)
y &= s; // NOLINT(hicpp-signed-bitwise)
2015-09-30 02:56:11 +02:00
return *this;
}
// ------------------------------------------------------------------------------------------------
Vector2i & Vector2i::operator |= (Value s)
2015-09-30 02:56:11 +02:00
{
2020-03-22 08:16:40 +01:00
x |= s; // NOLINT(hicpp-signed-bitwise)
y |= s; // NOLINT(hicpp-signed-bitwise)
2015-09-30 02:56:11 +02:00
return *this;
}
// ------------------------------------------------------------------------------------------------
Vector2i & Vector2i::operator ^= (Value s)
2015-09-30 02:56:11 +02:00
{
x += s;
y += s;
return *this;
}
// ------------------------------------------------------------------------------------------------
Vector2i & Vector2i::operator <<= (Value s)
2015-09-30 02:56:11 +02:00
{
2020-03-22 08:16:40 +01:00
x <<= s; // NOLINT(hicpp-signed-bitwise)
y <<= s; // NOLINT(hicpp-signed-bitwise)
2015-09-30 02:56:11 +02:00
return *this;
}
// ------------------------------------------------------------------------------------------------
Vector2i & Vector2i::operator >>= (Value s)
2015-09-30 02:56:11 +02:00
{
2020-03-22 08:16:40 +01:00
x >>= s; // NOLINT(hicpp-signed-bitwise)
y >>= s; // NOLINT(hicpp-signed-bitwise)
2015-09-30 02:56:11 +02:00
return *this;
}
// ------------------------------------------------------------------------------------------------
Vector2i & Vector2i::operator ++ ()
2015-09-30 02:56:11 +02:00
{
++x;
++y;
return *this;
}
// ------------------------------------------------------------------------------------------------
Vector2i & Vector2i::operator -- ()
2015-09-30 02:56:11 +02:00
{
--x;
--y;
return *this;
}
// ------------------------------------------------------------------------------------------------
2020-03-22 08:16:40 +01:00
Vector2i Vector2i::operator ++ (int) // NOLINT(cert-dcl21-cpp)
2015-09-30 02:56:11 +02:00
{
Vector2i state(*this);
++x;
++y;
return state;
}
// ------------------------------------------------------------------------------------------------
2020-03-22 08:16:40 +01:00
Vector2i Vector2i::operator -- (int) // NOLINT(cert-dcl21-cpp)
2015-09-30 02:56:11 +02:00
{
Vector2i state(*this);
--x;
--y;
return state;
}
// ------------------------------------------------------------------------------------------------
Vector2i Vector2i::operator + (const Vector2i & v) const
2015-09-30 02:56:11 +02:00
{
2020-03-22 08:16:40 +01:00
return {x + v.x, y + v.y};
2015-09-30 02:56:11 +02:00
}
// ------------------------------------------------------------------------------------------------
Vector2i Vector2i::operator - (const Vector2i & v) const
2015-09-30 02:56:11 +02:00
{
2020-03-22 08:16:40 +01:00
return {x - v.x, y - v.y};
2015-09-30 02:56:11 +02:00
}
// ------------------------------------------------------------------------------------------------
Vector2i Vector2i::operator * (const Vector2i & v) const
2015-09-30 02:56:11 +02:00
{
2020-03-22 08:16:40 +01:00
return {x * v.x, y * v.y};
2015-09-30 02:56:11 +02:00
}
// ------------------------------------------------------------------------------------------------
Vector2i Vector2i::operator / (const Vector2i & v) const
2015-09-30 02:56:11 +02:00
{
2020-03-22 08:16:40 +01:00
return {x / v.x, y / v.y};
2015-09-30 02:56:11 +02:00
}
// ------------------------------------------------------------------------------------------------
Vector2i Vector2i::operator % (const Vector2i & v) const
2015-09-30 02:56:11 +02:00
{
2020-03-22 08:16:40 +01:00
return {x % v.x, y % v.y};
2015-09-30 02:56:11 +02:00
}
// ------------------------------------------------------------------------------------------------
Vector2i Vector2i::operator & (const Vector2i & v) const
2015-09-30 02:56:11 +02:00
{
2020-03-22 08:16:40 +01:00
return {x & v.x, y & v.y}; // NOLINT(hicpp-signed-bitwise)
2015-09-30 02:56:11 +02:00
}
// ------------------------------------------------------------------------------------------------
Vector2i Vector2i::operator | (const Vector2i & v) const
2015-09-30 02:56:11 +02:00
{
2020-03-22 08:16:40 +01:00
return {x | v.x, y | v.y}; // NOLINT(hicpp-signed-bitwise)
2015-09-30 02:56:11 +02:00
}
// ------------------------------------------------------------------------------------------------
Vector2i Vector2i::operator ^ (const Vector2i & v) const
2015-09-30 02:56:11 +02:00
{
2020-03-22 08:16:40 +01:00
return {x ^ v.x, y ^ v.y}; // NOLINT(hicpp-signed-bitwise)
2015-09-30 02:56:11 +02:00
}
// ------------------------------------------------------------------------------------------------
Vector2i Vector2i::operator << (const Vector2i & v) const
2015-09-30 02:56:11 +02:00
{
2020-03-22 08:16:40 +01:00
return {x << v.x, y << v.y}; // NOLINT(hicpp-signed-bitwise)
2015-09-30 02:56:11 +02:00
}
// ------------------------------------------------------------------------------------------------
Vector2i Vector2i::operator >> (const Vector2i & v) const
2015-09-30 02:56:11 +02:00
{
2020-03-22 08:16:40 +01:00
return {x >> v.x, y >> v.y}; // NOLINT(hicpp-signed-bitwise)
2015-09-30 02:56:11 +02:00
}
// ------------------------------------------------------------------------------------------------
Vector2i Vector2i::operator + (Value s) const
2015-09-30 02:56:11 +02:00
{
2020-03-22 08:16:40 +01:00
return {x + s, y + s};
2015-09-30 02:56:11 +02:00
}
// ------------------------------------------------------------------------------------------------
Vector2i Vector2i::operator - (Value s) const
2015-09-30 02:56:11 +02:00
{
2020-03-22 08:16:40 +01:00
return {x - s, y - s};
2015-09-30 02:56:11 +02:00
}
// ------------------------------------------------------------------------------------------------
Vector2i Vector2i::operator * (Value s) const
2015-09-30 02:56:11 +02:00
{
2020-03-22 08:16:40 +01:00
return {x * s, y * s};
2015-09-30 02:56:11 +02:00
}
// ------------------------------------------------------------------------------------------------
Vector2i Vector2i::operator / (Value s) const
2015-09-30 02:56:11 +02:00
{
2020-03-22 08:16:40 +01:00
return {x / s, y / s};
2015-09-30 02:56:11 +02:00
}
// ------------------------------------------------------------------------------------------------
Vector2i Vector2i::operator % (Value s) const
2015-09-30 02:56:11 +02:00
{
2020-03-22 08:16:40 +01:00
return {x % s, y % s};
2015-09-30 02:56:11 +02:00
}
// ------------------------------------------------------------------------------------------------
Vector2i Vector2i::operator & (Value s) const
2015-09-30 02:56:11 +02:00
{
2020-03-22 08:16:40 +01:00
return {x & s, y & s}; // NOLINT(hicpp-signed-bitwise)
2015-09-30 02:56:11 +02:00
}
// ------------------------------------------------------------------------------------------------
Vector2i Vector2i::operator | (Value s) const
2015-09-30 02:56:11 +02:00
{
2020-03-22 08:16:40 +01:00
return {x | s, y | s}; // NOLINT(hicpp-signed-bitwise)
2015-09-30 02:56:11 +02:00
}
// ------------------------------------------------------------------------------------------------
Vector2i Vector2i::operator ^ (Value s) const
2015-09-30 02:56:11 +02:00
{
2020-03-22 08:16:40 +01:00
return {x ^ s, y ^ s}; // NOLINT(hicpp-signed-bitwise)
2015-09-30 02:56:11 +02:00
}
// ------------------------------------------------------------------------------------------------
Vector2i Vector2i::operator << (Value s) const
2015-09-30 02:56:11 +02:00
{
2020-03-22 08:16:40 +01:00
return {x << s, y << s}; // NOLINT(hicpp-signed-bitwise)
2015-09-30 02:56:11 +02:00
}
// ------------------------------------------------------------------------------------------------
Vector2i Vector2i::operator >> (Value s) const
2015-09-30 02:56:11 +02:00
{
2020-03-22 08:16:40 +01:00
return {x >> s, y >> s}; // NOLINT(hicpp-signed-bitwise)
2015-09-30 02:56:11 +02:00
}
// ------------------------------------------------------------------------------------------------
Vector2i Vector2i::operator + () const
2015-09-30 02:56:11 +02:00
{
2020-03-22 08:16:40 +01:00
return {std::abs(x), std::abs(y)};
2015-09-30 02:56:11 +02:00
}
// ------------------------------------------------------------------------------------------------
Vector2i Vector2i::operator - () const
2015-09-30 02:56:11 +02:00
{
2020-03-22 08:16:40 +01:00
return {-x, -y};
2015-09-30 02:56:11 +02:00
}
// ------------------------------------------------------------------------------------------------
Vector2i Vector2i::operator ~ () const
2015-09-30 02:56:11 +02:00
{
2020-03-22 08:16:40 +01:00
return {~x, ~y}; // NOLINT(hicpp-signed-bitwise)
2015-09-30 02:56:11 +02:00
}
// ------------------------------------------------------------------------------------------------
bool Vector2i::operator == (const Vector2i & v) const
2015-09-30 02:56:11 +02:00
{
return (x == v.x) && (y == v.y);
}
// ------------------------------------------------------------------------------------------------
bool Vector2i::operator != (const Vector2i & v) const
2015-09-30 02:56:11 +02:00
{
return (x != v.x) || (y != v.y);
2015-09-30 02:56:11 +02:00
}
// ------------------------------------------------------------------------------------------------
bool Vector2i::operator < (const Vector2i & v) const
2015-09-30 02:56:11 +02:00
{
return (x < v.x) && (y < v.y);
}
// ------------------------------------------------------------------------------------------------
bool Vector2i::operator > (const Vector2i & v) const
2015-09-30 02:56:11 +02:00
{
return (x > v.x) && (y > v.y);
}
// ------------------------------------------------------------------------------------------------
bool Vector2i::operator <= (const Vector2i & v) const
2015-09-30 02:56:11 +02:00
{
return (x <= v.x) && (y <= v.y);
}
// ------------------------------------------------------------------------------------------------
bool Vector2i::operator >= (const Vector2i & v) const
2015-09-30 02:56:11 +02:00
{
return (x >= v.x) && (y >= v.y);
}
// ------------------------------------------------------------------------------------------------
int32_t Vector2i::Cmp(const Vector2i & o) const
2015-09-30 02:56:11 +02:00
{
if (*this == o)
{
return 0;
}
else if (*this > o)
{
return 1;
}
else
{
return -1;
}
2015-09-30 02:56:11 +02:00
}
// ------------------------------------------------------------------------------------------------
String Vector2i::ToString() const
2015-09-30 02:56:11 +02:00
{
return fmt::format("{},{}", x, y);
2015-09-30 02:56:11 +02:00
}
// ------------------------------------------------------------------------------------------------
void Vector2i::SetScalar(Value ns)
2015-09-30 02:56:11 +02:00
{
x = ns;
y = ns;
}
// ------------------------------------------------------------------------------------------------
void Vector2i::SetVector2i(const Vector2i & v)
2015-09-30 02:56:11 +02:00
{
x = v.x;
y = v.y;
2015-09-30 02:56:11 +02:00
}
// ------------------------------------------------------------------------------------------------
void Vector2i::SetVector2iEx(Value nx, Value ny)
2015-09-30 02:56:11 +02:00
{
x = nx;
y = ny;
2015-09-30 02:56:11 +02:00
}
// ------------------------------------------------------------------------------------------------
void Vector2i::SetVector2(const Vector2 & v)
2015-09-30 02:56:11 +02:00
{
x = ConvTo< Value >::From(v.x);
y = ConvTo< Value >::From(v.y);
2015-09-30 02:56:11 +02:00
}
// ------------------------------------------------------------------------------------------------
void Vector2i::SetStr(SQChar delim, StackStrF & values)
2015-09-30 02:56:11 +02:00
{
SetVector2i(Vector2i::GetEx(delim, values));
2015-09-30 02:56:11 +02:00
}
// ------------------------------------------------------------------------------------------------
2021-03-20 16:56:38 +01:00
Vector2i & Vector2i::Generate()
2015-09-30 02:56:11 +02:00
{
x = GetRandomInt32();
y = GetRandomInt32();
2021-03-20 16:56:38 +01:00
// Allow chaining
return *this;
2015-09-30 02:56:11 +02:00
}
// ------------------------------------------------------------------------------------------------
2021-03-20 16:56:38 +01:00
Vector2i & Vector2i::GenerateB(Value min, Value max)
2015-09-30 02:56:11 +02:00
{
if (max < min)
{
STHROWF("max value is lower than min value");
}
x = GetRandomInt32(min, max);
y = GetRandomInt32(min, max);
2021-03-20 16:56:38 +01:00
// Allow chaining
return *this;
2015-09-30 02:56:11 +02:00
}
// ------------------------------------------------------------------------------------------------
2021-03-20 16:56:38 +01:00
Vector2i & Vector2i::GenerateR(Value xmin, Value xmax, Value ymin, Value ymax)
2015-09-30 02:56:11 +02:00
{
if (xmax < xmin || ymax < ymin)
{
STHROWF("max value is lower than min value");
}
x = GetRandomInt32(ymin, ymax);
y = GetRandomInt32(xmin, xmax);
2021-03-20 16:56:38 +01:00
// Allow chaining
return *this;
2015-09-30 02:56:11 +02:00
}
// ------------------------------------------------------------------------------------------------
Vector2i Vector2i::Abs() const
2015-09-30 02:56:11 +02:00
{
2020-03-22 08:16:40 +01:00
return {std::abs(x), std::abs(y)};
2015-09-30 02:56:11 +02:00
}
// ------------------------------------------------------------------------------------------------
String Vector2i::Format(StackStrF & str) const
{
return fmt::format(str.ToStr()
, fmt::arg("x", x)
, fmt::arg("y", y)
);
}
// ------------------------------------------------------------------------------------------------
const Vector2i & Vector2i::Get(StackStrF & str)
{
return Vector2i::GetEx(Vector2i::Delim, str);
}
// ------------------------------------------------------------------------------------------------
const Vector2i & Vector2i::GetEx(SQChar delim, StackStrF & str)
{
static Vector2i vec;
// Clear previous values, if any
vec.Clear();
// Is the specified string empty?
if (str.mLen <= 0)
{
return vec; // Return the value as is!
}
// The format specifications that will be used to scan the string
SQChar fs[] = _SC(" %d , %d ");
// Assign the specified delimiter
fs[4] = delim;
// Attempt to extract the component values from the specified string
std::sscanf(str.mPtr, &fs[0], &vec.x, &vec.y);
// Return the resulted value
return vec;
}
2015-09-30 02:56:11 +02:00
// ================================================================================================
void Register_Vector2i(HSQUIRRELVM vm)
2015-09-30 02:56:11 +02:00
{
typedef Vector2i::Value Val;
RootTable(vm).Bind(Typename::Str,
Class< Vector2i >(vm, Typename::Str)
// Constructors
2015-09-30 02:56:11 +02:00
.Ctor()
.Ctor< Val >()
.Ctor< Val, Val >()
// Member Variables
.Var(_SC("x"), &Vector2i::x)
.Var(_SC("y"), &Vector2i::y)
.Var(_SC("X"), &Vector2i::x)
.Var(_SC("Y"), &Vector2i::y)
// Core Meta-methods
.SquirrelFunc(_SC("cmp"), &SqDynArgFwd< SqDynArgCmpFn< Vector2i >, SQFloat, SQInteger, bool, std::nullptr_t, Vector2i >)
.SquirrelFunc(_SC("_typename"), &Typename::Fn)
.Func(_SC("_tostring"), &Vector2i::ToString)
// Meta-methods
.SquirrelFunc(_SC("_add"), &SqDynArgFwd< SqDynArgAddFn< Vector2i >, SQFloat, SQInteger, bool, std::nullptr_t, Vector2i >)
.SquirrelFunc(_SC("_sub"), &SqDynArgFwd< SqDynArgSubFn< Vector2i >, SQFloat, SQInteger, bool, std::nullptr_t, Vector2i >)
.SquirrelFunc(_SC("_mul"), &SqDynArgFwd< SqDynArgMulFn< Vector2i >, SQFloat, SQInteger, bool, std::nullptr_t, Vector2i >)
.SquirrelFunc(_SC("_div"), &SqDynArgFwd< SqDynArgDivFn< Vector2i >, SQFloat, SQInteger, bool, std::nullptr_t, Vector2i >)
.SquirrelFunc(_SC("_modulo"), &SqDynArgFwd< SqDynArgModFn< Vector2i >, SQFloat, SQInteger, bool, std::nullptr_t, Vector2i >)
.Func< Vector2i (Vector2i::*)(void) const >(_SC("_unm"), &Vector2i::operator -)
// Properties
.Prop(_SC("Abs"), &Vector2i::Abs)
// Member Methods
.Func(_SC("SetScalar"), &Vector2i::SetScalar)
.Func(_SC("SetVector2i"), &Vector2i::SetVector2i)
.Func(_SC("SetVector2iEx"), &Vector2i::SetVector2iEx)
.Func(_SC("SetVector2"), &Vector2i::SetVector2)
.FmtFunc(_SC("SetStr"), &Vector2i::SetStr)
.Func(_SC("Clear"), &Vector2i::Clear)
.FmtFunc(_SC("Format"), &Vector2i::Format)
// Member Overloads
2021-03-20 16:56:38 +01:00
.Overload(_SC("Generate"), &Vector2i::Generate)
.Overload(_SC("Generate"), &Vector2i::GenerateB)
.Overload(_SC("Generate"), &Vector2i::GenerateR)
// Static Functions
.StaticFunc(_SC("GetDelimiter"), &SqGetDelimiter< Vector2i >)
.StaticFunc(_SC("SetDelimiter"), &SqSetDelimiter< Vector2i >)
.StaticFmtFunc(_SC("FromStr"), &Vector2i::Get)
.StaticFmtFunc(_SC("FromStrEx"), &Vector2i::GetEx)
2015-09-30 02:56:11 +02:00
);
}
} // Namespace:: SqMod