namespace Wrapper
{
-static int DisplayEffect_release_hook(SQUserPointer ptr, int )
+static SQInteger DisplayEffect_release_hook(SQUserPointer ptr, int )
{
Scripting::DisplayEffect* _this = reinterpret_cast<Scripting::DisplayEffect*> (ptr);
delete _this;
}
-static int Camera_release_hook(SQUserPointer ptr, int )
+static SQInteger Camera_release_hook(SQUserPointer ptr, int )
{
Scripting::Camera* _this = reinterpret_cast<Scripting::Camera*> (ptr);
delete _this;
}
-static int Level_release_hook(SQUserPointer ptr, int )
+static SQInteger Level_release_hook(SQUserPointer ptr, int )
{
Scripting::Level* _this = reinterpret_cast<Scripting::Level*> (ptr);
delete _this;
}
-static int ScriptedObject_release_hook(SQUserPointer ptr, int )
+static SQInteger ScriptedObject_release_hook(SQUserPointer ptr, int )
{
Scripting::ScriptedObject* _this = reinterpret_cast<Scripting::ScriptedObject*> (ptr);
delete _this;
}
-static int Text_release_hook(SQUserPointer ptr, int )
+static SQInteger Text_release_hook(SQUserPointer ptr, int )
{
Scripting::Text* _this = reinterpret_cast<Scripting::Text*> (ptr);
delete _this;
}
-static int Player_release_hook(SQUserPointer ptr, int )
+static SQInteger Player_release_hook(SQUserPointer ptr, int )
{
Scripting::Player* _this = reinterpret_cast<Scripting::Player*> (ptr);
delete _this;
}
-static int FloatingImage_release_hook(SQUserPointer ptr, int )
+static SQInteger FloatingImage_release_hook(SQUserPointer ptr, int )
{
Scripting::FloatingImage* _this = reinterpret_cast<Scripting::FloatingImage*> (ptr);
delete _this;
void
WrapperCreator::create_class_release_hook(Class* _class)
{
- out << "static int " << _class->name << "_release_hook(SQUserPointer ptr, int )\n"
+ out << "static SQInteger " << _class->name << "_release_hook(SQUserPointer ptr, int )\n"
<< "{\n"
<< ind << ns_prefix << _class->name
<< "* _this = reinterpret_cast<" << ns_prefix << _class->name