// Autogenerated, do not edit #include "../../Native/AllUrho.h" #include "../../Native/interop.h" using namespace Urho3D; extern "C" { DllExport void * RefCount_RefCount () { return new RefCount(); } DllExport void * RefCounted_RefCounted () { return new RefCounted(); } DllExport void RefCounted_AddRef (Urho3D::RefCounted *_target) { _target->AddRef (); } DllExport void RefCounted_ReleaseRef (Urho3D::RefCounted *_target) { _target->ReleaseRef (); } DllExport int RefCounted_Refs (Urho3D::RefCounted *_target) { return _target->Refs (); } DllExport int RefCounted_WeakRefs (Urho3D::RefCounted *_target) { return _target->WeakRefs (); } DllExport Urho3D::RefCount * RefCounted_RefCountPtr (Urho3D::RefCounted *_target) { return _target->RefCountPtr (); } DllExport void * UrhoString_String () { return new String(); } DllExport void * UrhoString_String0 (const char * str) { return new String(Urho3D::String(str)); } DllExport void * UrhoString_String1 (int value) { return new String(value); } DllExport void * UrhoString_String2 (short value) { return new String(value); } DllExport void * UrhoString_String3 (long value) { return new String(value); } DllExport void * UrhoString_String4 (long long value) { return new String(value); } DllExport void * UrhoString_String5 (unsigned int value) { return new String(value); } DllExport void * UrhoString_String6 (unsigned short value) { return new String(value); } DllExport void * UrhoString_String7 (unsigned long value) { return new String(value); } DllExport void * UrhoString_String8 (unsigned long long value) { return new String(value); } DllExport void * UrhoString_String9 (float value) { return new String(value); } DllExport void * UrhoString_String10 (double value) { return new String(value); } DllExport void * UrhoString_String11 (bool value) { return new String(value); } DllExport void UrhoString_Replace (Urho3D::String *_target, const char * replaceThis, const char * replaceWith, bool caseSensitive) { _target->Replace (Urho3D::String(replaceThis), Urho3D::String(replaceWith), caseSensitive); } DllExport void UrhoString_Replace12 (Urho3D::String *_target, unsigned int pos, unsigned int length, const char * replaceWith) { _target->Replace (pos, length, Urho3D::String(replaceWith)); } DllExport const char * UrhoString_Replaced (Urho3D::String *_target, const char * replaceThis, const char * replaceWith, bool caseSensitive) { return stringdup((_target->Replaced (Urho3D::String(replaceThis), Urho3D::String(replaceWith), caseSensitive)).CString ()); } DllExport void UrhoString_Insert (Urho3D::String *_target, unsigned int pos, const char * str) { _target->Insert (pos, Urho3D::String(str)); } DllExport void UrhoString_Erase (Urho3D::String *_target, unsigned int pos, unsigned int length) { _target->Erase (pos, length); } DllExport void UrhoString_Resize (Urho3D::String *_target, unsigned int newLength) { _target->Resize (newLength); } DllExport void UrhoString_Reserve (Urho3D::String *_target, unsigned int newCapacity) { _target->Reserve (newCapacity); } DllExport void UrhoString_Compact (Urho3D::String *_target) { _target->Compact (); } DllExport void UrhoString_Clear (Urho3D::String *_target) { _target->Clear (); } DllExport const char * UrhoString_Substring (Urho3D::String *_target, unsigned int pos) { return stringdup((_target->Substring (pos)).CString ()); } DllExport const char * UrhoString_Substring13 (Urho3D::String *_target, unsigned int pos, unsigned int length) { return stringdup((_target->Substring (pos, length)).CString ()); } DllExport const char * UrhoString_Trimmed (Urho3D::String *_target) { return stringdup((_target->Trimmed ()).CString ()); } DllExport const char * UrhoString_ToUpper (Urho3D::String *_target) { return stringdup((_target->ToUpper ()).CString ()); } DllExport const char * UrhoString_ToLower (Urho3D::String *_target) { return stringdup((_target->ToLower ()).CString ()); } DllExport unsigned int UrhoString_Find (Urho3D::String *_target, const char * str, unsigned int startPos, bool caseSensitive) { return _target->Find (Urho3D::String(str), startPos, caseSensitive); } DllExport unsigned int UrhoString_FindLast (Urho3D::String *_target, const char * str, unsigned int startPos, bool caseSensitive) { return _target->FindLast (Urho3D::String(str), startPos, caseSensitive); } DllExport int UrhoString_StartsWith (Urho3D::String *_target, const char * str, bool caseSensitive) { return _target->StartsWith (Urho3D::String(str), caseSensitive); } DllExport int UrhoString_EndsWith (Urho3D::String *_target, const char * str, bool caseSensitive) { return _target->EndsWith (Urho3D::String(str), caseSensitive); } DllExport unsigned int UrhoString_Length (Urho3D::String *_target) { return _target->Length (); } DllExport unsigned int UrhoString_Capacity (Urho3D::String *_target) { return _target->Capacity (); } DllExport int UrhoString_Empty (Urho3D::String *_target) { return _target->Empty (); } DllExport int UrhoString_Compare (Urho3D::String *_target, const char * str, bool caseSensitive) { return _target->Compare (Urho3D::String(str), caseSensitive); } DllExport int UrhoString_Contains (Urho3D::String *_target, const char * str, bool caseSensitive) { return _target->Contains (Urho3D::String(str), caseSensitive); } DllExport unsigned int UrhoString_LengthUTF8 (Urho3D::String *_target) { return _target->LengthUTF8 (); } DllExport unsigned int UrhoString_ByteOffsetUTF8 (Urho3D::String *_target, unsigned int index) { return _target->ByteOffsetUTF8 (index); } DllExport unsigned int UrhoString_AtUTF8 (Urho3D::String *_target, unsigned int index) { return _target->AtUTF8 (index); } DllExport void UrhoString_ReplaceUTF8 (Urho3D::String *_target, unsigned int index, unsigned int unicodeChar) { _target->ReplaceUTF8 (index, unicodeChar); } DllExport const char * UrhoString_SubstringUTF8 (Urho3D::String *_target, unsigned int pos) { return stringdup((_target->SubstringUTF8 (pos)).CString ()); } DllExport const char * UrhoString_SubstringUTF814 (Urho3D::String *_target, unsigned int pos, unsigned int length) { return stringdup((_target->SubstringUTF8 (pos, length)).CString ()); } DllExport unsigned int UrhoString_ToHash (Urho3D::String *_target) { return _target->ToHash (); } // Urho3D::Variant overloads begin: DllExport void AttributeAccessor_Set_0 (Urho3D::AttributeAccessor *_target, Urho3D::Serializable * ptr, const class Urho3D::Vector3 & src) { _target->Set (ptr, (src)); } DllExport void AttributeAccessor_Set_1 (Urho3D::AttributeAccessor *_target, Urho3D::Serializable * ptr, const class Urho3D::IntRect & src) { _target->Set (ptr, (src)); } DllExport void AttributeAccessor_Set_2 (Urho3D::AttributeAccessor *_target, Urho3D::Serializable * ptr, const class Urho3D::Color & src) { _target->Set (ptr, (src)); } DllExport void AttributeAccessor_Set_3 (Urho3D::AttributeAccessor *_target, Urho3D::Serializable * ptr, const class Urho3D::Vector2 & src) { _target->Set (ptr, (src)); } DllExport void AttributeAccessor_Set_4 (Urho3D::AttributeAccessor *_target, Urho3D::Serializable * ptr, const class Urho3D::Vector4 & src) { _target->Set (ptr, (src)); } DllExport void AttributeAccessor_Set_5 (Urho3D::AttributeAccessor *_target, Urho3D::Serializable * ptr, const class Urho3D::IntVector2 & src) { _target->Set (ptr, (src)); } DllExport void AttributeAccessor_Set_6 (Urho3D::AttributeAccessor *_target, Urho3D::Serializable * ptr, const class Urho3D::Quaternion & src) { _target->Set (ptr, (src)); } DllExport void AttributeAccessor_Set_7 (Urho3D::AttributeAccessor *_target, Urho3D::Serializable * ptr, const class Urho3D::Matrix4 & src) { _target->Set (ptr, (src)); } DllExport void AttributeAccessor_Set_8 (Urho3D::AttributeAccessor *_target, Urho3D::Serializable * ptr, const class Urho3D::Matrix3x4 & src) { _target->Set (ptr, (src)); } DllExport void AttributeAccessor_Set_9 (Urho3D::AttributeAccessor *_target, Urho3D::Serializable * ptr, int src) { _target->Set (ptr, (src)); } DllExport void AttributeAccessor_Set_10 (Urho3D::AttributeAccessor *_target, Urho3D::Serializable * ptr, float src) { _target->Set (ptr, (src)); } DllExport void AttributeAccessor_Set_11 (Urho3D::AttributeAccessor *_target, Urho3D::Serializable * ptr, const char * src) { _target->Set (ptr, Urho3D::String(src)); } DllExport void AttributeAccessor_Set_12 (Urho3D::AttributeAccessor *_target, Urho3D::Serializable * ptr, bool src) { _target->Set (ptr, (src)); } // Urho3D::Variant overloads end. DllExport int UrhoObject_GetType (Urho3D::Object *_target) { return (_target->GetType ()).Value (); } DllExport const char * UrhoObject_GetTypeName (Urho3D::Object *_target) { return stringdup((_target->GetTypeName ()).CString ()); } DllExport const class Urho3D::TypeInfo * UrhoObject_GetTypeInfo (Urho3D::Object *_target) { return _target->GetTypeInfo (); } DllExport const class Urho3D::TypeInfo * UrhoObject_GetTypeInfoStatic () { return Object::GetTypeInfoStatic (); } DllExport int UrhoObject_IsInstanceOf (Urho3D::Object *_target, int type) { return _target->IsInstanceOf (Urho3D::StringHash(type)); } DllExport int UrhoObject_IsInstanceOf0 (Urho3D::Object *_target, const class Urho3D::TypeInfo * typeInfo) { return _target->IsInstanceOf (typeInfo); } DllExport void UrhoObject_SubscribeToEvent (Urho3D::Object *_target, int eventType, Urho3D::EventHandler * handler) { _target->SubscribeToEvent (Urho3D::StringHash(eventType), handler); } DllExport void UrhoObject_SubscribeToEvent1 (Urho3D::Object *_target, Urho3D::Object * sender, int eventType, Urho3D::EventHandler * handler) { _target->SubscribeToEvent (sender, Urho3D::StringHash(eventType), handler); } DllExport void UrhoObject_UnsubscribeFromEvent (Urho3D::Object *_target, int eventType) { _target->UnsubscribeFromEvent (Urho3D::StringHash(eventType)); } DllExport void UrhoObject_UnsubscribeFromEvent2 (Urho3D::Object *_target, Urho3D::Object * sender, int eventType) { _target->UnsubscribeFromEvent (sender, Urho3D::StringHash(eventType)); } DllExport void UrhoObject_UnsubscribeFromEvents (Urho3D::Object *_target, Urho3D::Object * sender) { _target->UnsubscribeFromEvents (sender); } DllExport void UrhoObject_UnsubscribeFromAllEvents (Urho3D::Object *_target) { _target->UnsubscribeFromAllEvents (); } DllExport void UrhoObject_SendEvent (Urho3D::Object *_target, int eventType) { _target->SendEvent (Urho3D::StringHash(eventType)); } DllExport Urho3D::Context * UrhoObject_GetContext (Urho3D::Object *_target) { return _target->GetContext (); } // Urho3D::Variant overloads begin: DllExport Interop::Vector3 UrhoObject_GetGlobalVar_0 (Urho3D::Object *_target, int key) { return *((Interop::Vector3 *) &(_target->GetGlobalVar (Urho3D::StringHash(key)).GetVector3())); } DllExport Interop::IntRect UrhoObject_GetGlobalVar_1 (Urho3D::Object *_target, int key) { return *((Interop::IntRect *) &(_target->GetGlobalVar (Urho3D::StringHash(key)).GetIntRect())); } DllExport Interop::Color UrhoObject_GetGlobalVar_2 (Urho3D::Object *_target, int key) { return *((Interop::Color *) &(_target->GetGlobalVar (Urho3D::StringHash(key)).GetColor())); } DllExport Interop::Vector2 UrhoObject_GetGlobalVar_3 (Urho3D::Object *_target, int key) { return *((Interop::Vector2 *) &(_target->GetGlobalVar (Urho3D::StringHash(key)).GetVector2())); } DllExport Interop::Vector4 UrhoObject_GetGlobalVar_4 (Urho3D::Object *_target, int key) { return *((Interop::Vector4 *) &(_target->GetGlobalVar (Urho3D::StringHash(key)).GetVector4())); } DllExport Interop::IntVector2 UrhoObject_GetGlobalVar_5 (Urho3D::Object *_target, int key) { return *((Interop::IntVector2 *) &(_target->GetGlobalVar (Urho3D::StringHash(key)).GetIntVector2())); } DllExport Interop::Quaternion UrhoObject_GetGlobalVar_6 (Urho3D::Object *_target, int key) { return *((Interop::Quaternion *) &(_target->GetGlobalVar (Urho3D::StringHash(key)).GetQuaternion())); } DllExport Interop::Matrix4 UrhoObject_GetGlobalVar_7 (Urho3D::Object *_target, int key) { return *((Interop::Matrix4 *) &(_target->GetGlobalVar (Urho3D::StringHash(key)).GetMatrix4())); } DllExport Interop::Matrix3x4 UrhoObject_GetGlobalVar_8 (Urho3D::Object *_target, int key) { return *((Interop::Matrix3x4 *) &(_target->GetGlobalVar (Urho3D::StringHash(key)).GetMatrix3x4())); } DllExport int UrhoObject_GetGlobalVar_9 (Urho3D::Object *_target, int key) { return (_target->GetGlobalVar (Urho3D::StringHash(key)).GetInt()); } DllExport float UrhoObject_GetGlobalVar_10 (Urho3D::Object *_target, int key) { return (_target->GetGlobalVar (Urho3D::StringHash(key)).GetFloat()); } DllExport const char * UrhoObject_GetGlobalVar_11 (Urho3D::Object *_target, int key) { return stringdup(_target->GetGlobalVar (Urho3D::StringHash(key)).GetString().CString()); } DllExport bool UrhoObject_GetGlobalVar_12 (Urho3D::Object *_target, int key) { return (_target->GetGlobalVar (Urho3D::StringHash(key)).GetBool()); } // Urho3D::Variant overloads end. // Urho3D::Variant overloads begin: DllExport void UrhoObject_SetGlobalVar_0 (Urho3D::Object *_target, int key, const class Urho3D::Vector3 & value) { _target->SetGlobalVar (Urho3D::StringHash(key), (value)); } DllExport void UrhoObject_SetGlobalVar_1 (Urho3D::Object *_target, int key, const class Urho3D::IntRect & value) { _target->SetGlobalVar (Urho3D::StringHash(key), (value)); } DllExport void UrhoObject_SetGlobalVar_2 (Urho3D::Object *_target, int key, const class Urho3D::Color & value) { _target->SetGlobalVar (Urho3D::StringHash(key), (value)); } DllExport void UrhoObject_SetGlobalVar_3 (Urho3D::Object *_target, int key, const class Urho3D::Vector2 & value) { _target->SetGlobalVar (Urho3D::StringHash(key), (value)); } DllExport void UrhoObject_SetGlobalVar_4 (Urho3D::Object *_target, int key, const class Urho3D::Vector4 & value) { _target->SetGlobalVar (Urho3D::StringHash(key), (value)); } DllExport void UrhoObject_SetGlobalVar_5 (Urho3D::Object *_target, int key, const class Urho3D::IntVector2 & value) { _target->SetGlobalVar (Urho3D::StringHash(key), (value)); } DllExport void UrhoObject_SetGlobalVar_6 (Urho3D::Object *_target, int key, const class Urho3D::Quaternion & value) { _target->SetGlobalVar (Urho3D::StringHash(key), (value)); } DllExport void UrhoObject_SetGlobalVar_7 (Urho3D::Object *_target, int key, const class Urho3D::Matrix4 & value) { _target->SetGlobalVar (Urho3D::StringHash(key), (value)); } DllExport void UrhoObject_SetGlobalVar_8 (Urho3D::Object *_target, int key, const class Urho3D::Matrix3x4 & value) { _target->SetGlobalVar (Urho3D::StringHash(key), (value)); } DllExport void UrhoObject_SetGlobalVar_9 (Urho3D::Object *_target, int key, int value) { _target->SetGlobalVar (Urho3D::StringHash(key), (value)); } DllExport void UrhoObject_SetGlobalVar_10 (Urho3D::Object *_target, int key, float value) { _target->SetGlobalVar (Urho3D::StringHash(key), (value)); } DllExport void UrhoObject_SetGlobalVar_11 (Urho3D::Object *_target, int key, const char * value) { _target->SetGlobalVar (Urho3D::StringHash(key), Urho3D::String(value)); } DllExport void UrhoObject_SetGlobalVar_12 (Urho3D::Object *_target, int key, bool value) { _target->SetGlobalVar (Urho3D::StringHash(key), (value)); } // Urho3D::Variant overloads end. DllExport Urho3D::Object * UrhoObject_GetSubsystem (Urho3D::Object *_target, int type) { return _target->GetSubsystem (Urho3D::StringHash(type)); } DllExport Urho3D::Object * UrhoObject_GetEventSender (Urho3D::Object *_target) { return _target->GetEventSender (); } DllExport Urho3D::EventHandler * UrhoObject_GetEventHandler (Urho3D::Object *_target) { return _target->GetEventHandler (); } DllExport int UrhoObject_HasSubscribedToEvent (Urho3D::Object *_target, int eventType) { return _target->HasSubscribedToEvent (Urho3D::StringHash(eventType)); } DllExport int UrhoObject_HasSubscribedToEvent3 (Urho3D::Object *_target, Urho3D::Object * sender, int eventType) { return _target->HasSubscribedToEvent (sender, Urho3D::StringHash(eventType)); } DllExport int UrhoObject_HasEventHandlers (Urho3D::Object *_target) { return _target->HasEventHandlers (); } DllExport const char * UrhoObject_GetCategory (Urho3D::Object *_target) { return stringdup((_target->GetCategory ()).CString ()); } DllExport void UrhoObject_SetBlockEvents (Urho3D::Object *_target, bool block) { _target->SetBlockEvents (block); } DllExport int UrhoObject_GetBlockEvents (Urho3D::Object *_target) { return _target->GetBlockEvents (); } DllExport Urho3D::Object * ObjectFactory_CreateObject (Urho3D::ObjectFactory *_target) { auto copy = _target->CreateObject (); auto plain = copy.Get(); copy.Detach(); delete copy; return plain; } DllExport Urho3D::Context * ObjectFactory_GetContext (Urho3D::ObjectFactory *_target) { return _target->GetContext (); } DllExport const class Urho3D::TypeInfo * ObjectFactory_GetTypeInfo (Urho3D::ObjectFactory *_target) { return _target->GetTypeInfo (); } DllExport int ObjectFactory_GetType (Urho3D::ObjectFactory *_target) { return (_target->GetType ()).Value (); } DllExport const char * ObjectFactory_GetTypeName (Urho3D::ObjectFactory *_target) { return stringdup((_target->GetTypeName ()).CString ()); } DllExport int Serializable_GetType (Urho3D::Serializable *_target) { return (_target->GetType ()).Value (); } DllExport const char * Serializable_GetTypeName (Urho3D::Serializable *_target) { return stringdup((_target->GetTypeName ()).CString ()); } DllExport int Serializable_GetTypeStatic () { return (Serializable::GetTypeStatic ()).Value (); } DllExport const char * Serializable_GetTypeNameStatic () { return stringdup((Serializable::GetTypeNameStatic ()).CString ()); } DllExport void * Serializable_Serializable (Urho3D::Context * context) { return WeakPtr(new Serializable(context)); } DllExport int Serializable_Load_File (Urho3D::Serializable *_target, File * source, bool setInstanceDefault) { return _target->Load (*source, setInstanceDefault); } DllExport int Serializable_Load_MemoryBuffer (Urho3D::Serializable *_target, MemoryBuffer * source, bool setInstanceDefault) { return _target->Load (*source, setInstanceDefault); } DllExport int Serializable_Save_File (Urho3D::Serializable *_target, File * dest) { return _target->Save (*dest); } DllExport int Serializable_Save_MemoryBuffer (Urho3D::Serializable *_target, MemoryBuffer * dest) { return _target->Save (*dest); } DllExport int Serializable_LoadXML (Urho3D::Serializable *_target, const class Urho3D::XMLElement & source, bool setInstanceDefault) { return _target->LoadXML (source, setInstanceDefault); } DllExport int Serializable_SaveXML (Urho3D::Serializable *_target, Urho3D::XMLElement & dest) { return _target->SaveXML (dest); } DllExport void Serializable_ApplyAttributes (Urho3D::Serializable *_target) { _target->ApplyAttributes (); } DllExport int Serializable_SaveDefaultAttributes (Urho3D::Serializable *_target) { return _target->SaveDefaultAttributes (); } DllExport void Serializable_MarkNetworkUpdate (Urho3D::Serializable *_target) { _target->MarkNetworkUpdate (); } // Urho3D::Variant overloads begin: DllExport int Serializable_SetAttribute_0 (Urho3D::Serializable *_target, unsigned int index, const class Urho3D::Vector3 & value) { return _target->SetAttribute (index, (value)); } DllExport int Serializable_SetAttribute_1 (Urho3D::Serializable *_target, unsigned int index, const class Urho3D::IntRect & value) { return _target->SetAttribute (index, (value)); } DllExport int Serializable_SetAttribute_2 (Urho3D::Serializable *_target, unsigned int index, const class Urho3D::Color & value) { return _target->SetAttribute (index, (value)); } DllExport int Serializable_SetAttribute_3 (Urho3D::Serializable *_target, unsigned int index, const class Urho3D::Vector2 & value) { return _target->SetAttribute (index, (value)); } DllExport int Serializable_SetAttribute_4 (Urho3D::Serializable *_target, unsigned int index, const class Urho3D::Vector4 & value) { return _target->SetAttribute (index, (value)); } DllExport int Serializable_SetAttribute_5 (Urho3D::Serializable *_target, unsigned int index, const class Urho3D::IntVector2 & value) { return _target->SetAttribute (index, (value)); } DllExport int Serializable_SetAttribute_6 (Urho3D::Serializable *_target, unsigned int index, const class Urho3D::Quaternion & value) { return _target->SetAttribute (index, (value)); } DllExport int Serializable_SetAttribute_7 (Urho3D::Serializable *_target, unsigned int index, const class Urho3D::Matrix4 & value) { return _target->SetAttribute (index, (value)); } DllExport int Serializable_SetAttribute_8 (Urho3D::Serializable *_target, unsigned int index, const class Urho3D::Matrix3x4 & value) { return _target->SetAttribute (index, (value)); } DllExport int Serializable_SetAttribute_9 (Urho3D::Serializable *_target, unsigned int index, int value) { return _target->SetAttribute (index, (value)); } DllExport int Serializable_SetAttribute_10 (Urho3D::Serializable *_target, unsigned int index, float value) { return _target->SetAttribute (index, (value)); } DllExport int Serializable_SetAttribute_11 (Urho3D::Serializable *_target, unsigned int index, const char * value) { return _target->SetAttribute (index, Urho3D::String(value)); } DllExport int Serializable_SetAttribute_12 (Urho3D::Serializable *_target, unsigned int index, bool value) { return _target->SetAttribute (index, (value)); } // Urho3D::Variant overloads end. // Urho3D::Variant overloads begin: DllExport int Serializable_SetAttribute0_0 (Urho3D::Serializable *_target, const char * name, const class Urho3D::Vector3 & value) { return _target->SetAttribute (Urho3D::String(name), (value)); } DllExport int Serializable_SetAttribute0_1 (Urho3D::Serializable *_target, const char * name, const class Urho3D::IntRect & value) { return _target->SetAttribute (Urho3D::String(name), (value)); } DllExport int Serializable_SetAttribute0_2 (Urho3D::Serializable *_target, const char * name, const class Urho3D::Color & value) { return _target->SetAttribute (Urho3D::String(name), (value)); } DllExport int Serializable_SetAttribute0_3 (Urho3D::Serializable *_target, const char * name, const class Urho3D::Vector2 & value) { return _target->SetAttribute (Urho3D::String(name), (value)); } DllExport int Serializable_SetAttribute0_4 (Urho3D::Serializable *_target, const char * name, const class Urho3D::Vector4 & value) { return _target->SetAttribute (Urho3D::String(name), (value)); } DllExport int Serializable_SetAttribute0_5 (Urho3D::Serializable *_target, const char * name, const class Urho3D::IntVector2 & value) { return _target->SetAttribute (Urho3D::String(name), (value)); } DllExport int Serializable_SetAttribute0_6 (Urho3D::Serializable *_target, const char * name, const class Urho3D::Quaternion & value) { return _target->SetAttribute (Urho3D::String(name), (value)); } DllExport int Serializable_SetAttribute0_7 (Urho3D::Serializable *_target, const char * name, const class Urho3D::Matrix4 & value) { return _target->SetAttribute (Urho3D::String(name), (value)); } DllExport int Serializable_SetAttribute0_8 (Urho3D::Serializable *_target, const char * name, const class Urho3D::Matrix3x4 & value) { return _target->SetAttribute (Urho3D::String(name), (value)); } DllExport int Serializable_SetAttribute0_9 (Urho3D::Serializable *_target, const char * name, int value) { return _target->SetAttribute (Urho3D::String(name), (value)); } DllExport int Serializable_SetAttribute0_10 (Urho3D::Serializable *_target, const char * name, float value) { return _target->SetAttribute (Urho3D::String(name), (value)); } DllExport int Serializable_SetAttribute0_11 (Urho3D::Serializable *_target, const char * name, const char * value) { return _target->SetAttribute (Urho3D::String(name), Urho3D::String(value)); } DllExport int Serializable_SetAttribute0_12 (Urho3D::Serializable *_target, const char * name, bool value) { return _target->SetAttribute (Urho3D::String(name), (value)); } // Urho3D::Variant overloads end. DllExport void Serializable_ResetToDefault (Urho3D::Serializable *_target) { _target->ResetToDefault (); } DllExport void Serializable_RemoveInstanceDefault (Urho3D::Serializable *_target) { _target->RemoveInstanceDefault (); } DllExport void Serializable_SetTemporary (Urho3D::Serializable *_target, bool enable) { _target->SetTemporary (enable); } DllExport void Serializable_SetInterceptNetworkUpdate (Urho3D::Serializable *_target, const char * attributeName, bool enable) { _target->SetInterceptNetworkUpdate (Urho3D::String(attributeName), enable); } DllExport void Serializable_AllocateNetworkState (Urho3D::Serializable *_target) { _target->AllocateNetworkState (); } DllExport void Serializable_WriteInitialDeltaUpdate_File (Urho3D::Serializable *_target, File * dest, unsigned char timeStamp) { _target->WriteInitialDeltaUpdate (*dest, timeStamp); } DllExport void Serializable_WriteInitialDeltaUpdate_MemoryBuffer (Urho3D::Serializable *_target, MemoryBuffer * dest, unsigned char timeStamp) { _target->WriteInitialDeltaUpdate (*dest, timeStamp); } DllExport void Serializable_WriteLatestDataUpdate_File (Urho3D::Serializable *_target, File * dest, unsigned char timeStamp) { _target->WriteLatestDataUpdate (*dest, timeStamp); } DllExport void Serializable_WriteLatestDataUpdate_MemoryBuffer (Urho3D::Serializable *_target, MemoryBuffer * dest, unsigned char timeStamp) { _target->WriteLatestDataUpdate (*dest, timeStamp); } DllExport int Serializable_ReadDeltaUpdate_File (Urho3D::Serializable *_target, File * source) { return _target->ReadDeltaUpdate (*source); } DllExport int Serializable_ReadDeltaUpdate_MemoryBuffer (Urho3D::Serializable *_target, MemoryBuffer * source) { return _target->ReadDeltaUpdate (*source); } DllExport int Serializable_ReadLatestDataUpdate_File (Urho3D::Serializable *_target, File * source) { return _target->ReadLatestDataUpdate (*source); } DllExport int Serializable_ReadLatestDataUpdate_MemoryBuffer (Urho3D::Serializable *_target, MemoryBuffer * source) { return _target->ReadLatestDataUpdate (*source); } DllExport Urho3D::Variant Serializable_GetAttribute (Urho3D::Serializable *_target, unsigned int index) { return _target->GetAttribute (index); } DllExport Urho3D::Variant Serializable_GetAttribute1 (Urho3D::Serializable *_target, const char * name) { return _target->GetAttribute (Urho3D::String(name)); } DllExport Urho3D::Variant Serializable_GetAttributeDefault (Urho3D::Serializable *_target, unsigned int index) { return _target->GetAttributeDefault (index); } DllExport Urho3D::Variant Serializable_GetAttributeDefault2 (Urho3D::Serializable *_target, const char * name) { return _target->GetAttributeDefault (Urho3D::String(name)); } DllExport unsigned int Serializable_GetNumAttributes (Urho3D::Serializable *_target) { return _target->GetNumAttributes (); } DllExport unsigned int Serializable_GetNumNetworkAttributes (Urho3D::Serializable *_target) { return _target->GetNumNetworkAttributes (); } DllExport int Serializable_IsTemporary (Urho3D::Serializable *_target) { return _target->IsTemporary (); } DllExport int Serializable_GetInterceptNetworkUpdate (Urho3D::Serializable *_target, const char * attributeName) { return _target->GetInterceptNetworkUpdate (Urho3D::String(attributeName)); } DllExport Urho3D::NetworkState * Serializable_GetNetworkState (Urho3D::Serializable *_target) { return _target->GetNetworkState (); } DllExport void * ValueAnimationInfo_ValueAnimationInfo (Urho3D::ValueAnimation * animation, enum Urho3D::WrapMode wrapMode, float speed) { return WeakPtr(new ValueAnimationInfo(animation, wrapMode, speed)); } DllExport void * ValueAnimationInfo_ValueAnimationInfo0 (Urho3D::Object * target, Urho3D::ValueAnimation * animation, enum Urho3D::WrapMode wrapMode, float speed) { return WeakPtr(new ValueAnimationInfo(target, animation, wrapMode, speed)); } DllExport int ValueAnimationInfo_Update (Urho3D::ValueAnimationInfo *_target, float timeStep) { return _target->Update (timeStep); } DllExport int ValueAnimationInfo_SetTime (Urho3D::ValueAnimationInfo *_target, float time) { return _target->SetTime (time); } DllExport void ValueAnimationInfo_SetWrapMode (Urho3D::ValueAnimationInfo *_target, enum Urho3D::WrapMode wrapMode) { _target->SetWrapMode (wrapMode); } DllExport void ValueAnimationInfo_SetSpeed (Urho3D::ValueAnimationInfo *_target, float speed) { _target->SetSpeed (speed); } DllExport Urho3D::Object * ValueAnimationInfo_GetTarget (Urho3D::ValueAnimationInfo *_target) { return _target->GetTarget (); } DllExport Urho3D::ValueAnimation * ValueAnimationInfo_GetAnimation (Urho3D::ValueAnimationInfo *_target) { return _target->GetAnimation (); } DllExport enum Urho3D::WrapMode ValueAnimationInfo_GetWrapMode (Urho3D::ValueAnimationInfo *_target) { return _target->GetWrapMode (); } DllExport float ValueAnimationInfo_GetTime (Urho3D::ValueAnimationInfo *_target) { return _target->GetTime (); } DllExport float ValueAnimationInfo_GetSpeed (Urho3D::ValueAnimationInfo *_target) { return _target->GetSpeed (); } DllExport int Animatable_GetType (Urho3D::Animatable *_target) { return (_target->GetType ()).Value (); } DllExport const char * Animatable_GetTypeName (Urho3D::Animatable *_target) { return stringdup((_target->GetTypeName ()).CString ()); } DllExport int Animatable_GetTypeStatic () { return (Animatable::GetTypeStatic ()).Value (); } DllExport const char * Animatable_GetTypeNameStatic () { return stringdup((Animatable::GetTypeNameStatic ()).CString ()); } DllExport void Animatable_RegisterObject (Urho3D::Context * context) { Animatable::RegisterObject (context); } DllExport int Animatable_LoadXML (Urho3D::Animatable *_target, const class Urho3D::XMLElement & source, bool setInstanceDefault) { return _target->LoadXML (source, setInstanceDefault); } DllExport int Animatable_SaveXML (Urho3D::Animatable *_target, Urho3D::XMLElement & dest) { return _target->SaveXML (dest); } DllExport void Animatable_SetAnimationEnabled (Urho3D::Animatable *_target, bool enable) { _target->SetAnimationEnabled (enable); } DllExport void Animatable_SetAnimationTime (Urho3D::Animatable *_target, float time) { _target->SetAnimationTime (time); } DllExport void Animatable_SetObjectAnimation (Urho3D::Animatable *_target, Urho3D::ObjectAnimation * objectAnimation) { _target->SetObjectAnimation (objectAnimation); } DllExport void Animatable_SetAttributeAnimation (Urho3D::Animatable *_target, const char * name, Urho3D::ValueAnimation * attributeAnimation, enum Urho3D::WrapMode wrapMode, float speed) { _target->SetAttributeAnimation (Urho3D::String(name), attributeAnimation, wrapMode, speed); } DllExport void Animatable_SetAttributeAnimationWrapMode (Urho3D::Animatable *_target, const char * name, enum Urho3D::WrapMode wrapMode) { _target->SetAttributeAnimationWrapMode (Urho3D::String(name), wrapMode); } DllExport void Animatable_SetAttributeAnimationSpeed (Urho3D::Animatable *_target, const char * name, float speed) { _target->SetAttributeAnimationSpeed (Urho3D::String(name), speed); } DllExport void Animatable_SetAttributeAnimationTime (Urho3D::Animatable *_target, const char * name, float time) { _target->SetAttributeAnimationTime (Urho3D::String(name), time); } DllExport void Animatable_RemoveObjectAnimation (Urho3D::Animatable *_target) { _target->RemoveObjectAnimation (); } DllExport void Animatable_RemoveAttributeAnimation (Urho3D::Animatable *_target, const char * name) { _target->RemoveAttributeAnimation (Urho3D::String(name)); } DllExport int Animatable_GetAnimationEnabled (Urho3D::Animatable *_target) { return _target->GetAnimationEnabled (); } DllExport Urho3D::ObjectAnimation * Animatable_GetObjectAnimation (Urho3D::Animatable *_target) { return _target->GetObjectAnimation (); } DllExport Urho3D::ValueAnimation * Animatable_GetAttributeAnimation (Urho3D::Animatable *_target, const char * name) { return _target->GetAttributeAnimation (Urho3D::String(name)); } DllExport enum Urho3D::WrapMode Animatable_GetAttributeAnimationWrapMode (Urho3D::Animatable *_target, const char * name) { return _target->GetAttributeAnimationWrapMode (Urho3D::String(name)); } DllExport float Animatable_GetAttributeAnimationSpeed (Urho3D::Animatable *_target, const char * name) { return _target->GetAttributeAnimationSpeed (Urho3D::String(name)); } DllExport float Animatable_GetAttributeAnimationTime (Urho3D::Animatable *_target, const char * name) { return _target->GetAttributeAnimationTime (Urho3D::String(name)); } DllExport Urho3D::ResourceRef Animatable_GetObjectAnimationAttr (Urho3D::Animatable *_target) { return _target->GetObjectAnimationAttr (); } DllExport int Component_GetType (Urho3D::Component *_target) { return (_target->GetType ()).Value (); } DllExport const char * Component_GetTypeName (Urho3D::Component *_target) { return stringdup((_target->GetTypeName ()).CString ()); } DllExport int Component_GetTypeStatic () { return (Component::GetTypeStatic ()).Value (); } DllExport const char * Component_GetTypeNameStatic () { return stringdup((Component::GetTypeNameStatic ()).CString ()); } DllExport void * Component_Component (Urho3D::Context * context) { return WeakPtr(new Component(context)); } DllExport void Component_OnSetEnabled (Urho3D::Component *_target) { _target->OnSetEnabled (); } DllExport int Component_Save_File (Urho3D::Component *_target, File * dest) { return _target->Save (*dest); } DllExport int Component_Save_MemoryBuffer (Urho3D::Component *_target, MemoryBuffer * dest) { return _target->Save (*dest); } DllExport int Component_SaveXML (Urho3D::Component *_target, Urho3D::XMLElement & dest) { return _target->SaveXML (dest); } DllExport void Component_MarkNetworkUpdate (Urho3D::Component *_target) { _target->MarkNetworkUpdate (); } DllExport void Component_DrawDebugGeometry (Urho3D::Component *_target, Urho3D::DebugRenderer * debug, bool depthTest) { _target->DrawDebugGeometry (debug, depthTest); } DllExport void Component_SetEnabled (Urho3D::Component *_target, bool enable) { _target->SetEnabled (enable); } DllExport void Component_Remove (Urho3D::Component *_target) { _target->Remove (); } DllExport unsigned int Component_GetID (Urho3D::Component *_target) { return _target->GetID (); } DllExport Urho3D::Node * Component_GetNode (Urho3D::Component *_target) { return _target->GetNode (); } DllExport Urho3D::Scene * Component_GetScene (Urho3D::Component *_target) { return _target->GetScene (); } DllExport int Component_IsEnabled (Urho3D::Component *_target) { return _target->IsEnabled (); } DllExport int Component_IsEnabledEffective (Urho3D::Component *_target) { return _target->IsEnabledEffective (); } DllExport Urho3D::Component * Component_GetComponent (Urho3D::Component *_target, int type) { return _target->GetComponent (Urho3D::StringHash(type)); } DllExport void Component_AddReplicationState (Urho3D::Component *_target, Urho3D::ComponentReplicationState * state) { _target->AddReplicationState (state); } DllExport void Component_PrepareNetworkUpdate (Urho3D::Component *_target) { _target->PrepareNetworkUpdate (); } DllExport void Component_CleanupConnection (Urho3D::Component *_target, Urho3D::Connection * connection) { _target->CleanupConnection (connection); } DllExport int Time_GetType (Urho3D::Time *_target) { return (_target->GetType ()).Value (); } DllExport const char * Time_GetTypeName (Urho3D::Time *_target) { return stringdup((_target->GetTypeName ()).CString ()); } DllExport int Time_GetTypeStatic () { return (Time::GetTypeStatic ()).Value (); } DllExport const char * Time_GetTypeNameStatic () { return stringdup((Time::GetTypeNameStatic ()).CString ()); } DllExport void * Time_Time (Urho3D::Context * context) { return WeakPtr