2 * WARNING: This file is automatically generated from './build/i686-pc-linux-gnu/optimize/miniswig.tmp' - do not change
10 #include "wrapper_util.h"
11 #include "wrapper.interface.h"
13 using namespace Scripting;
15 static int DisplayEffect_fade_out_wrapper(HSQUIRRELVM v)
17 Scripting::DisplayEffect* _this;
18 sq_getinstanceup(v, 1, (SQUserPointer*) &_this, 0);
20 sq_getfloat(v, 2, &arg0);
22 _this->fade_out(arg0);
27 static int DisplayEffect_fade_in_wrapper(HSQUIRRELVM v)
29 Scripting::DisplayEffect* _this;
30 sq_getinstanceup(v, 1, (SQUserPointer*) &_this, 0);
32 sq_getfloat(v, 2, &arg0);
39 static int DisplayEffect_set_black_wrapper(HSQUIRRELVM v)
41 Scripting::DisplayEffect* _this;
42 sq_getinstanceup(v, 1, (SQUserPointer*) &_this, 0);
44 sq_getbool(v, 2, &arg0);
46 _this->set_black(arg0);
51 static int DisplayEffect_is_black_wrapper(HSQUIRRELVM v)
53 Scripting::DisplayEffect* _this;
54 sq_getinstanceup(v, 1, (SQUserPointer*) &_this, 0);
56 bool return_value = _this->is_black();
58 sq_pushbool(v, return_value);
62 static int Camera_shake_wrapper(HSQUIRRELVM v)
64 Scripting::Camera* _this;
65 sq_getinstanceup(v, 1, (SQUserPointer*) &_this, 0);
67 sq_getfloat(v, 2, &arg0);
69 sq_getfloat(v, 3, &arg1);
71 sq_getfloat(v, 4, &arg2);
73 _this->shake(arg0, arg1, arg2);
78 static int Camera_set_pos_wrapper(HSQUIRRELVM v)
80 Scripting::Camera* _this;
81 sq_getinstanceup(v, 1, (SQUserPointer*) &_this, 0);
83 sq_getfloat(v, 2, &arg0);
85 sq_getfloat(v, 3, &arg1);
87 _this->set_pos(arg0, arg1);
92 static int Camera_set_mode_wrapper(HSQUIRRELVM v)
94 Scripting::Camera* _this;
95 sq_getinstanceup(v, 1, (SQUserPointer*) &_this, 0);
97 sq_getstring(v, 2, &arg0);
99 _this->set_mode(arg0);
104 static int Level_finish_wrapper(HSQUIRRELVM v)
106 Scripting::Level* _this;
107 sq_getinstanceup(v, 1, (SQUserPointer*) &_this, 0);
114 static int Level_spawn_wrapper(HSQUIRRELVM v)
116 Scripting::Level* _this;
117 sq_getinstanceup(v, 1, (SQUserPointer*) &_this, 0);
119 sq_getstring(v, 2, &arg0);
121 sq_getstring(v, 3, &arg1);
123 _this->spawn(arg0, arg1);
128 static int ScriptedObject_set_animation_wrapper(HSQUIRRELVM v)
130 Scripting::ScriptedObject* _this;
131 sq_getinstanceup(v, 1, (SQUserPointer*) &_this, 0);
133 sq_getstring(v, 2, &arg0);
135 _this->set_animation(arg0);
140 static int ScriptedObject_get_animation_wrapper(HSQUIRRELVM v)
142 Scripting::ScriptedObject* _this;
143 sq_getinstanceup(v, 1, (SQUserPointer*) &_this, 0);
145 std::string return_value = _this->get_animation();
147 sq_pushstring(v, return_value.c_str(), return_value.size());
151 static int ScriptedObject_move_wrapper(HSQUIRRELVM v)
153 Scripting::ScriptedObject* _this;
154 sq_getinstanceup(v, 1, (SQUserPointer*) &_this, 0);
156 sq_getfloat(v, 2, &arg0);
158 sq_getfloat(v, 3, &arg1);
160 _this->move(arg0, arg1);
165 static int ScriptedObject_set_pos_wrapper(HSQUIRRELVM v)
167 Scripting::ScriptedObject* _this;
168 sq_getinstanceup(v, 1, (SQUserPointer*) &_this, 0);
170 sq_getfloat(v, 2, &arg0);
172 sq_getfloat(v, 3, &arg1);
174 _this->set_pos(arg0, arg1);
179 static int ScriptedObject_get_pos_x_wrapper(HSQUIRRELVM v)
181 Scripting::ScriptedObject* _this;
182 sq_getinstanceup(v, 1, (SQUserPointer*) &_this, 0);
184 float return_value = _this->get_pos_x();
186 sq_pushfloat(v, return_value);
190 static int ScriptedObject_get_pos_y_wrapper(HSQUIRRELVM v)
192 Scripting::ScriptedObject* _this;
193 sq_getinstanceup(v, 1, (SQUserPointer*) &_this, 0);
195 float return_value = _this->get_pos_y();
197 sq_pushfloat(v, return_value);
201 static int ScriptedObject_set_velocity_wrapper(HSQUIRRELVM v)
203 Scripting::ScriptedObject* _this;
204 sq_getinstanceup(v, 1, (SQUserPointer*) &_this, 0);
206 sq_getfloat(v, 2, &arg0);
208 sq_getfloat(v, 3, &arg1);
210 _this->set_velocity(arg0, arg1);
215 static int ScriptedObject_get_velocity_x_wrapper(HSQUIRRELVM v)
217 Scripting::ScriptedObject* _this;
218 sq_getinstanceup(v, 1, (SQUserPointer*) &_this, 0);
220 float return_value = _this->get_velocity_x();
222 sq_pushfloat(v, return_value);
226 static int ScriptedObject_get_velocity_y_wrapper(HSQUIRRELVM v)
228 Scripting::ScriptedObject* _this;
229 sq_getinstanceup(v, 1, (SQUserPointer*) &_this, 0);
231 float return_value = _this->get_velocity_y();
233 sq_pushfloat(v, return_value);
237 static int ScriptedObject_set_visible_wrapper(HSQUIRRELVM v)
239 Scripting::ScriptedObject* _this;
240 sq_getinstanceup(v, 1, (SQUserPointer*) &_this, 0);
242 sq_getbool(v, 2, &arg0);
244 _this->set_visible(arg0);
249 static int ScriptedObject_is_visible_wrapper(HSQUIRRELVM v)
251 Scripting::ScriptedObject* _this;
252 sq_getinstanceup(v, 1, (SQUserPointer*) &_this, 0);
254 bool return_value = _this->is_visible();
256 sq_pushbool(v, return_value);
260 static int ScriptedObject_get_name_wrapper(HSQUIRRELVM v)
262 Scripting::ScriptedObject* _this;
263 sq_getinstanceup(v, 1, (SQUserPointer*) &_this, 0);
265 std::string return_value = _this->get_name();
267 sq_pushstring(v, return_value.c_str(), return_value.size());
271 static int Sound_play_music_wrapper(HSQUIRRELVM v)
273 Scripting::Sound* _this;
274 sq_getinstanceup(v, 1, (SQUserPointer*) &_this, 0);
276 sq_getstring(v, 2, &arg0);
278 _this->play_music(arg0);
283 static int Sound_play_sound_wrapper(HSQUIRRELVM v)
285 Scripting::Sound* _this;
286 sq_getinstanceup(v, 1, (SQUserPointer*) &_this, 0);
288 sq_getstring(v, 2, &arg0);
290 _this->play_sound(arg0);
295 static int Text_set_text_wrapper(HSQUIRRELVM v)
297 Scripting::Text* _this;
298 sq_getinstanceup(v, 1, (SQUserPointer*) &_this, 0);
300 sq_getstring(v, 2, &arg0);
302 _this->set_text(arg0);
307 static int Text_set_font_wrapper(HSQUIRRELVM v)
309 Scripting::Text* _this;
310 sq_getinstanceup(v, 1, (SQUserPointer*) &_this, 0);
312 sq_getstring(v, 2, &arg0);
314 _this->set_font(arg0);
319 static int Text_fade_in_wrapper(HSQUIRRELVM v)
321 Scripting::Text* _this;
322 sq_getinstanceup(v, 1, (SQUserPointer*) &_this, 0);
324 sq_getfloat(v, 2, &arg0);
326 _this->fade_in(arg0);
331 static int Text_fade_out_wrapper(HSQUIRRELVM v)
333 Scripting::Text* _this;
334 sq_getinstanceup(v, 1, (SQUserPointer*) &_this, 0);
336 sq_getfloat(v, 2, &arg0);
338 _this->fade_out(arg0);
343 static int Text_set_visible_wrapper(HSQUIRRELVM v)
345 Scripting::Text* _this;
346 sq_getinstanceup(v, 1, (SQUserPointer*) &_this, 0);
348 sq_getbool(v, 2, &arg0);
350 _this->set_visible(arg0);
355 static int set_wakeup_time_wrapper(HSQUIRRELVM v)
358 sq_getfloat(v, 2, &arg0);
360 Scripting::set_wakeup_time(arg0);
365 static int translate_wrapper(HSQUIRRELVM v)
368 sq_getstring(v, 2, &arg0);
370 std::string return_value = Scripting::translate(arg0);
372 sq_pushstring(v, return_value.c_str(), return_value.size());
376 WrappedFunction supertux_global_functions[] = {
377 { "set_wakeup_time", &set_wakeup_time_wrapper },
378 { "translate", &translate_wrapper },
382 static WrappedFunction supertux_DisplayEffect_methods[] = {
383 { "fade_out", &DisplayEffect_fade_out_wrapper },
384 { "fade_in", &DisplayEffect_fade_in_wrapper },
385 { "set_black", &DisplayEffect_set_black_wrapper },
386 { "is_black", &DisplayEffect_is_black_wrapper },
389 static WrappedFunction supertux_Camera_methods[] = {
390 { "shake", &Camera_shake_wrapper },
391 { "set_pos", &Camera_set_pos_wrapper },
392 { "set_mode", &Camera_set_mode_wrapper },
395 static WrappedFunction supertux_Level_methods[] = {
396 { "finish", &Level_finish_wrapper },
397 { "spawn", &Level_spawn_wrapper },
400 static WrappedFunction supertux_ScriptedObject_methods[] = {
401 { "set_animation", &ScriptedObject_set_animation_wrapper },
402 { "get_animation", &ScriptedObject_get_animation_wrapper },
403 { "move", &ScriptedObject_move_wrapper },
404 { "set_pos", &ScriptedObject_set_pos_wrapper },
405 { "get_pos_x", &ScriptedObject_get_pos_x_wrapper },
406 { "get_pos_y", &ScriptedObject_get_pos_y_wrapper },
407 { "set_velocity", &ScriptedObject_set_velocity_wrapper },
408 { "get_velocity_x", &ScriptedObject_get_velocity_x_wrapper },
409 { "get_velocity_y", &ScriptedObject_get_velocity_y_wrapper },
410 { "set_visible", &ScriptedObject_set_visible_wrapper },
411 { "is_visible", &ScriptedObject_is_visible_wrapper },
412 { "get_name", &ScriptedObject_get_name_wrapper },
415 static WrappedFunction supertux_Sound_methods[] = {
416 { "play_music", &Sound_play_music_wrapper },
417 { "play_sound", &Sound_play_sound_wrapper },
420 static WrappedFunction supertux_Text_methods[] = {
421 { "set_text", &Text_set_text_wrapper },
422 { "set_font", &Text_set_font_wrapper },
423 { "fade_in", &Text_fade_in_wrapper },
424 { "fade_out", &Text_fade_out_wrapper },
425 { "set_visible", &Text_set_visible_wrapper },
428 WrappedClass supertux_classes[] = {
429 { "DisplayEffect", supertux_DisplayEffect_methods },
430 { "Camera", supertux_Camera_methods },
431 { "Level", supertux_Level_methods },
432 { "ScriptedObject", supertux_ScriptedObject_methods },
433 { "Sound", supertux_Sound_methods },
434 { "Text", supertux_Text_methods },