static SQInteger DisplayEffect_fade_out_wrapper(HSQUIRRELVM vm)
{
- Scripting::DisplayEffect* _this;
- if(SQ_FAILED(sq_getinstanceup(vm, 1, reinterpret_cast<SQUserPointer*> (&_this), 0))) {
+ SQUserPointer data;
+ if(SQ_FAILED(sq_getinstanceup(vm, 1, &data, 0))) {
sq_throwerror(vm, _SC("'fade_out' called without instance"));
return SQ_ERROR;
}
+ Scripting::DisplayEffect* _this = reinterpret_cast<Scripting::DisplayEffect*> (data);
SQFloat arg0;
if(SQ_FAILED(sq_getfloat(vm, 2, &arg0))) {
sq_throwerror(vm, _SC("Argument 1 not a float"));
static SQInteger DisplayEffect_fade_in_wrapper(HSQUIRRELVM vm)
{
- Scripting::DisplayEffect* _this;
- if(SQ_FAILED(sq_getinstanceup(vm, 1, reinterpret_cast<SQUserPointer*> (&_this), 0))) {
+ SQUserPointer data;
+ if(SQ_FAILED(sq_getinstanceup(vm, 1, &data, 0))) {
sq_throwerror(vm, _SC("'fade_in' called without instance"));
return SQ_ERROR;
}
+ Scripting::DisplayEffect* _this = reinterpret_cast<Scripting::DisplayEffect*> (data);
SQFloat arg0;
if(SQ_FAILED(sq_getfloat(vm, 2, &arg0))) {
sq_throwerror(vm, _SC("Argument 1 not a float"));
static SQInteger DisplayEffect_set_black_wrapper(HSQUIRRELVM vm)
{
- Scripting::DisplayEffect* _this;
- if(SQ_FAILED(sq_getinstanceup(vm, 1, reinterpret_cast<SQUserPointer*> (&_this), 0))) {
+ SQUserPointer data;
+ if(SQ_FAILED(sq_getinstanceup(vm, 1, &data, 0))) {
sq_throwerror(vm, _SC("'set_black' called without instance"));
return SQ_ERROR;
}
+ Scripting::DisplayEffect* _this = reinterpret_cast<Scripting::DisplayEffect*> (data);
SQBool arg0;
if(SQ_FAILED(sq_getbool(vm, 2, &arg0))) {
sq_throwerror(vm, _SC("Argument 1 not a bool"));
static SQInteger DisplayEffect_is_black_wrapper(HSQUIRRELVM vm)
{
- Scripting::DisplayEffect* _this;
- if(SQ_FAILED(sq_getinstanceup(vm, 1, reinterpret_cast<SQUserPointer*> (&_this), 0))) {
+ SQUserPointer data;
+ if(SQ_FAILED(sq_getinstanceup(vm, 1, &data, 0))) {
sq_throwerror(vm, _SC("'is_black' called without instance"));
return SQ_ERROR;
}
+ Scripting::DisplayEffect* _this = reinterpret_cast<Scripting::DisplayEffect*> (data);
try {
bool return_value = _this->is_black();
static SQInteger DisplayEffect_sixteen_to_nine_wrapper(HSQUIRRELVM vm)
{
- Scripting::DisplayEffect* _this;
- if(SQ_FAILED(sq_getinstanceup(vm, 1, reinterpret_cast<SQUserPointer*> (&_this), 0))) {
+ SQUserPointer data;
+ if(SQ_FAILED(sq_getinstanceup(vm, 1, &data, 0))) {
sq_throwerror(vm, _SC("'sixteen_to_nine' called without instance"));
return SQ_ERROR;
}
+ Scripting::DisplayEffect* _this = reinterpret_cast<Scripting::DisplayEffect*> (data);
SQFloat arg0;
if(SQ_FAILED(sq_getfloat(vm, 2, &arg0))) {
sq_throwerror(vm, _SC("Argument 1 not a float"));
static SQInteger DisplayEffect_four_to_three_wrapper(HSQUIRRELVM vm)
{
- Scripting::DisplayEffect* _this;
- if(SQ_FAILED(sq_getinstanceup(vm, 1, reinterpret_cast<SQUserPointer*> (&_this), 0))) {
+ SQUserPointer data;
+ if(SQ_FAILED(sq_getinstanceup(vm, 1, &data, 0))) {
sq_throwerror(vm, _SC("'four_to_three' called without instance"));
return SQ_ERROR;
}
+ Scripting::DisplayEffect* _this = reinterpret_cast<Scripting::DisplayEffect*> (data);
SQFloat arg0;
if(SQ_FAILED(sq_getfloat(vm, 2, &arg0))) {
sq_throwerror(vm, _SC("Argument 1 not a float"));
static SQInteger Camera_shake_wrapper(HSQUIRRELVM vm)
{
- Scripting::Camera* _this;
- if(SQ_FAILED(sq_getinstanceup(vm, 1, reinterpret_cast<SQUserPointer*> (&_this), 0))) {
+ SQUserPointer data;
+ if(SQ_FAILED(sq_getinstanceup(vm, 1, &data, 0))) {
sq_throwerror(vm, _SC("'shake' called without instance"));
return SQ_ERROR;
}
+ Scripting::Camera* _this = reinterpret_cast<Scripting::Camera*> (data);
SQFloat arg0;
if(SQ_FAILED(sq_getfloat(vm, 2, &arg0))) {
sq_throwerror(vm, _SC("Argument 1 not a float"));
static SQInteger Camera_set_pos_wrapper(HSQUIRRELVM vm)
{
- Scripting::Camera* _this;
- if(SQ_FAILED(sq_getinstanceup(vm, 1, reinterpret_cast<SQUserPointer*> (&_this), 0))) {
+ SQUserPointer data;
+ if(SQ_FAILED(sq_getinstanceup(vm, 1, &data, 0))) {
sq_throwerror(vm, _SC("'set_pos' called without instance"));
return SQ_ERROR;
}
+ Scripting::Camera* _this = reinterpret_cast<Scripting::Camera*> (data);
SQFloat arg0;
if(SQ_FAILED(sq_getfloat(vm, 2, &arg0))) {
sq_throwerror(vm, _SC("Argument 1 not a float"));
static SQInteger Camera_set_mode_wrapper(HSQUIRRELVM vm)
{
- Scripting::Camera* _this;
- if(SQ_FAILED(sq_getinstanceup(vm, 1, reinterpret_cast<SQUserPointer*> (&_this), 0))) {
+ SQUserPointer data;
+ if(SQ_FAILED(sq_getinstanceup(vm, 1, &data, 0))) {
sq_throwerror(vm, _SC("'set_mode' called without instance"));
return SQ_ERROR;
}
+ Scripting::Camera* _this = reinterpret_cast<Scripting::Camera*> (data);
const SQChar* arg0;
if(SQ_FAILED(sq_getstring(vm, 2, &arg0))) {
sq_throwerror(vm, _SC("Argument 1 not a string"));
static SQInteger Camera_scroll_to_wrapper(HSQUIRRELVM vm)
{
- Scripting::Camera* _this;
- if(SQ_FAILED(sq_getinstanceup(vm, 1, reinterpret_cast<SQUserPointer*> (&_this), 0))) {
+ SQUserPointer data;
+ if(SQ_FAILED(sq_getinstanceup(vm, 1, &data, 0))) {
sq_throwerror(vm, _SC("'scroll_to' called without instance"));
return SQ_ERROR;
}
+ Scripting::Camera* _this = reinterpret_cast<Scripting::Camera*> (data);
SQFloat arg0;
if(SQ_FAILED(sq_getfloat(vm, 2, &arg0))) {
sq_throwerror(vm, _SC("Argument 1 not a float"));
static SQInteger Level_finish_wrapper(HSQUIRRELVM vm)
{
- Scripting::Level* _this;
- if(SQ_FAILED(sq_getinstanceup(vm, 1, reinterpret_cast<SQUserPointer*> (&_this), 0))) {
+ SQUserPointer data;
+ if(SQ_FAILED(sq_getinstanceup(vm, 1, &data, 0))) {
sq_throwerror(vm, _SC("'finish' called without instance"));
return SQ_ERROR;
}
+ Scripting::Level* _this = reinterpret_cast<Scripting::Level*> (data);
SQBool arg0;
if(SQ_FAILED(sq_getbool(vm, 2, &arg0))) {
sq_throwerror(vm, _SC("Argument 1 not a bool"));
static SQInteger Level_spawn_wrapper(HSQUIRRELVM vm)
{
- Scripting::Level* _this;
- if(SQ_FAILED(sq_getinstanceup(vm, 1, reinterpret_cast<SQUserPointer*> (&_this), 0))) {
+ SQUserPointer data;
+ if(SQ_FAILED(sq_getinstanceup(vm, 1, &data, 0))) {
sq_throwerror(vm, _SC("'spawn' called without instance"));
return SQ_ERROR;
}
+ Scripting::Level* _this = reinterpret_cast<Scripting::Level*> (data);
const SQChar* arg0;
if(SQ_FAILED(sq_getstring(vm, 2, &arg0))) {
sq_throwerror(vm, _SC("Argument 1 not a string"));
static SQInteger Level_flip_vertically_wrapper(HSQUIRRELVM vm)
{
- Scripting::Level* _this;
- if(SQ_FAILED(sq_getinstanceup(vm, 1, reinterpret_cast<SQUserPointer*> (&_this), 0))) {
+ SQUserPointer data;
+ if(SQ_FAILED(sq_getinstanceup(vm, 1, &data, 0))) {
sq_throwerror(vm, _SC("'flip_vertically' called without instance"));
return SQ_ERROR;
}
+ Scripting::Level* _this = reinterpret_cast<Scripting::Level*> (data);
try {
_this->flip_vertically();
static SQInteger Level_toggle_pause_wrapper(HSQUIRRELVM vm)
{
- Scripting::Level* _this;
- if(SQ_FAILED(sq_getinstanceup(vm, 1, reinterpret_cast<SQUserPointer*> (&_this), 0))) {
+ SQUserPointer data;
+ if(SQ_FAILED(sq_getinstanceup(vm, 1, &data, 0))) {
sq_throwerror(vm, _SC("'toggle_pause' called without instance"));
return SQ_ERROR;
}
+ Scripting::Level* _this = reinterpret_cast<Scripting::Level*> (data);
try {
_this->toggle_pause();
static SQInteger ScriptedObject_set_action_wrapper(HSQUIRRELVM vm)
{
- Scripting::ScriptedObject* _this;
- if(SQ_FAILED(sq_getinstanceup(vm, 1, reinterpret_cast<SQUserPointer*> (&_this), 0))) {
+ SQUserPointer data;
+ if(SQ_FAILED(sq_getinstanceup(vm, 1, &data, 0))) {
sq_throwerror(vm, _SC("'set_action' called without instance"));
return SQ_ERROR;
}
+ Scripting::ScriptedObject* _this = reinterpret_cast<Scripting::ScriptedObject*> (data);
const SQChar* arg0;
if(SQ_FAILED(sq_getstring(vm, 2, &arg0))) {
sq_throwerror(vm, _SC("Argument 1 not a string"));
static SQInteger ScriptedObject_get_action_wrapper(HSQUIRRELVM vm)
{
- Scripting::ScriptedObject* _this;
- if(SQ_FAILED(sq_getinstanceup(vm, 1, reinterpret_cast<SQUserPointer*> (&_this), 0))) {
+ SQUserPointer data;
+ if(SQ_FAILED(sq_getinstanceup(vm, 1, &data, 0))) {
sq_throwerror(vm, _SC("'get_action' called without instance"));
return SQ_ERROR;
}
+ Scripting::ScriptedObject* _this = reinterpret_cast<Scripting::ScriptedObject*> (data);
try {
std::string return_value = _this->get_action();
static SQInteger ScriptedObject_move_wrapper(HSQUIRRELVM vm)
{
- Scripting::ScriptedObject* _this;
- if(SQ_FAILED(sq_getinstanceup(vm, 1, reinterpret_cast<SQUserPointer*> (&_this), 0))) {
+ SQUserPointer data;
+ if(SQ_FAILED(sq_getinstanceup(vm, 1, &data, 0))) {
sq_throwerror(vm, _SC("'move' called without instance"));
return SQ_ERROR;
}
+ Scripting::ScriptedObject* _this = reinterpret_cast<Scripting::ScriptedObject*> (data);
SQFloat arg0;
if(SQ_FAILED(sq_getfloat(vm, 2, &arg0))) {
sq_throwerror(vm, _SC("Argument 1 not a float"));
static SQInteger ScriptedObject_set_pos_wrapper(HSQUIRRELVM vm)
{
- Scripting::ScriptedObject* _this;
- if(SQ_FAILED(sq_getinstanceup(vm, 1, reinterpret_cast<SQUserPointer*> (&_this), 0))) {
+ SQUserPointer data;
+ if(SQ_FAILED(sq_getinstanceup(vm, 1, &data, 0))) {
sq_throwerror(vm, _SC("'set_pos' called without instance"));
return SQ_ERROR;
}
+ Scripting::ScriptedObject* _this = reinterpret_cast<Scripting::ScriptedObject*> (data);
SQFloat arg0;
if(SQ_FAILED(sq_getfloat(vm, 2, &arg0))) {
sq_throwerror(vm, _SC("Argument 1 not a float"));
static SQInteger ScriptedObject_get_pos_x_wrapper(HSQUIRRELVM vm)
{
- Scripting::ScriptedObject* _this;
- if(SQ_FAILED(sq_getinstanceup(vm, 1, reinterpret_cast<SQUserPointer*> (&_this), 0))) {
+ SQUserPointer data;
+ if(SQ_FAILED(sq_getinstanceup(vm, 1, &data, 0))) {
sq_throwerror(vm, _SC("'get_pos_x' called without instance"));
return SQ_ERROR;
}
+ Scripting::ScriptedObject* _this = reinterpret_cast<Scripting::ScriptedObject*> (data);
try {
float return_value = _this->get_pos_x();
static SQInteger ScriptedObject_get_pos_y_wrapper(HSQUIRRELVM vm)
{
- Scripting::ScriptedObject* _this;
- if(SQ_FAILED(sq_getinstanceup(vm, 1, reinterpret_cast<SQUserPointer*> (&_this), 0))) {
+ SQUserPointer data;
+ if(SQ_FAILED(sq_getinstanceup(vm, 1, &data, 0))) {
sq_throwerror(vm, _SC("'get_pos_y' called without instance"));
return SQ_ERROR;
}
+ Scripting::ScriptedObject* _this = reinterpret_cast<Scripting::ScriptedObject*> (data);
try {
float return_value = _this->get_pos_y();
static SQInteger ScriptedObject_set_velocity_wrapper(HSQUIRRELVM vm)
{
- Scripting::ScriptedObject* _this;
- if(SQ_FAILED(sq_getinstanceup(vm, 1, reinterpret_cast<SQUserPointer*> (&_this), 0))) {
+ SQUserPointer data;
+ if(SQ_FAILED(sq_getinstanceup(vm, 1, &data, 0))) {
sq_throwerror(vm, _SC("'set_velocity' called without instance"));
return SQ_ERROR;
}
+ Scripting::ScriptedObject* _this = reinterpret_cast<Scripting::ScriptedObject*> (data);
SQFloat arg0;
if(SQ_FAILED(sq_getfloat(vm, 2, &arg0))) {
sq_throwerror(vm, _SC("Argument 1 not a float"));
static SQInteger ScriptedObject_get_velocity_x_wrapper(HSQUIRRELVM vm)
{
- Scripting::ScriptedObject* _this;
- if(SQ_FAILED(sq_getinstanceup(vm, 1, reinterpret_cast<SQUserPointer*> (&_this), 0))) {
+ SQUserPointer data;
+ if(SQ_FAILED(sq_getinstanceup(vm, 1, &data, 0))) {
sq_throwerror(vm, _SC("'get_velocity_x' called without instance"));
return SQ_ERROR;
}
+ Scripting::ScriptedObject* _this = reinterpret_cast<Scripting::ScriptedObject*> (data);
try {
float return_value = _this->get_velocity_x();
static SQInteger ScriptedObject_get_velocity_y_wrapper(HSQUIRRELVM vm)
{
- Scripting::ScriptedObject* _this;
- if(SQ_FAILED(sq_getinstanceup(vm, 1, reinterpret_cast<SQUserPointer*> (&_this), 0))) {
+ SQUserPointer data;
+ if(SQ_FAILED(sq_getinstanceup(vm, 1, &data, 0))) {
sq_throwerror(vm, _SC("'get_velocity_y' called without instance"));
return SQ_ERROR;
}
+ Scripting::ScriptedObject* _this = reinterpret_cast<Scripting::ScriptedObject*> (data);
try {
float return_value = _this->get_velocity_y();
static SQInteger ScriptedObject_set_visible_wrapper(HSQUIRRELVM vm)
{
- Scripting::ScriptedObject* _this;
- if(SQ_FAILED(sq_getinstanceup(vm, 1, reinterpret_cast<SQUserPointer*> (&_this), 0))) {
+ SQUserPointer data;
+ if(SQ_FAILED(sq_getinstanceup(vm, 1, &data, 0))) {
sq_throwerror(vm, _SC("'set_visible' called without instance"));
return SQ_ERROR;
}
+ Scripting::ScriptedObject* _this = reinterpret_cast<Scripting::ScriptedObject*> (data);
SQBool arg0;
if(SQ_FAILED(sq_getbool(vm, 2, &arg0))) {
sq_throwerror(vm, _SC("Argument 1 not a bool"));
static SQInteger ScriptedObject_is_visible_wrapper(HSQUIRRELVM vm)
{
- Scripting::ScriptedObject* _this;
- if(SQ_FAILED(sq_getinstanceup(vm, 1, reinterpret_cast<SQUserPointer*> (&_this), 0))) {
+ SQUserPointer data;
+ if(SQ_FAILED(sq_getinstanceup(vm, 1, &data, 0))) {
sq_throwerror(vm, _SC("'is_visible' called without instance"));
return SQ_ERROR;
}
+ Scripting::ScriptedObject* _this = reinterpret_cast<Scripting::ScriptedObject*> (data);
try {
bool return_value = _this->is_visible();
static SQInteger ScriptedObject_get_name_wrapper(HSQUIRRELVM vm)
{
- Scripting::ScriptedObject* _this;
- if(SQ_FAILED(sq_getinstanceup(vm, 1, reinterpret_cast<SQUserPointer*> (&_this), 0))) {
+ SQUserPointer data;
+ if(SQ_FAILED(sq_getinstanceup(vm, 1, &data, 0))) {
sq_throwerror(vm, _SC("'get_name' called without instance"));
return SQ_ERROR;
}
+ Scripting::ScriptedObject* _this = reinterpret_cast<Scripting::ScriptedObject*> (data);
try {
std::string return_value = _this->get_name();
static SQInteger Text_set_text_wrapper(HSQUIRRELVM vm)
{
- Scripting::Text* _this;
- if(SQ_FAILED(sq_getinstanceup(vm, 1, reinterpret_cast<SQUserPointer*> (&_this), 0))) {
+ SQUserPointer data;
+ if(SQ_FAILED(sq_getinstanceup(vm, 1, &data, 0))) {
sq_throwerror(vm, _SC("'set_text' called without instance"));
return SQ_ERROR;
}
+ Scripting::Text* _this = reinterpret_cast<Scripting::Text*> (data);
const SQChar* arg0;
if(SQ_FAILED(sq_getstring(vm, 2, &arg0))) {
sq_throwerror(vm, _SC("Argument 1 not a string"));
static SQInteger Text_set_font_wrapper(HSQUIRRELVM vm)
{
- Scripting::Text* _this;
- if(SQ_FAILED(sq_getinstanceup(vm, 1, reinterpret_cast<SQUserPointer*> (&_this), 0))) {
+ SQUserPointer data;
+ if(SQ_FAILED(sq_getinstanceup(vm, 1, &data, 0))) {
sq_throwerror(vm, _SC("'set_font' called without instance"));
return SQ_ERROR;
}
+ Scripting::Text* _this = reinterpret_cast<Scripting::Text*> (data);
const SQChar* arg0;
if(SQ_FAILED(sq_getstring(vm, 2, &arg0))) {
sq_throwerror(vm, _SC("Argument 1 not a string"));
static SQInteger Text_fade_in_wrapper(HSQUIRRELVM vm)
{
- Scripting::Text* _this;
- if(SQ_FAILED(sq_getinstanceup(vm, 1, reinterpret_cast<SQUserPointer*> (&_this), 0))) {
+ SQUserPointer data;
+ if(SQ_FAILED(sq_getinstanceup(vm, 1, &data, 0))) {
sq_throwerror(vm, _SC("'fade_in' called without instance"));
return SQ_ERROR;
}
+ Scripting::Text* _this = reinterpret_cast<Scripting::Text*> (data);
SQFloat arg0;
if(SQ_FAILED(sq_getfloat(vm, 2, &arg0))) {
sq_throwerror(vm, _SC("Argument 1 not a float"));
static SQInteger Text_fade_out_wrapper(HSQUIRRELVM vm)
{
- Scripting::Text* _this;
- if(SQ_FAILED(sq_getinstanceup(vm, 1, reinterpret_cast<SQUserPointer*> (&_this), 0))) {
+ SQUserPointer data;
+ if(SQ_FAILED(sq_getinstanceup(vm, 1, &data, 0))) {
sq_throwerror(vm, _SC("'fade_out' called without instance"));
return SQ_ERROR;
}
+ Scripting::Text* _this = reinterpret_cast<Scripting::Text*> (data);
SQFloat arg0;
if(SQ_FAILED(sq_getfloat(vm, 2, &arg0))) {
sq_throwerror(vm, _SC("Argument 1 not a float"));
static SQInteger Text_set_visible_wrapper(HSQUIRRELVM vm)
{
- Scripting::Text* _this;
- if(SQ_FAILED(sq_getinstanceup(vm, 1, reinterpret_cast<SQUserPointer*> (&_this), 0))) {
+ SQUserPointer data;
+ if(SQ_FAILED(sq_getinstanceup(vm, 1, &data, 0))) {
sq_throwerror(vm, _SC("'set_visible' called without instance"));
return SQ_ERROR;
}
+ Scripting::Text* _this = reinterpret_cast<Scripting::Text*> (data);
SQBool arg0;
if(SQ_FAILED(sq_getbool(vm, 2, &arg0))) {
sq_throwerror(vm, _SC("Argument 1 not a bool"));
static SQInteger Text_set_centered_wrapper(HSQUIRRELVM vm)
{
- Scripting::Text* _this;
- if(SQ_FAILED(sq_getinstanceup(vm, 1, reinterpret_cast<SQUserPointer*> (&_this), 0))) {
+ SQUserPointer data;
+ if(SQ_FAILED(sq_getinstanceup(vm, 1, &data, 0))) {
sq_throwerror(vm, _SC("'set_centered' called without instance"));
return SQ_ERROR;
}
+ Scripting::Text* _this = reinterpret_cast<Scripting::Text*> (data);
SQBool arg0;
if(SQ_FAILED(sq_getbool(vm, 2, &arg0))) {
sq_throwerror(vm, _SC("Argument 1 not a bool"));
static SQInteger Player_add_bonus_wrapper(HSQUIRRELVM vm)
{
- Scripting::Player* _this;
- if(SQ_FAILED(sq_getinstanceup(vm, 1, reinterpret_cast<SQUserPointer*> (&_this), 0))) {
+ SQUserPointer data;
+ if(SQ_FAILED(sq_getinstanceup(vm, 1, &data, 0))) {
sq_throwerror(vm, _SC("'add_bonus' called without instance"));
return SQ_ERROR;
}
+ Scripting::Player* _this = reinterpret_cast<Scripting::Player*> (data);
const SQChar* arg0;
if(SQ_FAILED(sq_getstring(vm, 2, &arg0))) {
sq_throwerror(vm, _SC("Argument 1 not a string"));
static SQInteger Player_add_coins_wrapper(HSQUIRRELVM vm)
{
- Scripting::Player* _this;
- if(SQ_FAILED(sq_getinstanceup(vm, 1, reinterpret_cast<SQUserPointer*> (&_this), 0))) {
+ SQUserPointer data;
+ if(SQ_FAILED(sq_getinstanceup(vm, 1, &data, 0))) {
sq_throwerror(vm, _SC("'add_coins' called without instance"));
return SQ_ERROR;
}
+ Scripting::Player* _this = reinterpret_cast<Scripting::Player*> (data);
SQInteger arg0;
if(SQ_FAILED(sq_getinteger(vm, 2, &arg0))) {
sq_throwerror(vm, _SC("Argument 1 not an integer"));
static SQInteger Player_make_invincible_wrapper(HSQUIRRELVM vm)
{
- Scripting::Player* _this;
- if(SQ_FAILED(sq_getinstanceup(vm, 1, reinterpret_cast<SQUserPointer*> (&_this), 0))) {
+ SQUserPointer data;
+ if(SQ_FAILED(sq_getinstanceup(vm, 1, &data, 0))) {
sq_throwerror(vm, _SC("'make_invincible' called without instance"));
return SQ_ERROR;
}
+ Scripting::Player* _this = reinterpret_cast<Scripting::Player*> (data);
try {
_this->make_invincible();
static SQInteger Player_deactivate_wrapper(HSQUIRRELVM vm)
{
- Scripting::Player* _this;
- if(SQ_FAILED(sq_getinstanceup(vm, 1, reinterpret_cast<SQUserPointer*> (&_this), 0))) {
+ SQUserPointer data;
+ if(SQ_FAILED(sq_getinstanceup(vm, 1, &data, 0))) {
sq_throwerror(vm, _SC("'deactivate' called without instance"));
return SQ_ERROR;
}
+ Scripting::Player* _this = reinterpret_cast<Scripting::Player*> (data);
try {
_this->deactivate();
static SQInteger Player_activate_wrapper(HSQUIRRELVM vm)
{
- Scripting::Player* _this;
- if(SQ_FAILED(sq_getinstanceup(vm, 1, reinterpret_cast<SQUserPointer*> (&_this), 0))) {
+ SQUserPointer data;
+ if(SQ_FAILED(sq_getinstanceup(vm, 1, &data, 0))) {
sq_throwerror(vm, _SC("'activate' called without instance"));
return SQ_ERROR;
}
+ Scripting::Player* _this = reinterpret_cast<Scripting::Player*> (data);
try {
_this->activate();
static SQInteger Player_walk_wrapper(HSQUIRRELVM vm)
{
- Scripting::Player* _this;
- if(SQ_FAILED(sq_getinstanceup(vm, 1, reinterpret_cast<SQUserPointer*> (&_this), 0))) {
+ SQUserPointer data;
+ if(SQ_FAILED(sq_getinstanceup(vm, 1, &data, 0))) {
sq_throwerror(vm, _SC("'walk' called without instance"));
return SQ_ERROR;
}
+ Scripting::Player* _this = reinterpret_cast<Scripting::Player*> (data);
SQFloat arg0;
if(SQ_FAILED(sq_getfloat(vm, 2, &arg0))) {
sq_throwerror(vm, _SC("Argument 1 not a float"));
static SQInteger Player_set_visible_wrapper(HSQUIRRELVM vm)
{
- Scripting::Player* _this;
- if(SQ_FAILED(sq_getinstanceup(vm, 1, reinterpret_cast<SQUserPointer*> (&_this), 0))) {
+ SQUserPointer data;
+ if(SQ_FAILED(sq_getinstanceup(vm, 1, &data, 0))) {
sq_throwerror(vm, _SC("'set_visible' called without instance"));
return SQ_ERROR;
}
+ Scripting::Player* _this = reinterpret_cast<Scripting::Player*> (data);
SQBool arg0;
if(SQ_FAILED(sq_getbool(vm, 2, &arg0))) {
sq_throwerror(vm, _SC("Argument 1 not a bool"));
static SQInteger Player_get_visible_wrapper(HSQUIRRELVM vm)
{
- Scripting::Player* _this;
- if(SQ_FAILED(sq_getinstanceup(vm, 1, reinterpret_cast<SQUserPointer*> (&_this), 0))) {
+ SQUserPointer data;
+ if(SQ_FAILED(sq_getinstanceup(vm, 1, &data, 0))) {
sq_throwerror(vm, _SC("'get_visible' called without instance"));
return SQ_ERROR;
}
+ Scripting::Player* _this = reinterpret_cast<Scripting::Player*> (data);
try {
bool return_value = _this->get_visible();
static SQInteger Player_kill_wrapper(HSQUIRRELVM vm)
{
- Scripting::Player* _this;
- if(SQ_FAILED(sq_getinstanceup(vm, 1, reinterpret_cast<SQUserPointer*> (&_this), 0))) {
+ SQUserPointer data;
+ if(SQ_FAILED(sq_getinstanceup(vm, 1, &data, 0))) {
sq_throwerror(vm, _SC("'kill' called without instance"));
return SQ_ERROR;
}
+ Scripting::Player* _this = reinterpret_cast<Scripting::Player*> (data);
SQBool arg0;
if(SQ_FAILED(sq_getbool(vm, 2, &arg0))) {
sq_throwerror(vm, _SC("Argument 1 not a bool"));
static SQInteger Player_set_ghost_mode_wrapper(HSQUIRRELVM vm)
{
- Scripting::Player* _this;
- if(SQ_FAILED(sq_getinstanceup(vm, 1, reinterpret_cast<SQUserPointer*> (&_this), 0))) {
+ SQUserPointer data;
+ if(SQ_FAILED(sq_getinstanceup(vm, 1, &data, 0))) {
sq_throwerror(vm, _SC("'set_ghost_mode' called without instance"));
return SQ_ERROR;
}
+ Scripting::Player* _this = reinterpret_cast<Scripting::Player*> (data);
SQBool arg0;
if(SQ_FAILED(sq_getbool(vm, 2, &arg0))) {
sq_throwerror(vm, _SC("Argument 1 not a bool"));
static SQInteger Player_get_ghost_mode_wrapper(HSQUIRRELVM vm)
{
- Scripting::Player* _this;
- if(SQ_FAILED(sq_getinstanceup(vm, 1, reinterpret_cast<SQUserPointer*> (&_this), 0))) {
+ SQUserPointer data;
+ if(SQ_FAILED(sq_getinstanceup(vm, 1, &data, 0))) {
sq_throwerror(vm, _SC("'get_ghost_mode' called without instance"));
return SQ_ERROR;
}
+ Scripting::Player* _this = reinterpret_cast<Scripting::Player*> (data);
try {
bool return_value = _this->get_ghost_mode();
static SQInteger FloatingImage_set_layer_wrapper(HSQUIRRELVM vm)
{
- Scripting::FloatingImage* _this;
- if(SQ_FAILED(sq_getinstanceup(vm, 1, reinterpret_cast<SQUserPointer*> (&_this), 0))) {
+ SQUserPointer data;
+ if(SQ_FAILED(sq_getinstanceup(vm, 1, &data, 0))) {
sq_throwerror(vm, _SC("'set_layer' called without instance"));
return SQ_ERROR;
}
+ Scripting::FloatingImage* _this = reinterpret_cast<Scripting::FloatingImage*> (data);
SQInteger arg0;
if(SQ_FAILED(sq_getinteger(vm, 2, &arg0))) {
sq_throwerror(vm, _SC("Argument 1 not an integer"));
static SQInteger FloatingImage_get_layer_wrapper(HSQUIRRELVM vm)
{
- Scripting::FloatingImage* _this;
- if(SQ_FAILED(sq_getinstanceup(vm, 1, reinterpret_cast<SQUserPointer*> (&_this), 0))) {
+ SQUserPointer data;
+ if(SQ_FAILED(sq_getinstanceup(vm, 1, &data, 0))) {
sq_throwerror(vm, _SC("'get_layer' called without instance"));
return SQ_ERROR;
}
+ Scripting::FloatingImage* _this = reinterpret_cast<Scripting::FloatingImage*> (data);
try {
int return_value = _this->get_layer();
static SQInteger FloatingImage_set_pos_wrapper(HSQUIRRELVM vm)
{
- Scripting::FloatingImage* _this;
- if(SQ_FAILED(sq_getinstanceup(vm, 1, reinterpret_cast<SQUserPointer*> (&_this), 0))) {
+ SQUserPointer data;
+ if(SQ_FAILED(sq_getinstanceup(vm, 1, &data, 0))) {
sq_throwerror(vm, _SC("'set_pos' called without instance"));
return SQ_ERROR;
}
+ Scripting::FloatingImage* _this = reinterpret_cast<Scripting::FloatingImage*> (data);
SQFloat arg0;
if(SQ_FAILED(sq_getfloat(vm, 2, &arg0))) {
sq_throwerror(vm, _SC("Argument 1 not a float"));
static SQInteger FloatingImage_get_pos_x_wrapper(HSQUIRRELVM vm)
{
- Scripting::FloatingImage* _this;
- if(SQ_FAILED(sq_getinstanceup(vm, 1, reinterpret_cast<SQUserPointer*> (&_this), 0))) {
+ SQUserPointer data;
+ if(SQ_FAILED(sq_getinstanceup(vm, 1, &data, 0))) {
sq_throwerror(vm, _SC("'get_pos_x' called without instance"));
return SQ_ERROR;
}
+ Scripting::FloatingImage* _this = reinterpret_cast<Scripting::FloatingImage*> (data);
try {
float return_value = _this->get_pos_x();
static SQInteger FloatingImage_get_pos_y_wrapper(HSQUIRRELVM vm)
{
- Scripting::FloatingImage* _this;
- if(SQ_FAILED(sq_getinstanceup(vm, 1, reinterpret_cast<SQUserPointer*> (&_this), 0))) {
+ SQUserPointer data;
+ if(SQ_FAILED(sq_getinstanceup(vm, 1, &data, 0))) {
sq_throwerror(vm, _SC("'get_pos_y' called without instance"));
return SQ_ERROR;
}
+ Scripting::FloatingImage* _this = reinterpret_cast<Scripting::FloatingImage*> (data);
try {
float return_value = _this->get_pos_y();
static SQInteger FloatingImage_set_anchor_point_wrapper(HSQUIRRELVM vm)
{
- Scripting::FloatingImage* _this;
- if(SQ_FAILED(sq_getinstanceup(vm, 1, reinterpret_cast<SQUserPointer*> (&_this), 0))) {
+ SQUserPointer data;
+ if(SQ_FAILED(sq_getinstanceup(vm, 1, &data, 0))) {
sq_throwerror(vm, _SC("'set_anchor_point' called without instance"));
return SQ_ERROR;
}
+ Scripting::FloatingImage* _this = reinterpret_cast<Scripting::FloatingImage*> (data);
SQInteger arg0;
if(SQ_FAILED(sq_getinteger(vm, 2, &arg0))) {
sq_throwerror(vm, _SC("Argument 1 not an integer"));
static SQInteger FloatingImage_get_anchor_point_wrapper(HSQUIRRELVM vm)
{
- Scripting::FloatingImage* _this;
- if(SQ_FAILED(sq_getinstanceup(vm, 1, reinterpret_cast<SQUserPointer*> (&_this), 0))) {
+ SQUserPointer data;
+ if(SQ_FAILED(sq_getinstanceup(vm, 1, &data, 0))) {
sq_throwerror(vm, _SC("'get_anchor_point' called without instance"));
return SQ_ERROR;
}
+ Scripting::FloatingImage* _this = reinterpret_cast<Scripting::FloatingImage*> (data);
try {
int return_value = _this->get_anchor_point();
static SQInteger FloatingImage_set_visible_wrapper(HSQUIRRELVM vm)
{
- Scripting::FloatingImage* _this;
- if(SQ_FAILED(sq_getinstanceup(vm, 1, reinterpret_cast<SQUserPointer*> (&_this), 0))) {
+ SQUserPointer data;
+ if(SQ_FAILED(sq_getinstanceup(vm, 1, &data, 0))) {
sq_throwerror(vm, _SC("'set_visible' called without instance"));
return SQ_ERROR;
}
+ Scripting::FloatingImage* _this = reinterpret_cast<Scripting::FloatingImage*> (data);
SQBool arg0;
if(SQ_FAILED(sq_getbool(vm, 2, &arg0))) {
sq_throwerror(vm, _SC("Argument 1 not a bool"));
static SQInteger FloatingImage_get_visible_wrapper(HSQUIRRELVM vm)
{
- Scripting::FloatingImage* _this;
- if(SQ_FAILED(sq_getinstanceup(vm, 1, reinterpret_cast<SQUserPointer*> (&_this), 0))) {
+ SQUserPointer data;
+ if(SQ_FAILED(sq_getinstanceup(vm, 1, &data, 0))) {
sq_throwerror(vm, _SC("'get_visible' called without instance"));
return SQ_ERROR;
}
+ Scripting::FloatingImage* _this = reinterpret_cast<Scripting::FloatingImage*> (data);
try {
bool return_value = _this->get_visible();
static SQInteger FloatingImage_set_action_wrapper(HSQUIRRELVM vm)
{
- Scripting::FloatingImage* _this;
- if(SQ_FAILED(sq_getinstanceup(vm, 1, reinterpret_cast<SQUserPointer*> (&_this), 0))) {
+ SQUserPointer data;
+ if(SQ_FAILED(sq_getinstanceup(vm, 1, &data, 0))) {
sq_throwerror(vm, _SC("'set_action' called without instance"));
return SQ_ERROR;
}
+ Scripting::FloatingImage* _this = reinterpret_cast<Scripting::FloatingImage*> (data);
const SQChar* arg0;
if(SQ_FAILED(sq_getstring(vm, 2, &arg0))) {
sq_throwerror(vm, _SC("Argument 1 not a string"));
static SQInteger FloatingImage_get_action_wrapper(HSQUIRRELVM vm)
{
- Scripting::FloatingImage* _this;
- if(SQ_FAILED(sq_getinstanceup(vm, 1, reinterpret_cast<SQUserPointer*> (&_this), 0))) {
+ SQUserPointer data;
+ if(SQ_FAILED(sq_getinstanceup(vm, 1, &data, 0))) {
sq_throwerror(vm, _SC("'get_action' called without instance"));
return SQ_ERROR;
}
+ Scripting::FloatingImage* _this = reinterpret_cast<Scripting::FloatingImage*> (data);
try {
std::string return_value = _this->get_action();
static SQInteger Platform_goto_node_wrapper(HSQUIRRELVM vm)
{
- Scripting::Platform* _this;
- if(SQ_FAILED(sq_getinstanceup(vm, 1, reinterpret_cast<SQUserPointer*> (&_this), 0))) {
+ SQUserPointer data;
+ if(SQ_FAILED(sq_getinstanceup(vm, 1, &data, 0))) {
sq_throwerror(vm, _SC("'goto_node' called without instance"));
return SQ_ERROR;
}
+ Scripting::Platform* _this = reinterpret_cast<Scripting::Platform*> (data);
SQInteger arg0;
if(SQ_FAILED(sq_getinteger(vm, 2, &arg0))) {
sq_throwerror(vm, _SC("Argument 1 not an integer"));
static SQInteger Platform_start_moving_wrapper(HSQUIRRELVM vm)
{
- Scripting::Platform* _this;
- if(SQ_FAILED(sq_getinstanceup(vm, 1, reinterpret_cast<SQUserPointer*> (&_this), 0))) {
+ SQUserPointer data;
+ if(SQ_FAILED(sq_getinstanceup(vm, 1, &data, 0))) {
sq_throwerror(vm, _SC("'start_moving' called without instance"));
return SQ_ERROR;
}
+ Scripting::Platform* _this = reinterpret_cast<Scripting::Platform*> (data);
try {
_this->start_moving();
static SQInteger Platform_stop_moving_wrapper(HSQUIRRELVM vm)
{
- Scripting::Platform* _this;
- if(SQ_FAILED(sq_getinstanceup(vm, 1, reinterpret_cast<SQUserPointer*> (&_this), 0))) {
+ SQUserPointer data;
+ if(SQ_FAILED(sq_getinstanceup(vm, 1, &data, 0))) {
sq_throwerror(vm, _SC("'stop_moving' called without instance"));
return SQ_ERROR;
}
+ Scripting::Platform* _this = reinterpret_cast<Scripting::Platform*> (data);
try {
_this->stop_moving();
}
-static SQInteger debug_draw_fps_wrapper(HSQUIRRELVM vm)
+static SQInteger debug_show_fps_wrapper(HSQUIRRELVM vm)
{
SQBool arg0;
if(SQ_FAILED(sq_getbool(vm, 2, &arg0))) {
}
try {
- Scripting::debug_draw_fps(arg0 == SQTrue);
+ Scripting::debug_show_fps(arg0 == SQTrue);
return 0;
sq_throwerror(vm, e.what());
return SQ_ERROR;
} catch(...) {
- sq_throwerror(vm, _SC("Unexpected exception while executing function 'debug_draw_fps'"));
+ sq_throwerror(vm, _SC("Unexpected exception while executing function 'debug_show_fps'"));
return SQ_ERROR;
}
throw SquirrelError(v, "Couldn't register function 'debug_collrects'");
}
- sq_pushstring(v, "debug_draw_fps", -1);
- sq_newclosure(v, &debug_draw_fps_wrapper, 0);
+ sq_pushstring(v, "debug_show_fps", -1);
+ sq_newclosure(v, &debug_show_fps_wrapper, 0);
if(SQ_FAILED(sq_createslot(v, -3))) {
- throw SquirrelError(v, "Couldn't register function 'debug_draw_fps'");
+ throw SquirrelError(v, "Couldn't register function 'debug_show_fps'");
}
sq_pushstring(v, "debug_draw_solids_only", -1);