Jelajahi Sumber

Fixed a bug in generating bindings for overloaded inherited functions.
Added support for all of gameplay's listener patterns to be used from Lua scripts (using a Lua function callback).
Improved Lua error message reporting when parameters do not match a binding.

Chris Culy 13 tahun lalu
induk
melakukan
c8e7975bd9
100 mengubah file dengan 2978 tambahan dan 1952 penghapusan
  1. 19 7
      gameplay-luagen/TODO.txt
  2. 2 2
      gameplay-luagen/src/ClassBinding.cpp
  3. 39 10
      gameplay-luagen/src/FunctionBinding.cpp
  4. 9 1
      gameplay-luagen/src/Generator.cpp
  5. 2 0
      gameplay/gameplay.vcxproj
  6. 6 0
      gameplay/gameplay.vcxproj.filters
  7. 41 1
      gameplay/src/AnimationClip.cpp
  8. 33 0
      gameplay/src/AnimationClip.h
  9. 22 2
      gameplay/src/Control.cpp
  10. 21 0
      gameplay/src/Control.h
  11. 22 1
      gameplay/src/Game.cpp
  12. 14 1
      gameplay/src/Game.h
  13. 39 1
      gameplay/src/PhysicsCollisionObject.cpp
  14. 23 0
      gameplay/src/PhysicsCollisionObject.h
  15. 39 1
      gameplay/src/PhysicsController.cpp
  16. 19 1
      gameplay/src/PhysicsController.h
  17. 3 5
      gameplay/src/ScriptController.h
  18. 56 0
      gameplay/src/ScriptListener.cpp
  19. 66 0
      gameplay/src/ScriptListener.h
  20. 41 4
      gameplay/src/Transform.cpp
  21. 23 0
      gameplay/src/Transform.h
  22. 5 5
      gameplay/src/lua/lua_AbsoluteLayout.cpp
  23. 18 18
      gameplay/src/lua/lua_Animation.cpp
  24. 64 26
      gameplay/src/lua/lua_AnimationClip.cpp
  25. 3 2
      gameplay/src/lua/lua_AnimationClipListener.cpp
  26. 1 1
      gameplay/src/lua/lua_AnimationController.cpp
  27. 13 13
      gameplay/src/lua/lua_AnimationTarget.cpp
  28. 4 4
      gameplay/src/lua/lua_AnimationValue.cpp
  29. 4 4
      gameplay/src/lua/lua_AudioBuffer.cpp
  30. 1 1
      gameplay/src/lua/lua_AudioController.cpp
  31. 12 11
      gameplay/src/lua/lua_AudioListener.cpp
  32. 21 20
      gameplay/src/lua/lua_AudioSource.cpp
  33. 12 12
      gameplay/src/lua/lua_BoundingBox.cpp
  34. 9 9
      gameplay/src/lua/lua_BoundingSphere.cpp
  35. 13 13
      gameplay/src/lua/lua_Bundle.cpp
  36. 120 104
      gameplay/src/lua/lua_Button.cpp
  37. 31 30
      gameplay/src/lua/lua_Camera.cpp
  38. 125 109
      gameplay/src/lua/lua_CheckBox.cpp
  39. 125 109
      gameplay/src/lua/lua_Container.cpp
  40. 118 102
      gameplay/src/lua/lua_Control.cpp
  41. 3 2
      gameplay/src/lua/lua_ControlListener.cpp
  42. 14 14
      gameplay/src/lua/lua_Curve.cpp
  43. 8 8
      gameplay/src/lua/lua_DepthStencilTarget.cpp
  44. 15 15
      gameplay/src/lua/lua_Effect.cpp
  45. 7 7
      gameplay/src/lua/lua_FileSystem.cpp
  46. 5 5
      gameplay/src/lua/lua_FlowLayout.cpp
  47. 37 37
      gameplay/src/lua/lua_Font.cpp
  48. 1 1
      gameplay/src/lua/lua_FontGlyph.cpp
  49. 3 3
      gameplay/src/lua/lua_FontText.cpp
  50. 125 109
      gameplay/src/lua/lua_Form.cpp
  51. 16 16
      gameplay/src/lua/lua_FrameBuffer.cpp
  52. 12 12
      gameplay/src/lua/lua_Frustum.cpp
  53. 75 31
      gameplay/src/lua/lua_Game.cpp
  54. 1 0
      gameplay/src/lua/lua_Game.h
  55. 10 10
      gameplay/src/lua/lua_Gamepad.cpp
  56. 6 1
      gameplay/src/lua/lua_Global.cpp
  57. 8 8
      gameplay/src/lua/lua_Image.cpp
  58. 144 106
      gameplay/src/lua/lua_Joint.cpp
  59. 124 108
      gameplay/src/lua/lua_Joystick.cpp
  60. 1 1
      gameplay/src/lua/lua_Keyboard.cpp
  61. 121 105
      gameplay/src/lua/lua_Label.cpp
  62. 5 5
      gameplay/src/lua/lua_Layout.cpp
  63. 20 20
      gameplay/src/lua/lua_Light.cpp
  64. 16 16
      gameplay/src/lua/lua_Material.cpp
  65. 21 21
      gameplay/src/lua/lua_MaterialParameter.cpp
  66. 1 1
      gameplay/src/lua/lua_MathUtil.cpp
  67. 69 69
      gameplay/src/lua/lua_Matrix.cpp
  68. 28 28
      gameplay/src/lua/lua_Mesh.cpp
  69. 10 10
      gameplay/src/lua/lua_MeshBatch.cpp
  70. 7 7
      gameplay/src/lua/lua_MeshPart.cpp
  71. 12 11
      gameplay/src/lua/lua_MeshSkin.cpp
  72. 18 18
      gameplay/src/lua/lua_Model.cpp
  73. 1 1
      gameplay/src/lua/lua_Mouse.cpp
  74. 144 106
      gameplay/src/lua/lua_Node.cpp
  75. 6 5
      gameplay/src/lua/lua_NodeCloneContext.cpp
  76. 63 63
      gameplay/src/lua/lua_ParticleEmitter.cpp
  77. 14 14
      gameplay/src/lua/lua_Pass.cpp
  78. 84 31
      gameplay/src/lua/lua_PhysicsCharacter.cpp
  79. 67 14
      gameplay/src/lua/lua_PhysicsCollisionObject.cpp
  80. 5 4
      gameplay/src/lua/lua_PhysicsCollisionObjectCollisionListener.cpp
  81. 3 2
      gameplay/src/lua/lua_PhysicsCollisionObjectCollisionPair.cpp
  82. 16 16
      gameplay/src/lua/lua_PhysicsCollisionShape.cpp
  83. 2 2
      gameplay/src/lua/lua_PhysicsCollisionShapeDefinition.cpp
  84. 7 7
      gameplay/src/lua/lua_PhysicsConstraint.cpp
  85. 52 29
      gameplay/src/lua/lua_PhysicsController.cpp
  86. 4 3
      gameplay/src/lua/lua_PhysicsControllerHitFilter.cpp
  87. 2 1
      gameplay/src/lua/lua_PhysicsControllerHitResult.cpp
  88. 2 1
      gameplay/src/lua/lua_PhysicsControllerListener.cpp
  89. 15 15
      gameplay/src/lua/lua_PhysicsFixedConstraint.cpp
  90. 19 19
      gameplay/src/lua/lua_PhysicsGenericConstraint.cpp
  91. 67 14
      gameplay/src/lua/lua_PhysicsGhostObject.cpp
  92. 9 9
      gameplay/src/lua/lua_PhysicsHingeConstraint.cpp
  93. 91 38
      gameplay/src/lua/lua_PhysicsRigidBody.cpp
  94. 9 8
      gameplay/src/lua/lua_PhysicsRigidBodyParameters.cpp
  95. 7 7
      gameplay/src/lua/lua_PhysicsSocketConstraint.cpp
  96. 31 31
      gameplay/src/lua/lua_PhysicsSpringConstraint.cpp
  97. 14 14
      gameplay/src/lua/lua_Plane.cpp
  98. 12 12
      gameplay/src/lua/lua_Platform.cpp
  99. 27 27
      gameplay/src/lua/lua_Properties.cpp
  100. 24 24
      gameplay/src/lua/lua_Quaternion.cpp

+ 19 - 7
gameplay-luagen/TODO.txt

@@ -4,24 +4,36 @@ Unsupported:
 - templates
 - templates
 - variable arguments
 - variable arguments
 - Lua doesn't support as many types as C++ so if there are functions that overload on parameters with types that overlap in Lua, the overloading won't work properly (i.e. char, short, int, long, float, double and all corresponding unsigned variants overlap in Lua).
 - Lua doesn't support as many types as C++ so if there are functions that overload on parameters with types that overlap in Lua, the overloading won't work properly (i.e. char, short, int, long, float, double and all corresponding unsigned variants overlap in Lua).
+- There is no reasonable way to unload a Lua script (one would have to parse the script completely to find all global function and variable names and then set those global table entries to nil and invoke the garbage collector).
+    - The recommended usage pattern is to put each script's variables and functions inside a table (see Lua technical note 7). i.e.
+
+    -- If you only want to load the module at most once, add a line like this.
+    if Module then return end
+    
+    -- Declare the module Module.
+    Module = {}
+    
+    -- Declare a variable within the module.
+    Module.a = 47
+    
+    -- Declare a function within the module.
+    function Module.myFunc()
+       return Module.a + 17
+    end
+- Note: you can't pass an enum to a function that doesn't explicitly take an enum (i.e. Control::setTextColor, which takes an unsigned char). In these cases, you need to go look up the enum values and pass them directly.
 
 
 
 
 Normal Priority List:
 Normal Priority List:
 =====================
 =====================
-- Add support for listener callbacks.
+- Fix Doxygen warnings.
 - Fix memory leaks in gameplay-luagen and in generated code.
 - Fix memory leaks in gameplay-luagen and in generated code.
     - Add "@script{create}" to the appropriate gameplay functions.
     - Add "@script{create}" to the appropriate gameplay functions.
     - Add "@script{own}" to array parameters that are owned by the function or class they are passed to?
     - Add "@script{own}" to array parameters that are owned by the function or class they are passed to?
-- Figure out a way to determine the proper needed include files (generate Doxygen XML for cpp files?); along with this do the following:
-    - Reduce compilation dependencies (remove Global.h from all lua_XXX.cpp files)
-    - Separate the enums into separate files and have generated files include the enum files they need.
+- Add a global function that implements casting for use from Lua scripts (i.e. to downcast from a Control to a Button).
 
 
 Future Feature List:
 Future Feature List:
 ====================
 ====================
 - Add support for users to generate bindings for their own classes.
 - Add support for users to generate bindings for their own classes.
-- Add support for std::vector.
-- Separate threads?
-
 
 
 Lua Tips
 Lua Tips
 ========
 ========

+ 2 - 2
gameplay-luagen/src/ClassBinding.cpp

@@ -147,9 +147,9 @@ void ClassBinding::write(string dir, const set<string>& includes, string* bindin
         if (includes.find(include) == includes.end())
         if (includes.find(include) == includes.end())
             o << "#include \"" << include << "\"\n";
             o << "#include \"" << include << "\"\n";
 
 
-        for (set<string>::iterator iter = includes.begin(); iter != includes.end(); iter++)
+        for (set<string>::iterator includeIter = includes.begin(); includeIter != includes.end(); includeIter++)
         {
         {
-            o << "#include \"" << *iter << "\"\n";
+            o << "#include \"" << *includeIter << "\"\n";
         }
         }
         o << "\n";
         o << "\n";
         
         

+ 39 - 10
gameplay-luagen/src/FunctionBinding.cpp

@@ -50,7 +50,13 @@ string FunctionBinding::getFunctionName() const
         else if (returnParam.type == Param::TYPE_DESTRUCTOR)
         else if (returnParam.type == Param::TYPE_DESTRUCTOR)
             functionName += "_gc";
             functionName += "_gc";
         else
         else
-            functionName += name;
+        {
+            size_t i = name.rfind("::");
+            if (i != name.npos)
+                functionName += name.substr(i + 2);
+            else
+                functionName += name;
+        }
     }
     }
 
 
     return functionName;
     return functionName;
@@ -368,7 +374,8 @@ void FunctionBinding::write(ostream& o, const vector<FunctionBinding>& bindings)
                 indent(o, 3);
                 indent(o, 3);
                 o << "{\n";
                 o << "{\n";
                 indent(o, 4);
                 indent(o, 4);
-                o << "lua_pushstring(state, \"Failed to match the given parameters to a valid function signature.\");\n";
+                o << "lua_pushstring(state, \"" << bindings[0].getFunctionName();
+                o << " - Failed to match the given parameters to a valid function signature.\");\n";
                 indent(o, 4);
                 indent(o, 4);
                 o << "lua_error(state);\n";
                 o << "lua_error(state);\n";
                 indent(o, 3);
                 indent(o, 3);
@@ -404,19 +411,41 @@ void FunctionBinding::write(ostream& o, const vector<FunctionBinding>& bindings)
 
 
 bool FunctionBinding::signaturesMatch(const FunctionBinding& b1, const FunctionBinding& b2)
 bool FunctionBinding::signaturesMatch(const FunctionBinding& b1, const FunctionBinding& b2)
 {
 {
-    if (b1.name == b2.name &&
-        b1.type == b2.type)
+    if (b1.type == b2.type)
     {
     {
-        if (b1.paramTypes.size() != b2.paramTypes.size())
-            return false;
+        bool namesMatch = b1.name == b2.name;
 
 
-        for (unsigned int i = 0, count = b1.paramTypes.size(); i < count; i++)
+        // Ignore class qualifiers on member function bindings (to support inherited overloaded bindings).
+        if (b1.type == FunctionBinding::MEMBER_CONSTANT ||
+            b1.type == FunctionBinding::MEMBER_FUNCTION ||
+            b1.type == FunctionBinding::MEMBER_VARIABLE)
         {
         {
-            if (b1.paramTypes[i] != b2.paramTypes[i])
-                return false;
+            string b1name = b1.name;
+            string b2name = b2.name;
+            size_t i = b1name.rfind("::");
+            if (i != b1name.npos)
+                b1name = b1name.substr(i + 2);
+            i = b2name.rfind("::");
+            if (i != b2name.npos)
+                b2name = b2name.substr(i + 2);
+    
+            namesMatch = b1name == b2name;
         }
         }
 
 
-        return true;
+        // Check the binding's name, parameter types and return value type.
+        if (namesMatch)
+        {
+            if (b1.paramTypes.size() != b2.paramTypes.size())
+                return false;
+
+            for (unsigned int i = 0, count = b1.paramTypes.size(); i < count; i++)
+            {
+                if (b1.paramTypes[i] != b2.paramTypes[i])
+                    return false;
+            }
+
+            return true;
+        }
     }
     }
     return false;
     return false;
 }
 }

+ 9 - 1
gameplay-luagen/src/Generator.cpp

@@ -1113,6 +1113,8 @@ void Generator::resolveMembers(const ClassBinding& c)
                 bool addBinding;
                 bool addBinding;
                 for (unsigned int i = 0, iCount = iter->second.size(); i < iCount; i++)
                 for (unsigned int i = 0, iCount = iter->second.size(); i < iCount; i++)
                 {
                 {
+                    string name = iter->second[i].name;
+
                     addBinding = true;
                     addBinding = true;
                     if (findIter != cb->bindings.end())
                     if (findIter != cb->bindings.end())
                     {
                     {
@@ -1124,6 +1126,11 @@ void Generator::resolveMembers(const ClassBinding& c)
                                 break;
                                 break;
                             }
                             }
                         }
                         }
+
+                        // To call the base function, we have to qualify the call since
+                        // the derived class has a function with the same name and different parameters.
+                        if (addBinding)
+                            name = iter->second[i].classname + string("::") + iter->second[i].name;
                     }
                     }
                     if (hiddenIter != cb->hidden.end())
                     if (hiddenIter != cb->hidden.end())
                     {
                     {
@@ -1140,7 +1147,8 @@ void Generator::resolveMembers(const ClassBinding& c)
                     if (addBinding)
                     if (addBinding)
                     {
                     {
                         FunctionBinding b = iter->second[i];
                         FunctionBinding b = iter->second[i];
-                        b.name = iter->second[i].classname + string("::") + iter->second[i].name;
+                        b.name = name;
+                        b.functionName = findIter->first;
                         b.classname = cb->classname;
                         b.classname = cb->classname;
                         b.uniquename = getUniqueName(cb->classname);
                         b.uniquename = getUniqueName(cb->classname);
 
 

+ 2 - 0
gameplay/gameplay.vcxproj

@@ -243,6 +243,7 @@
     <ClCompile Include="src\SceneLoader.cpp" />
     <ClCompile Include="src\SceneLoader.cpp" />
     <ClCompile Include="src\ScreenDisplayer.cpp" />
     <ClCompile Include="src\ScreenDisplayer.cpp" />
     <ClCompile Include="src\ScriptController.cpp" />
     <ClCompile Include="src\ScriptController.cpp" />
+    <ClCompile Include="src\ScriptListener.cpp" />
     <ClCompile Include="src\Slider.cpp" />
     <ClCompile Include="src\Slider.cpp" />
     <ClCompile Include="src\SpriteBatch.cpp" />
     <ClCompile Include="src\SpriteBatch.cpp" />
     <ClCompile Include="src\Technique.cpp" />
     <ClCompile Include="src\Technique.cpp" />
@@ -487,6 +488,7 @@
     <ClInclude Include="src\SceneLoader.h" />
     <ClInclude Include="src\SceneLoader.h" />
     <ClInclude Include="src\ScreenDisplayer.h" />
     <ClInclude Include="src\ScreenDisplayer.h" />
     <ClInclude Include="src\ScriptController.h" />
     <ClInclude Include="src\ScriptController.h" />
+    <ClInclude Include="src\ScriptListener.h" />
     <ClInclude Include="src\Slider.h" />
     <ClInclude Include="src\Slider.h" />
     <ClInclude Include="src\SpriteBatch.h" />
     <ClInclude Include="src\SpriteBatch.h" />
     <ClInclude Include="src\Technique.h" />
     <ClInclude Include="src\Technique.h" />

+ 6 - 0
gameplay/gameplay.vcxproj.filters

@@ -741,6 +741,9 @@
     <ClCompile Include="src\lua\lua_VertexFormatUsage.cpp">
     <ClCompile Include="src\lua\lua_VertexFormatUsage.cpp">
       <Filter>lua</Filter>
       <Filter>lua</Filter>
     </ClCompile>
     </ClCompile>
+    <ClCompile Include="src\ScriptListener.cpp">
+      <Filter>src</Filter>
+    </ClCompile>
   </ItemGroup>
   </ItemGroup>
   <ItemGroup>
   <ItemGroup>
     <ClInclude Include="src\Animation.h">
     <ClInclude Include="src\Animation.h">
@@ -1475,6 +1478,9 @@
     <ClInclude Include="src\lua\lua_VertexFormatUsage.h">
     <ClInclude Include="src\lua\lua_VertexFormatUsage.h">
       <Filter>lua</Filter>
       <Filter>lua</Filter>
     </ClInclude>
     </ClInclude>
+    <ClInclude Include="src\ScriptListener.h">
+      <Filter>src</Filter>
+    </ClInclude>
   </ItemGroup>
   </ItemGroup>
   <ItemGroup>
   <ItemGroup>
     <None Include="src\gameplay-main-macosx.mm">
     <None Include="src\gameplay-main-macosx.mm">

+ 41 - 1
gameplay/src/AnimationClip.cpp

@@ -4,6 +4,7 @@
 #include "AnimationTarget.h"
 #include "AnimationTarget.h"
 #include "Game.h"
 #include "Game.h"
 #include "Quaternion.h"
 #include "Quaternion.h"
+#include "ScriptListener.h"
 
 
 namespace gameplay
 namespace gameplay
 {
 {
@@ -12,7 +13,7 @@ AnimationClip::AnimationClip(const char* id, Animation* animation, unsigned long
     : _id(id), _animation(animation), _startTime(startTime), _endTime(endTime), _duration(_endTime - _startTime), 
     : _id(id), _animation(animation), _startTime(startTime), _endTime(endTime), _duration(_endTime - _startTime), 
       _stateBits(0x00), _repeatCount(1.0f), _activeDuration(_duration * _repeatCount), _speed(1.0f), _timeStarted(0), 
       _stateBits(0x00), _repeatCount(1.0f), _activeDuration(_duration * _repeatCount), _speed(1.0f), _timeStarted(0), 
       _elapsedTime(0), _crossFadeToClip(NULL), _crossFadeOutElapsed(0), _crossFadeOutDuration(0), _blendWeight(1.0f), 
       _elapsedTime(0), _crossFadeToClip(NULL), _crossFadeOutElapsed(0), _crossFadeOutDuration(0), _blendWeight(1.0f), 
-      _beginListeners(NULL), _endListeners(NULL), _listeners(NULL), _listenerItr(NULL)
+      _beginListeners(NULL), _endListeners(NULL), _listeners(NULL), _scriptListeners(NULL), _listenerItr(NULL)
 {
 {
     GP_ASSERT(_animation);
     GP_ASSERT(_animation);
     GP_ASSERT(0 <= startTime && startTime <= _animation->_duration && 0 <= endTime && endTime <= _animation->_duration);
     GP_ASSERT(0 <= startTime && startTime <= _animation->_duration && 0 <= endTime && endTime <= _animation->_duration);
@@ -40,6 +41,15 @@ AnimationClip::~AnimationClip()
     SAFE_DELETE(_beginListeners);
     SAFE_DELETE(_beginListeners);
     SAFE_DELETE(_endListeners);
     SAFE_DELETE(_endListeners);
 
 
+    if (_scriptListeners)
+    {
+        for (unsigned int i = 0; i < _scriptListeners->size(); i++)
+        {
+            SAFE_DELETE((*_scriptListeners)[i]);
+        }
+        SAFE_DELETE(_scriptListeners);
+    }
+
     if (_listeners)
     if (_listeners)
     {
     {
         *_listenerItr = _listeners->begin();
         *_listenerItr = _listeners->begin();
@@ -313,6 +323,36 @@ void AnimationClip::addEndListener(AnimationClip::Listener* listener)
     _endListeners->push_back(listener);
     _endListeners->push_back(listener);
 }
 }
 
 
+void AnimationClip::addBeginListener(const char* function)
+{
+    if (!_scriptListeners)
+        _scriptListeners = new std::vector<ScriptListener*>;
+
+    ScriptListener* listener = new ScriptListener(function);
+    _scriptListeners->push_back(listener);
+    addBeginListener(listener);
+}
+
+void AnimationClip::addEndListener(const char* function)
+{
+    if (!_scriptListeners)
+        _scriptListeners = new std::vector<ScriptListener*>;
+
+    ScriptListener* listener = new ScriptListener(function);
+    _scriptListeners->push_back(listener);
+    addEndListener(listener);
+}
+
+void AnimationClip::addListener(const char* function, unsigned long eventTime)
+{
+    if (!_scriptListeners)
+        _scriptListeners = new std::vector<ScriptListener*>;
+
+    ScriptListener* listener = new ScriptListener(function);
+    _scriptListeners->push_back(listener);
+    addListener(listener, eventTime);
+}
+
 bool AnimationClip::update(float elapsedTime)
 bool AnimationClip::update(float elapsedTime)
 {
 {
     if (isClipStateBitSet(CLIP_IS_PAUSED_BIT))
     if (isClipStateBitSet(CLIP_IS_PAUSED_BIT))

+ 33 - 0
gameplay/src/AnimationClip.h

@@ -11,6 +11,7 @@ namespace gameplay
 
 
 class Animation;
 class Animation;
 class AnimationValue;
 class AnimationValue;
+class ScriptListener;
 
 
 /**
 /**
  * Defines the runtime session of an Animation to be played.
  * Defines the runtime session of an Animation to be played.
@@ -227,6 +228,37 @@ public:
      */
      */
     void addListener(AnimationClip::Listener* listener, unsigned long eventTime);
     void addListener(AnimationClip::Listener* listener, unsigned long eventTime);
 
 
+    /**
+     * Adds an animation begin listener.
+     * 
+     * Note: the given Lua function must have the same function signature as AnimationClip#Listener#animationEvent.
+     *
+     * @param function The Lua script function to be called when an AnimationClip begins.
+     */
+    void addBeginListener(const char* function);
+
+    /**
+     * Adds an animation end listener.
+     * 
+     * Note: the given Lua function must have the same function signature as AnimationClip#Listener#animationEvent.
+     *
+     * @param function The Lua script function to be called when an AnimationClip ends.
+     */
+    void addEndListener(const char* function);
+
+    /**
+     * Adds an animation listener to be called back at the specified eventTime during the playback 
+     * of the AnimationClip.
+     * 
+     * Note: the given Lua function must have the same function signature as AnimationClip#Listener#animationEvent.
+     * 
+     * @param function The Lua script function to be called when an AnimationClip reaches the 
+     *      specified time in its playback.
+     * @param eventTime The time the listener will be called during the playback of the AnimationClip. 
+     *      Must be between 0 and the duration of the AnimationClip.
+     */
+    void addListener(const char* function, unsigned long eventTime);
+
 private:
 private:
     
     
     static const unsigned char CLIP_IS_PLAYING_BIT = 0x01;             // Bit representing whether AnimationClip is a running clip in AnimationController
     static const unsigned char CLIP_IS_PLAYING_BIT = 0x01;             // Bit representing whether AnimationClip is a running clip in AnimationController
@@ -349,6 +381,7 @@ private:
     std::vector<Listener*>* _endListeners;              // Collection of end listeners on the clip.
     std::vector<Listener*>* _endListeners;              // Collection of end listeners on the clip.
     std::list<ListenerEvent*>* _listeners;              // Ordered collection of listeners on the clip.
     std::list<ListenerEvent*>* _listeners;              // Ordered collection of listeners on the clip.
     std::list<ListenerEvent*>::iterator* _listenerItr;  // Iterator that points to the next listener event to be triggered.
     std::list<ListenerEvent*>::iterator* _listenerItr;  // Iterator that points to the next listener event to be triggered.
+    std::vector<ScriptListener*>* _scriptListeners;     // Collection of listeners that are bound to Lua script functions.
 };
 };
 
 
 }
 }

+ 22 - 2
gameplay/src/Control.cpp

@@ -1,14 +1,15 @@
 #include "Base.h"
 #include "Base.h"
 #include "Game.h"
 #include "Game.h"
 #include "Control.h"
 #include "Control.h"
+#include "ScriptListener.h"
 
 
 namespace gameplay
 namespace gameplay
 {
 {
 
 
 Control::Control()
 Control::Control()
     : _id(""), _state(Control::NORMAL), _bounds(Rectangle::empty()), _clipBounds(Rectangle::empty()), _viewportClipBounds(Rectangle::empty()),
     : _id(""), _state(Control::NORMAL), _bounds(Rectangle::empty()), _clipBounds(Rectangle::empty()), _viewportClipBounds(Rectangle::empty()),
-    _clearBounds(Rectangle::empty()), _dirty(true), _consumeInputEvents(true), _listeners(NULL), _contactIndex(INVALID_CONTACT_INDEX),
-    _styleOverridden(false), _skin(NULL)
+    _clearBounds(Rectangle::empty()), _dirty(true), _consumeInputEvents(true), _listeners(NULL), _scriptListeners(NULL),
+    _contactIndex(INVALID_CONTACT_INDEX), _styleOverridden(false), _skin(NULL)
 {
 {
 }
 }
 
 
@@ -24,6 +25,15 @@ Control::~Control()
         SAFE_DELETE(_listeners);
         SAFE_DELETE(_listeners);
     }
     }
 
 
+    if (_scriptListeners)
+    {
+        for (unsigned int i = 0; i < _scriptListeners->size(); i++)
+        {
+            SAFE_DELETE((*_scriptListeners)[i]);
+        }
+        SAFE_DELETE(_scriptListeners);
+    }
+
     if (_styleOverridden)
     if (_styleOverridden)
     {
     {
         SAFE_DELETE(_style);
         SAFE_DELETE(_style);
@@ -673,6 +683,16 @@ void Control::addListener(Control::Listener* listener, int eventFlags)
     }
     }
 }
 }
 
 
+void Control::addListener(const char* function, int eventFlags)
+{
+    if (!_scriptListeners)
+        _scriptListeners = new std::vector<ScriptListener*>();
+
+    ScriptListener* listener = new ScriptListener(function);
+    _scriptListeners->push_back(listener);
+    addListener(listener, eventFlags);
+}
+
 void Control::addSpecificListener(Control::Listener* listener, Listener::EventType eventType)
 void Control::addSpecificListener(Control::Listener* listener, Listener::EventType eventType)
 {
 {
     GP_ASSERT(listener);
     GP_ASSERT(listener);

+ 21 - 0
gameplay/src/Control.h

@@ -14,6 +14,8 @@
 namespace gameplay
 namespace gameplay
 {
 {
 
 
+class ScriptListener;
+
 /**
 /**
  * Base class for UI controls.
  * Base class for UI controls.
  */
  */
@@ -714,6 +716,20 @@ public:
      */
      */
     virtual void addListener(Control::Listener* listener, int eventFlags);
     virtual void addListener(Control::Listener* listener, int eventFlags);
 
 
+    /**
+     * Add a listener to be notified of specific events affecting
+     * this control.  Event types can be OR'ed together.
+     * E.g. To listen to touch-press and touch-release events,
+     * pass <code>Control::Listener::TOUCH | Control::Listener::RELEASE</code>
+     * as the second parameter.
+     * 
+     * Note: the given Lua function must have the same function signature as Control#Listener#controlEvent.
+     *
+     * @param function The name of the Lua script function to add as a listener callback.
+     * @param eventFlags The events to listen for.
+     */
+    virtual void addListener(const char* function, int eventFlags);
+
     /**
     /**
      * @see AnimationTarget#getAnimationPropertyComponentCount
      * @see AnimationTarget#getAnimationPropertyComponentCount
      */
      */
@@ -958,6 +974,11 @@ protected:
      * Listeners map of EventType's to a list of Listeners.
      * Listeners map of EventType's to a list of Listeners.
      */
      */
     std::map<Listener::EventType, std::list<Listener*>*>* _listeners;
     std::map<Listener::EventType, std::list<Listener*>*>* _listeners;
+
+    /**
+     * Script listener objects.
+     */
+    std::vector<ScriptListener*>* _scriptListeners;
     
     
     /**
     /**
      * The Control's Theme::Style.
      * The Control's Theme::Style.

+ 22 - 1
gameplay/src/Game.cpp

@@ -5,6 +5,7 @@
 #include "FileSystem.h"
 #include "FileSystem.h"
 #include "FrameBuffer.h"
 #include "FrameBuffer.h"
 #include "SceneLoader.h"
 #include "SceneLoader.h"
+#include "ScriptListener.h"
 
 
 GLenum __gl_error_code = GL_NO_ERROR;
 GLenum __gl_error_code = GL_NO_ERROR;
 ALenum __al_error_code = AL_NO_ERROR;
 ALenum __al_error_code = AL_NO_ERROR;
@@ -21,7 +22,8 @@ Game::Game()
       _frameLastFPS(0), _frameCount(0), _frameRate(0), 
       _frameLastFPS(0), _frameCount(0), _frameRate(0), 
       _clearDepth(1.0f), _clearStencil(0), _properties(NULL),
       _clearDepth(1.0f), _clearStencil(0), _properties(NULL),
       _animationController(NULL), _audioController(NULL), 
       _animationController(NULL), _audioController(NULL), 
-      _physicsController(NULL), _audioListener(NULL), _scriptController(NULL)
+      _physicsController(NULL), _audioListener(NULL), _scriptController(NULL),
+      _scriptListeners(NULL)
 {
 {
     GP_ASSERT(__gameInstance == NULL);
     GP_ASSERT(__gameInstance == NULL);
     __gameInstance = this;
     __gameInstance = this;
@@ -30,6 +32,15 @@ Game::Game()
 
 
 Game::~Game()
 Game::~Game()
 {
 {
+    if (_scriptListeners)
+    {
+        for (unsigned int i = 0; i < _scriptListeners->size(); i++)
+        {
+            SAFE_DELETE((*_scriptListeners)[i]);
+        }
+        SAFE_DELETE(_scriptListeners);
+    }
+
     _scriptController->finalize();
     _scriptController->finalize();
     SAFE_DELETE(_scriptController);
     SAFE_DELETE(_scriptController);
 
 
@@ -403,6 +414,16 @@ void Game::schedule(float timeOffset, TimeListener* timeListener, void* cookie)
     _timeEvents->push(timeEvent);
     _timeEvents->push(timeEvent);
 }
 }
 
 
+void Game::schedule(float timeOffset, const char* function)
+{
+    if (!_scriptListeners)
+        _scriptListeners = new std::vector<ScriptListener*>();
+
+    ScriptListener* listener = new ScriptListener(function);
+    _scriptListeners->push_back(listener);
+    schedule(timeOffset, listener, NULL);
+}
+
 void Game::fireTimeEvents(double frameTime)
 void Game::fireTimeEvents(double frameTime)
 {
 {
     while (_timeEvents->size() > 0)
     while (_timeEvents->size() > 0)

+ 14 - 1
gameplay/src/Game.h

@@ -372,6 +372,18 @@ public:
      */
      */
     void schedule(float timeOffset, TimeListener* timeListener, void* cookie = 0);
     void schedule(float timeOffset, TimeListener* timeListener, void* cookie = 0);
 
 
+    /**
+     * Schedules a time event to be sent to the given TimeListener a given number of game milliseconds from now.
+     * Game time stops while the game is paused. A time offset of zero will fire the time event in the next frame.
+     * 
+     * Note: the given Lua function must take a single floating point number, which is the difference between the
+     * current game time and the target time (see @link{TimeListener#timeEvent}).
+     * 
+     * @param timeOffset The number of game milliseconds in the future to schedule the event to be fired.
+     * @param function The Lua script function that will receive the event.
+     */
+    void schedule(float timeOffset, const char* function);
+
 protected:
 protected:
 
 
     /**
     /**
@@ -518,7 +530,8 @@ private:
     ScriptController* _scriptController;        // Controls the scripting engine.
     ScriptController* _scriptController;        // Controls the scripting engine.
     AudioListener* _audioListener;              // The audio listener in 3D space.
     AudioListener* _audioListener;              // The audio listener in 3D space.
     std::vector<Gamepad*> _gamepads;            // The connected gamepads.
     std::vector<Gamepad*> _gamepads;            // The connected gamepads.
-    std::priority_queue<TimeEvent, std::vector<TimeEvent>, std::less<TimeEvent> >* _timeEvents;     // Contains the scheduled time events.
+    std::priority_queue<TimeEvent, std::vector<TimeEvent>, std::less<TimeEvent> >* _timeEvents; // Contains the scheduled time events.
+    std::vector<ScriptListener*>* _scriptListeners; // Lua script listeners.
 
 
     // Note: Do not add STL object member variables on the stack; this will cause false memory leaks to be reported.
     // Note: Do not add STL object member variables on the stack; this will cause false memory leaks to be reported.
 
 

+ 39 - 1
gameplay/src/PhysicsCollisionObject.cpp

@@ -3,6 +3,7 @@
 #include "PhysicsController.h"
 #include "PhysicsController.h"
 #include "Game.h"
 #include "Game.h"
 #include "Node.h"
 #include "Node.h"
+#include "ScriptListener.h"
 
 
 namespace gameplay
 namespace gameplay
 {
 {
@@ -29,7 +30,7 @@ struct CollidesWithCallback : public btCollisionWorld::ContactResultCallback
 };
 };
 
 
 PhysicsCollisionObject::PhysicsCollisionObject(Node* node)
 PhysicsCollisionObject::PhysicsCollisionObject(Node* node)
-    : _node(node), _motionState(NULL), _collisionShape(NULL), _enabled(true)
+    : _node(node), _motionState(NULL), _collisionShape(NULL), _enabled(true), _scriptListeners(NULL)
 {
 {
 }
 }
 
 
@@ -37,6 +38,15 @@ PhysicsCollisionObject::~PhysicsCollisionObject()
 {
 {
     SAFE_DELETE(_motionState);
     SAFE_DELETE(_motionState);
 
 
+    if (_scriptListeners)
+    {
+        for (unsigned int i = 0; i < _scriptListeners->size(); i++)
+        {
+            SAFE_DELETE((*_scriptListeners)[i]);
+        }
+        SAFE_DELETE(_scriptListeners);
+    }
+
     GP_ASSERT(Game::getInstance()->getPhysicsController());
     GP_ASSERT(Game::getInstance()->getPhysicsController());
     Game::getInstance()->getPhysicsController()->destroyShape(_collisionShape);
     Game::getInstance()->getPhysicsController()->destroyShape(_collisionShape);
 }
 }
@@ -113,6 +123,34 @@ void PhysicsCollisionObject::removeCollisionListener(CollisionListener* listener
     Game::getInstance()->getPhysicsController()->removeCollisionListener(listener, this, object);
     Game::getInstance()->getPhysicsController()->removeCollisionListener(listener, this, object);
 }
 }
 
 
+void PhysicsCollisionObject::addCollisionListener(const char* function, PhysicsCollisionObject* object)
+{
+    if (!_scriptListeners)
+        _scriptListeners = new std::vector<ScriptListener*>();
+
+    ScriptListener* listener = new ScriptListener(function);
+    _scriptListeners->push_back(listener);
+    addCollisionListener(listener, object);
+}
+
+void PhysicsCollisionObject::removeCollisionListener(const char* function, PhysicsCollisionObject* object)
+{
+    if (!_scriptListeners)
+        return;
+
+    std::string functionStr = function;
+    for (unsigned int i = 0; i < _scriptListeners->size(); i++)
+    {
+        if ((*_scriptListeners)[i]->_function == functionStr)
+        {
+            removeCollisionListener((*_scriptListeners)[i], object);
+            SAFE_DELETE((*_scriptListeners)[i]);
+            _scriptListeners->erase(_scriptListeners->begin() + i);
+            return;
+        }
+    }
+}
+
 bool PhysicsCollisionObject::collidesWith(PhysicsCollisionObject* object) const
 bool PhysicsCollisionObject::collidesWith(PhysicsCollisionObject* object) const
 {
 {
     GP_ASSERT(Game::getInstance()->getPhysicsController() && Game::getInstance()->getPhysicsController()->_world);
     GP_ASSERT(Game::getInstance()->getPhysicsController() && Game::getInstance()->getPhysicsController()->_world);

+ 23 - 0
gameplay/src/PhysicsCollisionObject.h

@@ -8,6 +8,7 @@ namespace gameplay
 {
 {
 
 
 class Node;
 class Node;
+class ScriptListener;
 
 
 /**
 /**
  * Base class for all gameplay physics objects that support collision events.
  * Base class for all gameplay physics objects that support collision events.
@@ -198,6 +199,24 @@ public:
      */
      */
     void removeCollisionListener(CollisionListener* listener, PhysicsCollisionObject* object = NULL);
     void removeCollisionListener(CollisionListener* listener, PhysicsCollisionObject* object = NULL);
 
 
+    /**
+     * Adds a collision listener for this collision object.
+     * 
+     * Note: the given Lua function must match the function signature of PhysicsCollisionObject#CollisionListener#collisionEvent.
+     * 
+     * @param function The Lua script function to add as a listener callback.
+     * @param object Optional collision object used to filter the collision event.
+     */
+    void addCollisionListener(const char* function, PhysicsCollisionObject* object = NULL);
+
+    /**
+     * Removes a collision listener.
+     *
+     * @param function The Lua function (used as a listener callback) to remove.
+     * @param object Optional collision object used to filter the collision event.
+     */
+    void removeCollisionListener(const char* function, PhysicsCollisionObject* object = NULL);
+
     /**
     /**
      * Checks if this collision object collides with the given object.
      * Checks if this collision object collides with the given object.
      * 
      * 
@@ -288,6 +307,10 @@ protected:
      */
      */
     bool _enabled;
     bool _enabled;
 
 
+    /**
+     * Lua script collision listeners.
+     */
+    std::vector<ScriptListener*>* _scriptListeners;
 };
 };
 
 
 }
 }

+ 39 - 1
gameplay/src/PhysicsController.cpp

@@ -5,6 +5,7 @@
 #include "Game.h"
 #include "Game.h"
 #include "MeshPart.h"
 #include "MeshPart.h"
 #include "Bundle.h"
 #include "Bundle.h"
+#include "ScriptListener.h"
 
 
 #include "BulletCollision/CollisionShapes/btHeightfieldTerrainShape.h"
 #include "BulletCollision/CollisionShapes/btHeightfieldTerrainShape.h"
 
 
@@ -23,7 +24,7 @@ PhysicsController::PhysicsController()
   : _collisionConfiguration(NULL), _dispatcher(NULL),
   : _collisionConfiguration(NULL), _dispatcher(NULL),
     _overlappingPairCache(NULL), _solver(NULL), _world(NULL), _ghostPairCallback(NULL),
     _overlappingPairCache(NULL), _solver(NULL), _world(NULL), _ghostPairCallback(NULL),
     _debugDrawer(NULL), _status(PhysicsController::Listener::DEACTIVATED), _listeners(NULL),
     _debugDrawer(NULL), _status(PhysicsController::Listener::DEACTIVATED), _listeners(NULL),
-    _gravity(btScalar(0.0), btScalar(-9.8), btScalar(0.0)), _collisionCallback(NULL)
+    _gravity(btScalar(0.0), btScalar(-9.8), btScalar(0.0)), _collisionCallback(NULL), _scriptListeners(NULL)
 {
 {
     // Default gravity is 9.8 along the negative Y axis.
     // Default gravity is 9.8 along the negative Y axis.
     _collisionCallback = new CollisionCallback(this);
     _collisionCallback = new CollisionCallback(this);
@@ -35,6 +36,15 @@ PhysicsController::~PhysicsController()
     SAFE_DELETE(_ghostPairCallback);
     SAFE_DELETE(_ghostPairCallback);
     SAFE_DELETE(_debugDrawer);
     SAFE_DELETE(_debugDrawer);
     SAFE_DELETE(_listeners);
     SAFE_DELETE(_listeners);
+
+    if (_scriptListeners)
+    {
+        for (unsigned int i = 0; i < _scriptListeners->size(); i++)
+        {
+            SAFE_DELETE((*_scriptListeners)[i]);
+        }
+        SAFE_DELETE(_scriptListeners);
+    }
 }
 }
 
 
 void PhysicsController::addStatusListener(Listener* listener)
 void PhysicsController::addStatusListener(Listener* listener)
@@ -62,6 +72,34 @@ void PhysicsController::removeStatusListener(Listener* listener)
     }
     }
 }
 }
 
 
+void PhysicsController::addStatusListener(const char* function)
+{
+    if (!_scriptListeners)
+        _scriptListeners = new std::vector<ScriptListener*>();
+
+    ScriptListener* listener = new ScriptListener(function);
+    _scriptListeners->push_back(listener);
+    addStatusListener(listener);
+}
+
+void PhysicsController::removeStatusListener(const char* function)
+{
+    if (!_scriptListeners)
+        return;
+
+    std::string functionStr = function;
+    for (unsigned int i = 0; i < _scriptListeners->size(); i++)
+    {
+        if ((*_scriptListeners)[i]->_function == functionStr)
+        {
+            removeStatusListener((*_scriptListeners)[i]);
+            SAFE_DELETE((*_scriptListeners)[i]);
+            _scriptListeners->erase(_scriptListeners->begin() + i);
+            return;
+        }
+    }
+}
+
 PhysicsFixedConstraint* PhysicsController::createFixedConstraint(PhysicsRigidBody* a, PhysicsRigidBody* b)
 PhysicsFixedConstraint* PhysicsController::createFixedConstraint(PhysicsRigidBody* a, PhysicsRigidBody* b)
 {
 {
     checkConstraintRigidBodies(a, b);
     checkConstraintRigidBodies(a, b);

+ 19 - 1
gameplay/src/PhysicsController.h

@@ -13,6 +13,8 @@
 namespace gameplay
 namespace gameplay
 {
 {
 
 
+class ScriptListener;
+
 /**
 /**
  * Defines a class for controlling game physics.
  * Defines a class for controlling game physics.
  */
  */
@@ -151,6 +153,22 @@ public:
      */
      */
     void removeStatusListener(Listener* listener);
     void removeStatusListener(Listener* listener);
 
 
+    /**
+     * Adds a listener to the physics controller.
+     * 
+     * Note: the given Lua function must have the same function signature as PhysicsController#Listener#statusEvent.
+     * 
+     * @param function The Lua script function to use as the listener callback.
+     */
+    void addStatusListener(const char* function);
+
+    /**
+     * Removes a listener to the physics controller.
+     * 
+     * @param function The Lua script function (used as a listener callback) to remove.
+     */
+    void removeStatusListener(const char* function);
+
     /**
     /**
      * Creates a fixed constraint.
      * Creates a fixed constraint.
      * 
      * 
@@ -540,7 +558,7 @@ private:
     Vector3 _gravity;
     Vector3 _gravity;
     std::map<PhysicsCollisionObject::CollisionPair, CollisionInfo> _collisionStatus;
     std::map<PhysicsCollisionObject::CollisionPair, CollisionInfo> _collisionStatus;
     CollisionCallback* _collisionCallback;
     CollisionCallback* _collisionCallback;
-
+    std::vector<ScriptListener*>* _scriptListeners;
 };
 };
 
 
 }
 }

+ 3 - 5
gameplay/src/ScriptController.h

@@ -47,10 +47,9 @@ public:
      *      - 'uh' - unsigned short
      *      - 'uh' - unsigned short
      *      - 's' - string
      *      - 's' - string
      *      - 'p' - pointer
      *      - 'p' - pointer
-     *      - '<object-type>' - a pointer to an object of the given type (where the qualified type name is enclosed by angle brackets).
+     *      - '<object-type>' - a <b>pointer</b> to an object of the given type (where the qualified type name is enclosed by angle brackets).
      *      - '[enum-type]' - an enumerated value of the given type (where the qualified type name is enclosed by square brackets).
      *      - '[enum-type]' - an enumerated value of the given type (where the qualified type name is enclosed by square brackets).
      * @return The return value of the executed Lua function.
      * @return The return value of the executed Lua function.
-     * @script{ignore}
      */
      */
     template<typename T> T executeFunction(const char* func, const char* args, ...);
     template<typename T> T executeFunction(const char* func, const char* args, ...);
 
 
@@ -98,10 +97,9 @@ public:
      *      - 'uh' - unsigned short
      *      - 'uh' - unsigned short
      *      - 's' - string
      *      - 's' - string
      *      - 'p' - pointer
      *      - 'p' - pointer
-     *      - '<object-type>' - a pointer to an object of the given type (where the qualified type name is enclosed by angle brackets).
+     *      - '<object-type>' - a <b>pointer</b> to an object of the given type (where the qualified type name is enclosed by angle brackets).
      *      - '[enum-type]' - an enumerated value of the given type (where the qualified type name is enclosed by square brackets).
      *      - '[enum-type]' - an enumerated value of the given type (where the qualified type name is enclosed by square brackets).
      * @return The return value of the executed Lua function.
      * @return The return value of the executed Lua function.
-     * @script{ignore}
      */
      */
     template<typename T> T* executeFunction(const Type& type, const char* func, const char* args, ...);
     template<typename T> T* executeFunction(const Type& type, const char* func, const char* args, ...);
 
 
@@ -669,7 +667,7 @@ private:
      *      - 'uh' - unsigned short
      *      - 'uh' - unsigned short
      *      - 's' - string
      *      - 's' - string
      *      - 'p' - pointer
      *      - 'p' - pointer
-     *      - '<object-type>' - a pointer to an object of the given type (where the qualified type name is enclosed by angle brackets).
+     *      - '<object-type>' - a <b>pointer</b> to an object of the given type (where the qualified type name is enclosed by angle brackets).
      *      - '[enum-type]' - an enumerated value of the given type (where the qualified type name is enclosed by square brackets).
      *      - '[enum-type]' - an enumerated value of the given type (where the qualified type name is enclosed by square brackets).
      * @param list The variable argument list.
      * @param list The variable argument list.
      */
      */

+ 56 - 0
gameplay/src/ScriptListener.cpp

@@ -0,0 +1,56 @@
+#include "Base.h"
+#include "ScriptController.h"
+#include "ScriptListener.h"
+
+namespace gameplay
+{
+
+static const char* SL_ANIMATION_ARGS = "<AnimationClip>[AnimationClip::Listener::EventType]";
+static const char* SL_PHYSICS_COLLISION_ARGS = "[PhysicsCollisionObject::CollisionListener::EventType]<PhysicsCollisionObject::CollisionPair><Vector3><Vector3>";
+static const char* SL_TRANSFORM_ARGS = "<Transform>l";
+static const char* SL_PHYSICS_STATUS_ARGS = "[PhysicsController::Listener::EventType]";
+static const char* SL_CONTROL_ARGS = "<Control>[Control::Listener::EventType]";
+static const char* SL_TIME_ARGS = "l";
+
+void ScriptListener::animationEvent(AnimationClip* clip, AnimationClip::Listener::EventType type)
+{
+    _sc->executeFunction<void>(_function.c_str(), SL_ANIMATION_ARGS, clip, type);
+}
+
+void ScriptListener::collisionEvent(PhysicsCollisionObject::CollisionListener::EventType type,
+    const PhysicsCollisionObject::CollisionPair& collisionPair, const Vector3& contactPointA, const Vector3& contactPointB)
+{
+    _sc->executeFunction<void>(_function.c_str(), SL_PHYSICS_COLLISION_ARGS, type, &collisionPair, &contactPointA, &contactPointB);
+}
+
+void ScriptListener::transformChanged(Transform* transform, long cookie)
+{
+    _sc->executeFunction<void>(_function.c_str(), SL_TRANSFORM_ARGS, transform, cookie);
+}
+
+void ScriptListener::statusEvent(PhysicsController::Listener::EventType type)
+{
+    _sc->executeFunction<void>(_function.c_str(), SL_PHYSICS_STATUS_ARGS, type);
+}
+
+void ScriptListener::controlEvent(Control* control, Control::Listener::EventType evt)
+{
+    _sc->executeFunction<void>(_function.c_str(), SL_CONTROL_ARGS, control, evt);
+}
+
+void ScriptListener::timeEvent(long timeDiff, void* cookie)
+{
+    _sc->executeFunction<void>(_function.c_str(), SL_TIME_ARGS, timeDiff);
+}
+
+ScriptListener::ScriptListener(const char* function)
+{
+    _function = function ? function : "";
+    _sc = ScriptController::getInstance();
+
+    GP_ASSERT(_function.size() > 0);
+    GP_ASSERT(_sc);
+}
+
+
+}

+ 66 - 0
gameplay/src/ScriptListener.h

@@ -0,0 +1,66 @@
+#ifndef SCRIPTLISTENER_H_
+#define SCRIPTLISTENER_H_
+
+#include "AnimationClip.h"
+#include "Control.h"
+#include "PhysicsCollisionObject.h"
+#include "PhysicsController.h"
+#include "Transform.h"
+#include "TimeListener.h"
+
+namespace gameplay
+{
+
+/**
+ * Used to bind Lua script functions as listeners
+ * for any listener interface within gameplay.
+ * 
+ * @script{ignore}
+ */
+class ScriptListener : public AnimationClip::Listener, public PhysicsCollisionObject::CollisionListener,
+    public Transform::Listener, public PhysicsController::Listener, public Control::Listener, public TimeListener
+{
+    friend class AnimationClip;
+    friend class Control;
+    friend class Game;
+    friend class PhysicsCollisionObject;
+    friend class PhysicsController;
+    friend class Transform;
+
+public:
+    /** @see AnimationClip#Listener */
+    void animationEvent(AnimationClip* clip, AnimationClip::Listener::EventType type);
+        
+    /** @see PhysicsCollisionObject::CollisionListener */
+    void collisionEvent(PhysicsCollisionObject::CollisionListener::EventType type,
+                                const PhysicsCollisionObject::CollisionPair& collisionPair,
+                                const Vector3& contactPointA = Vector3::zero(),
+                                const Vector3& contactPointB = Vector3::zero());
+
+    /** @see Transform::Listener */
+    void transformChanged(Transform* transform, long cookie);
+
+    /** @see PhysicsController::Listener */
+    void statusEvent(PhysicsController::Listener::EventType type);
+
+    /** @see Control::Listener */
+    void controlEvent(Control* control, Control::Listener::EventType evt);
+
+    /** @see TimeListener */
+    void timeEvent(long timeDiff, void* cookie);
+
+private:
+    /**
+     * Constructor.
+     */
+    ScriptListener(const char* function);
+
+    /** Holds the name of the Lua function to be called back. */
+    std::string _function;
+    /** Holds the global script controller. */
+    ScriptController* _sc;
+};
+
+}
+
+#endif

+ 41 - 4
gameplay/src/Transform.cpp

@@ -2,6 +2,7 @@
 #include "Transform.h"
 #include "Transform.h"
 #include "Game.h"
 #include "Game.h"
 #include "Node.h"
 #include "Node.h"
+#include "ScriptListener.h"
 
 
 namespace gameplay
 namespace gameplay
 {
 {
@@ -10,28 +11,28 @@ int Transform::_suspendTransformChanged(0);
 std::vector<Transform*> Transform::_transformsChanged;
 std::vector<Transform*> Transform::_transformsChanged;
 
 
 Transform::Transform()
 Transform::Transform()
-    : _matrixDirtyBits(0), _listeners(NULL)
+    : _matrixDirtyBits(0), _listeners(NULL), _scriptListeners(NULL)
 {
 {
     _targetType = AnimationTarget::TRANSFORM;
     _targetType = AnimationTarget::TRANSFORM;
     _scale.set(Vector3::one());
     _scale.set(Vector3::one());
 }
 }
 
 
 Transform::Transform(const Vector3& scale, const Quaternion& rotation, const Vector3& translation)
 Transform::Transform(const Vector3& scale, const Quaternion& rotation, const Vector3& translation)
-    : _matrixDirtyBits(0), _listeners(NULL)
+    : _matrixDirtyBits(0), _listeners(NULL), _scriptListeners(NULL)
 {
 {
     _targetType = AnimationTarget::TRANSFORM;
     _targetType = AnimationTarget::TRANSFORM;
     set(scale, rotation, translation);
     set(scale, rotation, translation);
 }
 }
 
 
 Transform::Transform(const Vector3& scale, const Matrix& rotation, const Vector3& translation)
 Transform::Transform(const Vector3& scale, const Matrix& rotation, const Vector3& translation)
-    : _matrixDirtyBits(0), _listeners(NULL)
+    : _matrixDirtyBits(0), _listeners(NULL), _scriptListeners(NULL)
 {
 {
     _targetType = AnimationTarget::TRANSFORM;
     _targetType = AnimationTarget::TRANSFORM;
     set(scale, rotation, translation);
     set(scale, rotation, translation);
 }
 }
 
 
 Transform::Transform(const Transform& copy)
 Transform::Transform(const Transform& copy)
-    : _matrixDirtyBits(0), _listeners(NULL)
+    : _matrixDirtyBits(0), _listeners(NULL), _scriptListeners(NULL)
 {
 {
     _targetType = AnimationTarget::TRANSFORM;
     _targetType = AnimationTarget::TRANSFORM;
     set(copy);
     set(copy);
@@ -40,6 +41,14 @@ Transform::Transform(const Transform& copy)
 Transform::~Transform()
 Transform::~Transform()
 {
 {
     SAFE_DELETE(_listeners);
     SAFE_DELETE(_listeners);
+    if (_scriptListeners)
+    {
+        for (unsigned int i = 0; i < _scriptListeners->size(); i++)
+        {
+            SAFE_DELETE((*_scriptListeners)[i]);
+        }
+        SAFE_DELETE(_scriptListeners);
+    }
 }
 }
 
 
 void Transform::suspendTransformChanged()
 void Transform::suspendTransformChanged()
@@ -832,6 +841,34 @@ void Transform::removeListener(Transform::Listener* listener)
     }
     }
 }
 }
 
 
+void Transform::addListener(const char* function, long cookie)
+{
+    if (!_scriptListeners)
+        _scriptListeners = new std::vector<ScriptListener*>();
+
+    ScriptListener* listener = new ScriptListener(function);
+    _scriptListeners->push_back(listener);
+    addListener(listener, cookie);
+}
+
+void Transform::removeListener(const char* function)
+{
+    if (!_scriptListeners)
+        return;
+
+    std::string functionStr = function;
+    for (unsigned int i = 0; i < _scriptListeners->size(); i++)
+    {
+        if ((*_scriptListeners)[i]->_function == functionStr)
+        {
+            removeListener((*_scriptListeners)[i]);
+            SAFE_DELETE((*_scriptListeners)[i]);
+            _scriptListeners->erase(_scriptListeners->begin() + i);
+            return;
+        }
+    }
+}
+
 void Transform::transformChanged()
 void Transform::transformChanged()
 {
 {
     if (_listeners)
     if (_listeners)

+ 23 - 0
gameplay/src/Transform.h

@@ -13,6 +13,7 @@ namespace gameplay
 class BoundingBox;
 class BoundingBox;
 class BoundingSphere;
 class BoundingSphere;
 class NodeCloneContext;
 class NodeCloneContext;
+class ScriptListener;
 
 
 /**
 /**
  * Defines a 3-dimensional transformation.
  * Defines a 3-dimensional transformation.
@@ -734,6 +735,23 @@ public:
      * Removes a transform listener.
      * Removes a transform listener.
      */
      */
     void removeListener(Transform::Listener* listener);
     void removeListener(Transform::Listener* listener);
+
+    /**
+     * Adds a transform listener.
+     *
+     * Note: the given Lua function must match the function signature of Transform#Listener#transformChanged.
+     * 
+     * @param function The Lua script function to add as a listener callback.
+     * @param cookie An optional long value that is passed to the specified listener when it is called.
+     */
+    void addListener(const char* function, long cookie = 0);
+
+    /**
+     * Removes a transform listener.
+     * 
+     * @param function The Lua script function (used as a listener callback) to remove.
+     */
+    void removeListener(const char* function);
     
     
     /**
     /**
      * @see AnimationTarget#getAnimationPropertyComponentCount
      * @see AnimationTarget#getAnimationPropertyComponentCount
@@ -842,6 +860,11 @@ protected:
      */
      */
     std::list<TransformListener>* _listeners;
     std::list<TransformListener>* _listeners;
 
 
+    /**
+     * List of Lua script transform listeners.
+     */
+    std::vector<ScriptListener*>* _scriptListeners;
+
 private:
 private:
    
    
     void applyAnimationValueRotation(AnimationValue* value, unsigned int index, float blendWeight);
     void applyAnimationValueRotation(AnimationValue* value, unsigned int index, float blendWeight);

+ 5 - 5
gameplay/src/lua/lua_AbsoluteLayout.cpp

@@ -63,7 +63,7 @@ int lua_AbsoluteLayout__gc(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_AbsoluteLayout__gc - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -97,7 +97,7 @@ int lua_AbsoluteLayout_addRef(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_AbsoluteLayout_addRef - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -134,7 +134,7 @@ int lua_AbsoluteLayout_getRefCount(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_AbsoluteLayout_getRefCount - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -171,7 +171,7 @@ int lua_AbsoluteLayout_getType(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_AbsoluteLayout_getType - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -205,7 +205,7 @@ int lua_AbsoluteLayout_release(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_AbsoluteLayout_release - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;

+ 18 - 18
gameplay/src/lua/lua_Animation.cpp

@@ -73,7 +73,7 @@ int lua_Animation__gc(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Animation__gc - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -107,7 +107,7 @@ int lua_Animation_addRef(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Animation_addRef - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -165,7 +165,7 @@ int lua_Animation_createClip(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Animation_createClip - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -203,7 +203,7 @@ int lua_Animation_createClips(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Animation_createClips - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -249,7 +249,7 @@ int lua_Animation_getClip(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Animation_getClip - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -304,7 +304,7 @@ int lua_Animation_getClip(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Animation_getClip - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -341,7 +341,7 @@ int lua_Animation_getClipCount(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Animation_getClipCount - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -378,7 +378,7 @@ int lua_Animation_getDuration(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Animation_getDuration - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -415,7 +415,7 @@ int lua_Animation_getId(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Animation_getId - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -452,7 +452,7 @@ int lua_Animation_getRefCount(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Animation_getRefCount - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -486,7 +486,7 @@ int lua_Animation_pause(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Animation_pause - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -506,7 +506,7 @@ int lua_Animation_pause(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Animation_pause - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -540,7 +540,7 @@ int lua_Animation_play(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Animation_play - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -560,7 +560,7 @@ int lua_Animation_play(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Animation_play - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -594,7 +594,7 @@ int lua_Animation_release(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Animation_release - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -628,7 +628,7 @@ int lua_Animation_stop(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Animation_stop - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -648,7 +648,7 @@ int lua_Animation_stop(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Animation_stop - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -689,7 +689,7 @@ int lua_Animation_targets(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Animation_targets - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;

+ 64 - 26
gameplay/src/lua/lua_AnimationClip.cpp

@@ -8,6 +8,7 @@
 #include "Game.h"
 #include "Game.h"
 #include "Quaternion.h"
 #include "Quaternion.h"
 #include "Ref.h"
 #include "Ref.h"
+#include "ScriptListener.h"
 #include "lua_AnimationClipListenerEventType.h"
 #include "lua_AnimationClipListenerEventType.h"
 
 
 namespace gameplay
 namespace gameplay
@@ -88,7 +89,7 @@ int lua_AnimationClip__gc(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_AnimationClip__gc - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -124,9 +125,20 @@ int lua_AnimationClip_addBeginListener(lua_State* state)
                 
                 
                 return 0;
                 return 0;
             }
             }
+            else if ((lua_type(state, 1) == LUA_TUSERDATA) &&
+                (lua_type(state, 2) == LUA_TSTRING || lua_type(state, 2) == LUA_TNIL))
+            {
+                // Get parameter 1 off the stack.
+                const char* param1 = ScriptController::getInstance()->getString(2, false);
+
+                AnimationClip* instance = getInstance(state);
+                instance->addBeginListener(param1);
+                
+                return 0;
+            }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_AnimationClip_addBeginListener - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -162,9 +174,20 @@ int lua_AnimationClip_addEndListener(lua_State* state)
                 
                 
                 return 0;
                 return 0;
             }
             }
+            else if ((lua_type(state, 1) == LUA_TUSERDATA) &&
+                (lua_type(state, 2) == LUA_TSTRING || lua_type(state, 2) == LUA_TNIL))
+            {
+                // Get parameter 1 off the stack.
+                const char* param1 = ScriptController::getInstance()->getString(2, false);
+
+                AnimationClip* instance = getInstance(state);
+                instance->addEndListener(param1);
+                
+                return 0;
+            }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_AnimationClip_addEndListener - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -204,9 +227,24 @@ int lua_AnimationClip_addListener(lua_State* state)
                 
                 
                 return 0;
                 return 0;
             }
             }
+            else if ((lua_type(state, 1) == LUA_TUSERDATA) &&
+                (lua_type(state, 2) == LUA_TSTRING || lua_type(state, 2) == LUA_TNIL) &&
+                lua_type(state, 3) == LUA_TNUMBER)
+            {
+                // Get parameter 1 off the stack.
+                const char* param1 = ScriptController::getInstance()->getString(2, false);
+
+                // Get parameter 2 off the stack.
+                unsigned long param2 = (unsigned long)luaL_checkunsigned(state, 3);
+
+                AnimationClip* instance = getInstance(state);
+                instance->addListener(param1, param2);
+                
+                return 0;
+            }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_AnimationClip_addListener - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -240,7 +278,7 @@ int lua_AnimationClip_addRef(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_AnimationClip_addRef - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -282,7 +320,7 @@ int lua_AnimationClip_crossFade(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_AnimationClip_crossFade - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -319,7 +357,7 @@ int lua_AnimationClip_getActiveDuration(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_AnimationClip_getActiveDuration - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -365,7 +403,7 @@ int lua_AnimationClip_getAnimation(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_AnimationClip_getAnimation - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -402,7 +440,7 @@ int lua_AnimationClip_getBlendWeight(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_AnimationClip_getBlendWeight - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -439,7 +477,7 @@ int lua_AnimationClip_getDuration(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_AnimationClip_getDuration - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -476,7 +514,7 @@ int lua_AnimationClip_getElaspedTime(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_AnimationClip_getElaspedTime - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -513,7 +551,7 @@ int lua_AnimationClip_getEndTime(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_AnimationClip_getEndTime - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -550,7 +588,7 @@ int lua_AnimationClip_getId(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_AnimationClip_getId - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -587,7 +625,7 @@ int lua_AnimationClip_getRefCount(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_AnimationClip_getRefCount - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -624,7 +662,7 @@ int lua_AnimationClip_getRepeatCount(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_AnimationClip_getRepeatCount - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -661,7 +699,7 @@ int lua_AnimationClip_getSpeed(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_AnimationClip_getSpeed - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -698,7 +736,7 @@ int lua_AnimationClip_getStartTime(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_AnimationClip_getStartTime - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -735,7 +773,7 @@ int lua_AnimationClip_isPlaying(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_AnimationClip_isPlaying - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -769,7 +807,7 @@ int lua_AnimationClip_pause(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_AnimationClip_pause - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -803,7 +841,7 @@ int lua_AnimationClip_play(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_AnimationClip_play - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -837,7 +875,7 @@ int lua_AnimationClip_release(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_AnimationClip_release - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -875,7 +913,7 @@ int lua_AnimationClip_setActiveDuration(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_AnimationClip_setActiveDuration - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -913,7 +951,7 @@ int lua_AnimationClip_setBlendWeight(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_AnimationClip_setBlendWeight - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -951,7 +989,7 @@ int lua_AnimationClip_setRepeatCount(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_AnimationClip_setRepeatCount - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -989,7 +1027,7 @@ int lua_AnimationClip_setSpeed(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_AnimationClip_setSpeed - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1040,7 +1078,7 @@ int lua_AnimationClip_stop(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_AnimationClip_stop - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;

+ 3 - 2
gameplay/src/lua/lua_AnimationClipListener.cpp

@@ -8,6 +8,7 @@
 #include "Game.h"
 #include "Game.h"
 #include "Quaternion.h"
 #include "Quaternion.h"
 #include "Ref.h"
 #include "Ref.h"
+#include "ScriptListener.h"
 #include "lua_AnimationClipListenerEventType.h"
 #include "lua_AnimationClipListenerEventType.h"
 
 
 namespace gameplay
 namespace gameplay
@@ -61,7 +62,7 @@ int lua_AnimationClipListener__gc(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_AnimationClipListener__gc - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -103,7 +104,7 @@ int lua_AnimationClipListener_animationEvent(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_AnimationClipListener_animationEvent - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;

+ 1 - 1
gameplay/src/lua/lua_AnimationController.cpp

@@ -50,7 +50,7 @@ int lua_AnimationController_stopAllAnimations(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_AnimationController_stopAllAnimations - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;

+ 13 - 13
gameplay/src/lua/lua_AnimationTarget.cpp

@@ -106,7 +106,7 @@ int lua_AnimationTarget_createAnimation(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_AnimationTarget_createAnimation - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -158,7 +158,7 @@ int lua_AnimationTarget_createAnimation(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_AnimationTarget_createAnimation - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -218,7 +218,7 @@ int lua_AnimationTarget_createAnimation(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_AnimationTarget_createAnimation - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -288,7 +288,7 @@ int lua_AnimationTarget_createAnimationFromBy(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_AnimationTarget_createAnimationFromBy - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -358,7 +358,7 @@ int lua_AnimationTarget_createAnimationFromTo(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_AnimationTarget_createAnimationFromTo - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -392,7 +392,7 @@ int lua_AnimationTarget_destroyAnimation(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_AnimationTarget_destroyAnimation - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -412,7 +412,7 @@ int lua_AnimationTarget_destroyAnimation(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_AnimationTarget_destroyAnimation - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -458,7 +458,7 @@ int lua_AnimationTarget_getAnimation(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_AnimationTarget_getAnimation - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -490,7 +490,7 @@ int lua_AnimationTarget_getAnimation(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_AnimationTarget_getAnimation - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -531,7 +531,7 @@ int lua_AnimationTarget_getAnimationPropertyComponentCount(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_AnimationTarget_getAnimationPropertyComponentCount - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -573,7 +573,7 @@ int lua_AnimationTarget_getAnimationPropertyValue(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_AnimationTarget_getAnimationPropertyValue - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -615,7 +615,7 @@ int lua_AnimationTarget_setAnimationPropertyValue(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_AnimationTarget_setAnimationPropertyValue - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -643,7 +643,7 @@ int lua_AnimationTarget_setAnimationPropertyValue(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_AnimationTarget_setAnimationPropertyValue - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;

+ 4 - 4
gameplay/src/lua/lua_AnimationValue.cpp

@@ -56,7 +56,7 @@ int lua_AnimationValue_getFloat(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_AnimationValue_getFloat - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -84,7 +84,7 @@ int lua_AnimationValue_getFloat(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_AnimationValue_getFloat - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -126,7 +126,7 @@ int lua_AnimationValue_setFloat(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_AnimationValue_setFloat - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -154,7 +154,7 @@ int lua_AnimationValue_setFloat(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_AnimationValue_setFloat - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;

+ 4 - 4
gameplay/src/lua/lua_AudioBuffer.cpp

@@ -59,7 +59,7 @@ int lua_AudioBuffer__gc(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_AudioBuffer__gc - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -93,7 +93,7 @@ int lua_AudioBuffer_addRef(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_AudioBuffer_addRef - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -130,7 +130,7 @@ int lua_AudioBuffer_getRefCount(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_AudioBuffer_getRefCount - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -164,7 +164,7 @@ int lua_AudioBuffer_release(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_AudioBuffer_release - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;

+ 1 - 1
gameplay/src/lua/lua_AudioController.cpp

@@ -56,7 +56,7 @@ int lua_AudioController__gc(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_AudioController__gc - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;

+ 12 - 11
gameplay/src/lua/lua_AudioListener.cpp

@@ -7,6 +7,7 @@
 #include "Base.h"
 #include "Base.h"
 #include "Game.h"
 #include "Game.h"
 #include "Node.h"
 #include "Node.h"
+#include "ScriptListener.h"
 #include "Transform.h"
 #include "Transform.h"
 #include "lua_CurveInterpolationType.h"
 #include "lua_CurveInterpolationType.h"
 
 
@@ -80,7 +81,7 @@ int lua_AudioListener_getCamera(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_AudioListener_getCamera - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -117,7 +118,7 @@ int lua_AudioListener_getGain(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_AudioListener_getGain - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -163,7 +164,7 @@ int lua_AudioListener_getOrientationForward(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_AudioListener_getOrientationForward - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -209,7 +210,7 @@ int lua_AudioListener_getOrientationUp(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_AudioListener_getOrientationUp - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -255,7 +256,7 @@ int lua_AudioListener_getPosition(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_AudioListener_getPosition - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -301,7 +302,7 @@ int lua_AudioListener_getVelocity(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_AudioListener_getVelocity - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -339,7 +340,7 @@ int lua_AudioListener_setCamera(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_AudioListener_setCamera - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -377,7 +378,7 @@ int lua_AudioListener_setGain(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_AudioListener_setGain - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -419,7 +420,7 @@ int lua_AudioListener_setOrientation(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_AudioListener_setOrientation - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -457,7 +458,7 @@ int lua_AudioListener_setPosition(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_AudioListener_setPosition - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -495,7 +496,7 @@ int lua_AudioListener_setVelocity(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_AudioListener_setVelocity - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;

+ 21 - 20
gameplay/src/lua/lua_AudioSource.cpp

@@ -10,6 +10,7 @@
 #include "Game.h"
 #include "Game.h"
 #include "Node.h"
 #include "Node.h"
 #include "Ref.h"
 #include "Ref.h"
+#include "ScriptListener.h"
 #include "Transform.h"
 #include "Transform.h"
 #include "lua_AudioSourceState.h"
 #include "lua_AudioSourceState.h"
 #include "lua_CurveInterpolationType.h"
 #include "lua_CurveInterpolationType.h"
@@ -85,7 +86,7 @@ int lua_AudioSource__gc(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_AudioSource__gc - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -119,7 +120,7 @@ int lua_AudioSource_addRef(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_AudioSource_addRef - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -156,7 +157,7 @@ int lua_AudioSource_getGain(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_AudioSource_getGain - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -202,7 +203,7 @@ int lua_AudioSource_getNode(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_AudioSource_getNode - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -239,7 +240,7 @@ int lua_AudioSource_getPitch(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_AudioSource_getPitch - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -276,7 +277,7 @@ int lua_AudioSource_getRefCount(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_AudioSource_getRefCount - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -313,7 +314,7 @@ int lua_AudioSource_getState(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_AudioSource_getState - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -359,7 +360,7 @@ int lua_AudioSource_getVelocity(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_AudioSource_getVelocity - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -396,7 +397,7 @@ int lua_AudioSource_isLooped(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_AudioSource_isLooped - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -430,7 +431,7 @@ int lua_AudioSource_pause(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_AudioSource_pause - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -464,7 +465,7 @@ int lua_AudioSource_play(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_AudioSource_play - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -498,7 +499,7 @@ int lua_AudioSource_release(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_AudioSource_release - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -532,7 +533,7 @@ int lua_AudioSource_resume(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_AudioSource_resume - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -566,7 +567,7 @@ int lua_AudioSource_rewind(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_AudioSource_rewind - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -604,7 +605,7 @@ int lua_AudioSource_setGain(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_AudioSource_setGain - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -642,7 +643,7 @@ int lua_AudioSource_setLooped(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_AudioSource_setLooped - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -680,7 +681,7 @@ int lua_AudioSource_setPitch(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_AudioSource_setPitch - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -718,7 +719,7 @@ int lua_AudioSource_setVelocity(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_AudioSource_setVelocity - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -787,7 +788,7 @@ int lua_AudioSource_static_create(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_AudioSource_static_create - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -821,7 +822,7 @@ int lua_AudioSource_stop(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_AudioSource_stop - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;

+ 12 - 12
gameplay/src/lua/lua_BoundingBox.cpp

@@ -68,7 +68,7 @@ int lua_BoundingBox__gc(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_BoundingBox__gc - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -135,7 +135,7 @@ int lua_BoundingBox__init(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_BoundingBox__init - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -169,7 +169,7 @@ int lua_BoundingBox__init(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_BoundingBox__init - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -215,7 +215,7 @@ int lua_BoundingBox_getCenter(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_BoundingBox_getCenter - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -235,7 +235,7 @@ int lua_BoundingBox_getCenter(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_BoundingBox_getCenter - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -273,7 +273,7 @@ int lua_BoundingBox_getCorners(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_BoundingBox_getCorners - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -370,7 +370,7 @@ int lua_BoundingBox_intersects(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_BoundingBox_intersects - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -407,7 +407,7 @@ int lua_BoundingBox_isEmpty(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_BoundingBox_isEmpty - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -494,7 +494,7 @@ int lua_BoundingBox_merge(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_BoundingBox_merge - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -581,7 +581,7 @@ int lua_BoundingBox_set(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_BoundingBox_set - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -605,7 +605,7 @@ int lua_BoundingBox_set(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_BoundingBox_set - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -680,7 +680,7 @@ int lua_BoundingBox_transform(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_BoundingBox_transform - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;

+ 9 - 9
gameplay/src/lua/lua_BoundingSphere.cpp

@@ -65,7 +65,7 @@ int lua_BoundingSphere__gc(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_BoundingSphere__gc - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -132,7 +132,7 @@ int lua_BoundingSphere__init(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_BoundingSphere__init - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -166,7 +166,7 @@ int lua_BoundingSphere__init(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_BoundingSphere__init - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -301,7 +301,7 @@ int lua_BoundingSphere_intersects(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_BoundingSphere_intersects - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -338,7 +338,7 @@ int lua_BoundingSphere_isEmpty(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_BoundingSphere_isEmpty - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -387,7 +387,7 @@ int lua_BoundingSphere_merge(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_BoundingSphere_merge - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -465,7 +465,7 @@ int lua_BoundingSphere_set(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_BoundingSphere_set - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -489,7 +489,7 @@ int lua_BoundingSphere_set(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_BoundingSphere_set - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -564,7 +564,7 @@ int lua_BoundingSphere_transform(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_BoundingSphere_transform - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;

+ 13 - 13
gameplay/src/lua/lua_Bundle.cpp

@@ -73,7 +73,7 @@ int lua_Bundle__gc(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Bundle__gc - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -107,7 +107,7 @@ int lua_Bundle_addRef(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Bundle_addRef - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -148,7 +148,7 @@ int lua_Bundle_contains(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Bundle_contains - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -185,7 +185,7 @@ int lua_Bundle_getObjectCount(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Bundle_getObjectCount - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -226,7 +226,7 @@ int lua_Bundle_getObjectID(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Bundle_getObjectID - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -263,7 +263,7 @@ int lua_Bundle_getRefCount(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Bundle_getRefCount - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -313,7 +313,7 @@ int lua_Bundle_loadFont(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Bundle_loadFont - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -363,7 +363,7 @@ int lua_Bundle_loadMesh(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Bundle_loadMesh - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -413,7 +413,7 @@ int lua_Bundle_loadNode(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Bundle_loadNode - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -459,7 +459,7 @@ int lua_Bundle_loadScene(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Bundle_loadScene - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -491,7 +491,7 @@ int lua_Bundle_loadScene(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Bundle_loadScene - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -525,7 +525,7 @@ int lua_Bundle_release(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Bundle_release - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -573,7 +573,7 @@ int lua_Bundle_static_create(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Bundle_static_create - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;

+ 120 - 104
gameplay/src/lua/lua_Button.cpp

@@ -10,6 +10,7 @@
 #include "Label.h"
 #include "Label.h"
 #include "Node.h"
 #include "Node.h"
 #include "Ref.h"
 #include "Ref.h"
+#include "ScriptListener.h"
 #include "lua_ControlAlignment.h"
 #include "lua_ControlAlignment.h"
 #include "lua_ControlListenerEventType.h"
 #include "lua_ControlListenerEventType.h"
 #include "lua_ControlState.h"
 #include "lua_ControlState.h"
@@ -153,7 +154,7 @@ int lua_Button__gc(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Button__gc - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -193,9 +194,24 @@ int lua_Button_addListener(lua_State* state)
                 
                 
                 return 0;
                 return 0;
             }
             }
+            else if ((lua_type(state, 1) == LUA_TUSERDATA) &&
+                (lua_type(state, 2) == LUA_TSTRING || lua_type(state, 2) == LUA_TNIL) &&
+                lua_type(state, 3) == LUA_TNUMBER)
+            {
+                // Get parameter 1 off the stack.
+                const char* param1 = ScriptController::getInstance()->getString(2, false);
+
+                // Get parameter 2 off the stack.
+                int param2 = (int)luaL_checkint(state, 3);
+
+                Button* instance = getInstance(state);
+                instance->Control::addListener(param1, param2);
+                
+                return 0;
+            }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Button_addListener - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -229,7 +245,7 @@ int lua_Button_addRef(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Button_addRef - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -310,7 +326,7 @@ int lua_Button_createAnimation(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Button_createAnimation - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -362,7 +378,7 @@ int lua_Button_createAnimation(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Button_createAnimation - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -422,7 +438,7 @@ int lua_Button_createAnimation(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Button_createAnimation - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -492,7 +508,7 @@ int lua_Button_createAnimationFromBy(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Button_createAnimationFromBy - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -562,7 +578,7 @@ int lua_Button_createAnimationFromTo(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Button_createAnimationFromTo - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -596,7 +612,7 @@ int lua_Button_destroyAnimation(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Button_destroyAnimation - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -616,7 +632,7 @@ int lua_Button_destroyAnimation(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Button_destroyAnimation - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -650,7 +666,7 @@ int lua_Button_disable(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Button_disable - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -684,7 +700,7 @@ int lua_Button_enable(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Button_enable - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -721,7 +737,7 @@ int lua_Button_getAlignment(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Button_getAlignment - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -767,7 +783,7 @@ int lua_Button_getAnimation(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Button_getAnimation - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -799,7 +815,7 @@ int lua_Button_getAnimation(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Button_getAnimation - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -840,7 +856,7 @@ int lua_Button_getAnimationPropertyComponentCount(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Button_getAnimationPropertyComponentCount - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -882,7 +898,7 @@ int lua_Button_getAnimationPropertyValue(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Button_getAnimationPropertyValue - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -919,7 +935,7 @@ int lua_Button_getAutoHeight(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Button_getAutoHeight - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -956,7 +972,7 @@ int lua_Button_getAutoWidth(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Button_getAutoWidth - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1002,7 +1018,7 @@ int lua_Button_getBorder(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Button_getBorder - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1034,7 +1050,7 @@ int lua_Button_getBorder(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Button_getBorder - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1080,7 +1096,7 @@ int lua_Button_getBounds(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Button_getBounds - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1126,7 +1142,7 @@ int lua_Button_getClip(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Button_getClip - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1172,7 +1188,7 @@ int lua_Button_getClipBounds(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Button_getClipBounds - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1209,7 +1225,7 @@ int lua_Button_getConsumeInputEvents(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Button_getConsumeInputEvents - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1259,7 +1275,7 @@ int lua_Button_getCursorColor(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Button_getCursorColor - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1309,7 +1325,7 @@ int lua_Button_getCursorRegion(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Button_getCursorRegion - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1359,7 +1375,7 @@ int lua_Button_getCursorUVs(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Button_getCursorUVs - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1396,7 +1412,7 @@ int lua_Button_getFocusIndex(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Button_getFocusIndex - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1442,7 +1458,7 @@ int lua_Button_getFont(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Button_getFont - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1474,7 +1490,7 @@ int lua_Button_getFont(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Button_getFont - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1511,7 +1527,7 @@ int lua_Button_getFontSize(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Button_getFontSize - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1534,7 +1550,7 @@ int lua_Button_getFontSize(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Button_getFontSize - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1571,7 +1587,7 @@ int lua_Button_getHeight(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Button_getHeight - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1608,7 +1624,7 @@ int lua_Button_getId(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Button_getId - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1662,7 +1678,7 @@ int lua_Button_getImageColor(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Button_getImageColor - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1716,7 +1732,7 @@ int lua_Button_getImageRegion(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Button_getImageRegion - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1770,7 +1786,7 @@ int lua_Button_getImageUVs(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Button_getImageUVs - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1816,7 +1832,7 @@ int lua_Button_getMargin(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Button_getMargin - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1853,7 +1869,7 @@ int lua_Button_getOpacity(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Button_getOpacity - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1876,7 +1892,7 @@ int lua_Button_getOpacity(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Button_getOpacity - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1922,7 +1938,7 @@ int lua_Button_getPadding(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Button_getPadding - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1959,7 +1975,7 @@ int lua_Button_getRefCount(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Button_getRefCount - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2005,7 +2021,7 @@ int lua_Button_getSkinColor(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Button_getSkinColor - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2037,7 +2053,7 @@ int lua_Button_getSkinColor(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Button_getSkinColor - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2083,7 +2099,7 @@ int lua_Button_getSkinRegion(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Button_getSkinRegion - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2115,7 +2131,7 @@ int lua_Button_getSkinRegion(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Button_getSkinRegion - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2152,7 +2168,7 @@ int lua_Button_getState(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Button_getState - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2198,7 +2214,7 @@ int lua_Button_getStyle(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Button_getStyle - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2235,7 +2251,7 @@ int lua_Button_getText(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Button_getText - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2272,7 +2288,7 @@ int lua_Button_getTextAlignment(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Button_getTextAlignment - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2295,7 +2311,7 @@ int lua_Button_getTextAlignment(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Button_getTextAlignment - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2341,7 +2357,7 @@ int lua_Button_getTextColor(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Button_getTextColor - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2373,7 +2389,7 @@ int lua_Button_getTextColor(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Button_getTextColor - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2410,7 +2426,7 @@ int lua_Button_getTextRightToLeft(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Button_getTextRightToLeft - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2433,7 +2449,7 @@ int lua_Button_getTextRightToLeft(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Button_getTextRightToLeft - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2470,7 +2486,7 @@ int lua_Button_getWidth(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Button_getWidth - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2507,7 +2523,7 @@ int lua_Button_getX(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Button_getX - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2544,7 +2560,7 @@ int lua_Button_getY(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Button_getY - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2581,7 +2597,7 @@ int lua_Button_getZIndex(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Button_getZIndex - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2618,7 +2634,7 @@ int lua_Button_isContainer(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Button_isContainer - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2655,7 +2671,7 @@ int lua_Button_isEnabled(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Button_isEnabled - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2689,7 +2705,7 @@ int lua_Button_release(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Button_release - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2727,7 +2743,7 @@ int lua_Button_setAlignment(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Button_setAlignment - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2769,7 +2785,7 @@ int lua_Button_setAnimationPropertyValue(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Button_setAnimationPropertyValue - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2797,7 +2813,7 @@ int lua_Button_setAnimationPropertyValue(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Button_setAnimationPropertyValue - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2835,7 +2851,7 @@ int lua_Button_setAutoHeight(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Button_setAutoHeight - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2873,7 +2889,7 @@ int lua_Button_setAutoWidth(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Button_setAutoWidth - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2923,7 +2939,7 @@ int lua_Button_setBorder(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Button_setBorder - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2959,7 +2975,7 @@ int lua_Button_setBorder(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Button_setBorder - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2997,7 +3013,7 @@ int lua_Button_setBounds(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Button_setBounds - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -3035,7 +3051,7 @@ int lua_Button_setConsumeInputEvents(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Button_setConsumeInputEvents - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -3077,7 +3093,7 @@ int lua_Button_setCursorColor(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Button_setCursorColor - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -3119,7 +3135,7 @@ int lua_Button_setCursorRegion(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Button_setCursorRegion - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -3157,7 +3173,7 @@ int lua_Button_setFocusIndex(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Button_setFocusIndex - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -3195,7 +3211,7 @@ int lua_Button_setFont(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Button_setFont - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -3219,7 +3235,7 @@ int lua_Button_setFont(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Button_setFont - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -3257,7 +3273,7 @@ int lua_Button_setFontSize(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Button_setFontSize - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -3281,7 +3297,7 @@ int lua_Button_setFontSize(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Button_setFontSize - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -3323,7 +3339,7 @@ int lua_Button_setImageColor(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Button_setImageColor - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -3351,7 +3367,7 @@ int lua_Button_setImageColor(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Button_setImageColor - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -3393,7 +3409,7 @@ int lua_Button_setImageRegion(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Button_setImageRegion - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -3421,7 +3437,7 @@ int lua_Button_setImageRegion(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Button_setImageRegion - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -3471,7 +3487,7 @@ int lua_Button_setMargin(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Button_setMargin - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -3509,7 +3525,7 @@ int lua_Button_setOpacity(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Button_setOpacity - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -3533,7 +3549,7 @@ int lua_Button_setOpacity(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Button_setOpacity - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -3583,7 +3599,7 @@ int lua_Button_setPadding(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Button_setPadding - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -3625,7 +3641,7 @@ int lua_Button_setPosition(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Button_setPosition - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -3667,7 +3683,7 @@ int lua_Button_setSize(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Button_setSize - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -3705,7 +3721,7 @@ int lua_Button_setSkinColor(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Button_setSkinColor - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -3729,7 +3745,7 @@ int lua_Button_setSkinColor(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Button_setSkinColor - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -3767,7 +3783,7 @@ int lua_Button_setSkinRegion(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Button_setSkinRegion - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -3791,7 +3807,7 @@ int lua_Button_setSkinRegion(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Button_setSkinRegion - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -3829,7 +3845,7 @@ int lua_Button_setState(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Button_setState - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -3867,7 +3883,7 @@ int lua_Button_setStyle(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Button_setStyle - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -3905,7 +3921,7 @@ int lua_Button_setText(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Button_setText - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -3943,7 +3959,7 @@ int lua_Button_setTextAlignment(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Button_setTextAlignment - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -3967,7 +3983,7 @@ int lua_Button_setTextAlignment(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Button_setTextAlignment - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -4005,7 +4021,7 @@ int lua_Button_setTextColor(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Button_setTextColor - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -4029,7 +4045,7 @@ int lua_Button_setTextColor(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Button_setTextColor - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -4067,7 +4083,7 @@ int lua_Button_setTextRightToLeft(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Button_setTextRightToLeft - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -4091,7 +4107,7 @@ int lua_Button_setTextRightToLeft(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Button_setTextRightToLeft - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -4129,7 +4145,7 @@ int lua_Button_setZIndex(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Button_setZIndex - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -4300,7 +4316,7 @@ int lua_Button_static_create(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Button_static_create - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;

+ 31 - 30
gameplay/src/lua/lua_Camera.cpp

@@ -9,6 +9,7 @@
 #include "Node.h"
 #include "Node.h"
 #include "PhysicsController.h"
 #include "PhysicsController.h"
 #include "Ref.h"
 #include "Ref.h"
+#include "ScriptListener.h"
 #include "Transform.h"
 #include "Transform.h"
 #include "lua_CameraType.h"
 #include "lua_CameraType.h"
 #include "lua_CurveInterpolationType.h"
 #include "lua_CurveInterpolationType.h"
@@ -93,7 +94,7 @@ int lua_Camera__gc(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Camera__gc - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -127,7 +128,7 @@ int lua_Camera_addRef(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Camera_addRef - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -164,7 +165,7 @@ int lua_Camera_getAspectRatio(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Camera_getAspectRatio - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -201,7 +202,7 @@ int lua_Camera_getCameraType(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Camera_getCameraType - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -238,7 +239,7 @@ int lua_Camera_getFarPlane(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Camera_getFarPlane - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -275,7 +276,7 @@ int lua_Camera_getFieldOfView(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Camera_getFieldOfView - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -321,7 +322,7 @@ int lua_Camera_getFrustum(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Camera_getFrustum - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -367,7 +368,7 @@ int lua_Camera_getInverseViewMatrix(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Camera_getInverseViewMatrix - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -413,7 +414,7 @@ int lua_Camera_getInverseViewProjectionMatrix(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Camera_getInverseViewProjectionMatrix - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -450,7 +451,7 @@ int lua_Camera_getNearPlane(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Camera_getNearPlane - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -496,7 +497,7 @@ int lua_Camera_getNode(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Camera_getNode - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -542,7 +543,7 @@ int lua_Camera_getProjectionMatrix(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Camera_getProjectionMatrix - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -579,7 +580,7 @@ int lua_Camera_getRefCount(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Camera_getRefCount - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -625,7 +626,7 @@ int lua_Camera_getViewMatrix(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Camera_getViewMatrix - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -671,7 +672,7 @@ int lua_Camera_getViewProjectionMatrix(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Camera_getViewProjectionMatrix - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -708,7 +709,7 @@ int lua_Camera_getZoomX(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Camera_getZoomX - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -745,7 +746,7 @@ int lua_Camera_getZoomY(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Camera_getZoomY - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -795,7 +796,7 @@ int lua_Camera_pickRay(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Camera_pickRay - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -845,7 +846,7 @@ int lua_Camera_project(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Camera_project - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -881,7 +882,7 @@ int lua_Camera_project(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Camera_project - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -915,7 +916,7 @@ int lua_Camera_release(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Camera_release - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -953,7 +954,7 @@ int lua_Camera_setAspectRatio(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Camera_setAspectRatio - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -991,7 +992,7 @@ int lua_Camera_setFarPlane(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Camera_setFarPlane - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1029,7 +1030,7 @@ int lua_Camera_setFieldOfView(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Camera_setFieldOfView - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1067,7 +1068,7 @@ int lua_Camera_setNearPlane(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Camera_setNearPlane - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1105,7 +1106,7 @@ int lua_Camera_setZoomX(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Camera_setZoomX - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1143,7 +1144,7 @@ int lua_Camera_setZoomY(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Camera_setZoomY - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1207,7 +1208,7 @@ int lua_Camera_static_createOrthographic(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Camera_static_createOrthographic - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1267,7 +1268,7 @@ int lua_Camera_static_createPerspective(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Camera_static_createPerspective - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1321,7 +1322,7 @@ int lua_Camera_unproject(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Camera_unproject - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;

+ 125 - 109
gameplay/src/lua/lua_CheckBox.cpp

@@ -11,6 +11,7 @@
 #include "Label.h"
 #include "Label.h"
 #include "Node.h"
 #include "Node.h"
 #include "Ref.h"
 #include "Ref.h"
+#include "ScriptListener.h"
 #include "lua_ControlAlignment.h"
 #include "lua_ControlAlignment.h"
 #include "lua_ControlListenerEventType.h"
 #include "lua_ControlListenerEventType.h"
 #include "lua_ControlState.h"
 #include "lua_ControlState.h"
@@ -159,7 +160,7 @@ int lua_CheckBox__gc(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_CheckBox__gc - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -199,9 +200,24 @@ int lua_CheckBox_addListener(lua_State* state)
                 
                 
                 return 0;
                 return 0;
             }
             }
+            else if ((lua_type(state, 1) == LUA_TUSERDATA) &&
+                (lua_type(state, 2) == LUA_TSTRING || lua_type(state, 2) == LUA_TNIL) &&
+                lua_type(state, 3) == LUA_TNUMBER)
+            {
+                // Get parameter 1 off the stack.
+                const char* param1 = ScriptController::getInstance()->getString(2, false);
+
+                // Get parameter 2 off the stack.
+                int param2 = (int)luaL_checkint(state, 3);
+
+                CheckBox* instance = getInstance(state);
+                instance->Button::Control::addListener(param1, param2);
+                
+                return 0;
+            }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_CheckBox_addListener - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -235,7 +251,7 @@ int lua_CheckBox_addRef(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_CheckBox_addRef - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -316,7 +332,7 @@ int lua_CheckBox_createAnimation(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_CheckBox_createAnimation - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -368,7 +384,7 @@ int lua_CheckBox_createAnimation(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_CheckBox_createAnimation - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -428,7 +444,7 @@ int lua_CheckBox_createAnimation(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_CheckBox_createAnimation - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -498,7 +514,7 @@ int lua_CheckBox_createAnimationFromBy(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_CheckBox_createAnimationFromBy - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -568,7 +584,7 @@ int lua_CheckBox_createAnimationFromTo(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_CheckBox_createAnimationFromTo - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -602,7 +618,7 @@ int lua_CheckBox_destroyAnimation(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_CheckBox_destroyAnimation - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -622,7 +638,7 @@ int lua_CheckBox_destroyAnimation(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_CheckBox_destroyAnimation - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -656,7 +672,7 @@ int lua_CheckBox_disable(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_CheckBox_disable - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -690,7 +706,7 @@ int lua_CheckBox_enable(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_CheckBox_enable - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -727,7 +743,7 @@ int lua_CheckBox_getAlignment(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_CheckBox_getAlignment - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -773,7 +789,7 @@ int lua_CheckBox_getAnimation(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_CheckBox_getAnimation - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -805,7 +821,7 @@ int lua_CheckBox_getAnimation(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_CheckBox_getAnimation - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -846,7 +862,7 @@ int lua_CheckBox_getAnimationPropertyComponentCount(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_CheckBox_getAnimationPropertyComponentCount - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -888,7 +904,7 @@ int lua_CheckBox_getAnimationPropertyValue(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_CheckBox_getAnimationPropertyValue - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -925,7 +941,7 @@ int lua_CheckBox_getAutoHeight(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_CheckBox_getAutoHeight - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -962,7 +978,7 @@ int lua_CheckBox_getAutoWidth(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_CheckBox_getAutoWidth - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1008,7 +1024,7 @@ int lua_CheckBox_getBorder(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_CheckBox_getBorder - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1040,7 +1056,7 @@ int lua_CheckBox_getBorder(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_CheckBox_getBorder - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1086,7 +1102,7 @@ int lua_CheckBox_getBounds(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_CheckBox_getBounds - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1132,7 +1148,7 @@ int lua_CheckBox_getClip(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_CheckBox_getClip - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1178,7 +1194,7 @@ int lua_CheckBox_getClipBounds(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_CheckBox_getClipBounds - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1215,7 +1231,7 @@ int lua_CheckBox_getConsumeInputEvents(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_CheckBox_getConsumeInputEvents - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1265,7 +1281,7 @@ int lua_CheckBox_getCursorColor(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_CheckBox_getCursorColor - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1315,7 +1331,7 @@ int lua_CheckBox_getCursorRegion(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_CheckBox_getCursorRegion - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1365,7 +1381,7 @@ int lua_CheckBox_getCursorUVs(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_CheckBox_getCursorUVs - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1402,7 +1418,7 @@ int lua_CheckBox_getFocusIndex(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_CheckBox_getFocusIndex - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1448,7 +1464,7 @@ int lua_CheckBox_getFont(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_CheckBox_getFont - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1480,7 +1496,7 @@ int lua_CheckBox_getFont(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_CheckBox_getFont - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1517,7 +1533,7 @@ int lua_CheckBox_getFontSize(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_CheckBox_getFontSize - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1540,7 +1556,7 @@ int lua_CheckBox_getFontSize(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_CheckBox_getFontSize - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1577,7 +1593,7 @@ int lua_CheckBox_getHeight(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_CheckBox_getHeight - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1614,7 +1630,7 @@ int lua_CheckBox_getId(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_CheckBox_getId - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1668,7 +1684,7 @@ int lua_CheckBox_getImageColor(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_CheckBox_getImageColor - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1722,7 +1738,7 @@ int lua_CheckBox_getImageRegion(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_CheckBox_getImageRegion - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1768,7 +1784,7 @@ int lua_CheckBox_getImageSize(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_CheckBox_getImageSize - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1822,7 +1838,7 @@ int lua_CheckBox_getImageUVs(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_CheckBox_getImageUVs - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1868,7 +1884,7 @@ int lua_CheckBox_getMargin(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_CheckBox_getMargin - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1905,7 +1921,7 @@ int lua_CheckBox_getOpacity(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_CheckBox_getOpacity - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1928,7 +1944,7 @@ int lua_CheckBox_getOpacity(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_CheckBox_getOpacity - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1974,7 +1990,7 @@ int lua_CheckBox_getPadding(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_CheckBox_getPadding - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2011,7 +2027,7 @@ int lua_CheckBox_getRefCount(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_CheckBox_getRefCount - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2057,7 +2073,7 @@ int lua_CheckBox_getSkinColor(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_CheckBox_getSkinColor - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2089,7 +2105,7 @@ int lua_CheckBox_getSkinColor(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_CheckBox_getSkinColor - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2135,7 +2151,7 @@ int lua_CheckBox_getSkinRegion(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_CheckBox_getSkinRegion - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2167,7 +2183,7 @@ int lua_CheckBox_getSkinRegion(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_CheckBox_getSkinRegion - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2204,7 +2220,7 @@ int lua_CheckBox_getState(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_CheckBox_getState - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2250,7 +2266,7 @@ int lua_CheckBox_getStyle(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_CheckBox_getStyle - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2287,7 +2303,7 @@ int lua_CheckBox_getText(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_CheckBox_getText - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2324,7 +2340,7 @@ int lua_CheckBox_getTextAlignment(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_CheckBox_getTextAlignment - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2347,7 +2363,7 @@ int lua_CheckBox_getTextAlignment(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_CheckBox_getTextAlignment - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2393,7 +2409,7 @@ int lua_CheckBox_getTextColor(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_CheckBox_getTextColor - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2425,7 +2441,7 @@ int lua_CheckBox_getTextColor(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_CheckBox_getTextColor - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2462,7 +2478,7 @@ int lua_CheckBox_getTextRightToLeft(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_CheckBox_getTextRightToLeft - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2485,7 +2501,7 @@ int lua_CheckBox_getTextRightToLeft(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_CheckBox_getTextRightToLeft - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2522,7 +2538,7 @@ int lua_CheckBox_getType(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_CheckBox_getType - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2559,7 +2575,7 @@ int lua_CheckBox_getWidth(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_CheckBox_getWidth - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2596,7 +2612,7 @@ int lua_CheckBox_getX(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_CheckBox_getX - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2633,7 +2649,7 @@ int lua_CheckBox_getY(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_CheckBox_getY - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2670,7 +2686,7 @@ int lua_CheckBox_getZIndex(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_CheckBox_getZIndex - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2707,7 +2723,7 @@ int lua_CheckBox_isChecked(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_CheckBox_isChecked - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2744,7 +2760,7 @@ int lua_CheckBox_isContainer(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_CheckBox_isContainer - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2781,7 +2797,7 @@ int lua_CheckBox_isEnabled(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_CheckBox_isEnabled - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2815,7 +2831,7 @@ int lua_CheckBox_release(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_CheckBox_release - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2853,7 +2869,7 @@ int lua_CheckBox_setAlignment(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_CheckBox_setAlignment - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2895,7 +2911,7 @@ int lua_CheckBox_setAnimationPropertyValue(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_CheckBox_setAnimationPropertyValue - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2923,7 +2939,7 @@ int lua_CheckBox_setAnimationPropertyValue(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_CheckBox_setAnimationPropertyValue - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2961,7 +2977,7 @@ int lua_CheckBox_setAutoHeight(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_CheckBox_setAutoHeight - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2999,7 +3015,7 @@ int lua_CheckBox_setAutoWidth(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_CheckBox_setAutoWidth - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -3049,7 +3065,7 @@ int lua_CheckBox_setBorder(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_CheckBox_setBorder - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -3085,7 +3101,7 @@ int lua_CheckBox_setBorder(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_CheckBox_setBorder - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -3123,7 +3139,7 @@ int lua_CheckBox_setBounds(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_CheckBox_setBounds - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -3161,7 +3177,7 @@ int lua_CheckBox_setChecked(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_CheckBox_setChecked - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -3199,7 +3215,7 @@ int lua_CheckBox_setConsumeInputEvents(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_CheckBox_setConsumeInputEvents - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -3241,7 +3257,7 @@ int lua_CheckBox_setCursorColor(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_CheckBox_setCursorColor - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -3283,7 +3299,7 @@ int lua_CheckBox_setCursorRegion(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_CheckBox_setCursorRegion - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -3321,7 +3337,7 @@ int lua_CheckBox_setFocusIndex(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_CheckBox_setFocusIndex - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -3359,7 +3375,7 @@ int lua_CheckBox_setFont(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_CheckBox_setFont - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -3383,7 +3399,7 @@ int lua_CheckBox_setFont(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_CheckBox_setFont - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -3421,7 +3437,7 @@ int lua_CheckBox_setFontSize(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_CheckBox_setFontSize - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -3445,7 +3461,7 @@ int lua_CheckBox_setFontSize(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_CheckBox_setFontSize - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -3487,7 +3503,7 @@ int lua_CheckBox_setImageColor(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_CheckBox_setImageColor - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -3515,7 +3531,7 @@ int lua_CheckBox_setImageColor(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_CheckBox_setImageColor - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -3557,7 +3573,7 @@ int lua_CheckBox_setImageRegion(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_CheckBox_setImageRegion - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -3585,7 +3601,7 @@ int lua_CheckBox_setImageRegion(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_CheckBox_setImageRegion - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -3627,7 +3643,7 @@ int lua_CheckBox_setImageSize(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_CheckBox_setImageSize - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -3677,7 +3693,7 @@ int lua_CheckBox_setMargin(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_CheckBox_setMargin - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -3715,7 +3731,7 @@ int lua_CheckBox_setOpacity(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_CheckBox_setOpacity - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -3739,7 +3755,7 @@ int lua_CheckBox_setOpacity(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_CheckBox_setOpacity - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -3789,7 +3805,7 @@ int lua_CheckBox_setPadding(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_CheckBox_setPadding - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -3831,7 +3847,7 @@ int lua_CheckBox_setPosition(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_CheckBox_setPosition - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -3873,7 +3889,7 @@ int lua_CheckBox_setSize(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_CheckBox_setSize - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -3911,7 +3927,7 @@ int lua_CheckBox_setSkinColor(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_CheckBox_setSkinColor - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -3935,7 +3951,7 @@ int lua_CheckBox_setSkinColor(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_CheckBox_setSkinColor - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -3973,7 +3989,7 @@ int lua_CheckBox_setSkinRegion(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_CheckBox_setSkinRegion - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -3997,7 +4013,7 @@ int lua_CheckBox_setSkinRegion(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_CheckBox_setSkinRegion - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -4035,7 +4051,7 @@ int lua_CheckBox_setState(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_CheckBox_setState - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -4073,7 +4089,7 @@ int lua_CheckBox_setStyle(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_CheckBox_setStyle - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -4111,7 +4127,7 @@ int lua_CheckBox_setText(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_CheckBox_setText - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -4149,7 +4165,7 @@ int lua_CheckBox_setTextAlignment(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_CheckBox_setTextAlignment - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -4173,7 +4189,7 @@ int lua_CheckBox_setTextAlignment(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_CheckBox_setTextAlignment - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -4211,7 +4227,7 @@ int lua_CheckBox_setTextColor(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_CheckBox_setTextColor - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -4235,7 +4251,7 @@ int lua_CheckBox_setTextColor(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_CheckBox_setTextColor - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -4273,7 +4289,7 @@ int lua_CheckBox_setTextRightToLeft(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_CheckBox_setTextRightToLeft - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -4297,7 +4313,7 @@ int lua_CheckBox_setTextRightToLeft(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_CheckBox_setTextRightToLeft - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -4335,7 +4351,7 @@ int lua_CheckBox_setZIndex(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_CheckBox_setZIndex - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -4506,7 +4522,7 @@ int lua_CheckBox_static_create(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_CheckBox_static_create - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;

File diff ditekan karena terlalu besar
+ 125 - 109
gameplay/src/lua/lua_Container.cpp


+ 118 - 102
gameplay/src/lua/lua_Control.cpp

@@ -8,6 +8,7 @@
 #include "Game.h"
 #include "Game.h"
 #include "Node.h"
 #include "Node.h"
 #include "Ref.h"
 #include "Ref.h"
+#include "ScriptListener.h"
 #include "lua_ControlAlignment.h"
 #include "lua_ControlAlignment.h"
 #include "lua_ControlListenerEventType.h"
 #include "lua_ControlListenerEventType.h"
 #include "lua_ControlState.h"
 #include "lua_ControlState.h"
@@ -149,7 +150,7 @@ int lua_Control__gc(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Control__gc - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -189,9 +190,24 @@ int lua_Control_addListener(lua_State* state)
                 
                 
                 return 0;
                 return 0;
             }
             }
+            else if ((lua_type(state, 1) == LUA_TUSERDATA) &&
+                (lua_type(state, 2) == LUA_TSTRING || lua_type(state, 2) == LUA_TNIL) &&
+                lua_type(state, 3) == LUA_TNUMBER)
+            {
+                // Get parameter 1 off the stack.
+                const char* param1 = ScriptController::getInstance()->getString(2, false);
+
+                // Get parameter 2 off the stack.
+                int param2 = (int)luaL_checkint(state, 3);
+
+                Control* instance = getInstance(state);
+                instance->addListener(param1, param2);
+                
+                return 0;
+            }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Control_addListener - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -225,7 +241,7 @@ int lua_Control_addRef(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Control_addRef - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -306,7 +322,7 @@ int lua_Control_createAnimation(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Control_createAnimation - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -358,7 +374,7 @@ int lua_Control_createAnimation(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Control_createAnimation - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -418,7 +434,7 @@ int lua_Control_createAnimation(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Control_createAnimation - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -488,7 +504,7 @@ int lua_Control_createAnimationFromBy(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Control_createAnimationFromBy - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -558,7 +574,7 @@ int lua_Control_createAnimationFromTo(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Control_createAnimationFromTo - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -592,7 +608,7 @@ int lua_Control_destroyAnimation(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Control_destroyAnimation - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -612,7 +628,7 @@ int lua_Control_destroyAnimation(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Control_destroyAnimation - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -646,7 +662,7 @@ int lua_Control_disable(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Control_disable - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -680,7 +696,7 @@ int lua_Control_enable(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Control_enable - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -717,7 +733,7 @@ int lua_Control_getAlignment(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Control_getAlignment - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -763,7 +779,7 @@ int lua_Control_getAnimation(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Control_getAnimation - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -795,7 +811,7 @@ int lua_Control_getAnimation(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Control_getAnimation - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -836,7 +852,7 @@ int lua_Control_getAnimationPropertyComponentCount(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Control_getAnimationPropertyComponentCount - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -878,7 +894,7 @@ int lua_Control_getAnimationPropertyValue(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Control_getAnimationPropertyValue - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -915,7 +931,7 @@ int lua_Control_getAutoHeight(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Control_getAutoHeight - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -952,7 +968,7 @@ int lua_Control_getAutoWidth(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Control_getAutoWidth - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -998,7 +1014,7 @@ int lua_Control_getBorder(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Control_getBorder - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1030,7 +1046,7 @@ int lua_Control_getBorder(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Control_getBorder - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1076,7 +1092,7 @@ int lua_Control_getBounds(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Control_getBounds - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1122,7 +1138,7 @@ int lua_Control_getClip(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Control_getClip - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1168,7 +1184,7 @@ int lua_Control_getClipBounds(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Control_getClipBounds - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1205,7 +1221,7 @@ int lua_Control_getConsumeInputEvents(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Control_getConsumeInputEvents - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1255,7 +1271,7 @@ int lua_Control_getCursorColor(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Control_getCursorColor - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1305,7 +1321,7 @@ int lua_Control_getCursorRegion(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Control_getCursorRegion - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1355,7 +1371,7 @@ int lua_Control_getCursorUVs(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Control_getCursorUVs - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1392,7 +1408,7 @@ int lua_Control_getFocusIndex(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Control_getFocusIndex - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1438,7 +1454,7 @@ int lua_Control_getFont(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Control_getFont - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1470,7 +1486,7 @@ int lua_Control_getFont(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Control_getFont - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1507,7 +1523,7 @@ int lua_Control_getFontSize(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Control_getFontSize - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1530,7 +1546,7 @@ int lua_Control_getFontSize(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Control_getFontSize - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1567,7 +1583,7 @@ int lua_Control_getHeight(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Control_getHeight - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1604,7 +1620,7 @@ int lua_Control_getId(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Control_getId - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1658,7 +1674,7 @@ int lua_Control_getImageColor(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Control_getImageColor - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1712,7 +1728,7 @@ int lua_Control_getImageRegion(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Control_getImageRegion - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1766,7 +1782,7 @@ int lua_Control_getImageUVs(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Control_getImageUVs - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1812,7 +1828,7 @@ int lua_Control_getMargin(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Control_getMargin - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1849,7 +1865,7 @@ int lua_Control_getOpacity(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Control_getOpacity - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1872,7 +1888,7 @@ int lua_Control_getOpacity(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Control_getOpacity - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1918,7 +1934,7 @@ int lua_Control_getPadding(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Control_getPadding - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1955,7 +1971,7 @@ int lua_Control_getRefCount(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Control_getRefCount - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2001,7 +2017,7 @@ int lua_Control_getSkinColor(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Control_getSkinColor - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2033,7 +2049,7 @@ int lua_Control_getSkinColor(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Control_getSkinColor - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2079,7 +2095,7 @@ int lua_Control_getSkinRegion(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Control_getSkinRegion - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2111,7 +2127,7 @@ int lua_Control_getSkinRegion(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Control_getSkinRegion - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2148,7 +2164,7 @@ int lua_Control_getState(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Control_getState - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2194,7 +2210,7 @@ int lua_Control_getStyle(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Control_getStyle - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2231,7 +2247,7 @@ int lua_Control_getTextAlignment(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Control_getTextAlignment - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2254,7 +2270,7 @@ int lua_Control_getTextAlignment(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Control_getTextAlignment - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2300,7 +2316,7 @@ int lua_Control_getTextColor(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Control_getTextColor - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2332,7 +2348,7 @@ int lua_Control_getTextColor(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Control_getTextColor - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2369,7 +2385,7 @@ int lua_Control_getTextRightToLeft(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Control_getTextRightToLeft - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2392,7 +2408,7 @@ int lua_Control_getTextRightToLeft(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Control_getTextRightToLeft - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2429,7 +2445,7 @@ int lua_Control_getType(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Control_getType - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2466,7 +2482,7 @@ int lua_Control_getWidth(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Control_getWidth - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2503,7 +2519,7 @@ int lua_Control_getX(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Control_getX - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2540,7 +2556,7 @@ int lua_Control_getY(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Control_getY - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2577,7 +2593,7 @@ int lua_Control_getZIndex(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Control_getZIndex - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2614,7 +2630,7 @@ int lua_Control_isContainer(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Control_isContainer - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2651,7 +2667,7 @@ int lua_Control_isEnabled(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Control_isEnabled - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2685,7 +2701,7 @@ int lua_Control_release(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Control_release - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2723,7 +2739,7 @@ int lua_Control_setAlignment(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Control_setAlignment - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2765,7 +2781,7 @@ int lua_Control_setAnimationPropertyValue(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Control_setAnimationPropertyValue - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2793,7 +2809,7 @@ int lua_Control_setAnimationPropertyValue(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Control_setAnimationPropertyValue - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2831,7 +2847,7 @@ int lua_Control_setAutoHeight(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Control_setAutoHeight - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2869,7 +2885,7 @@ int lua_Control_setAutoWidth(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Control_setAutoWidth - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2919,7 +2935,7 @@ int lua_Control_setBorder(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Control_setBorder - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2955,7 +2971,7 @@ int lua_Control_setBorder(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Control_setBorder - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2993,7 +3009,7 @@ int lua_Control_setBounds(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Control_setBounds - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -3031,7 +3047,7 @@ int lua_Control_setConsumeInputEvents(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Control_setConsumeInputEvents - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -3073,7 +3089,7 @@ int lua_Control_setCursorColor(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Control_setCursorColor - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -3115,7 +3131,7 @@ int lua_Control_setCursorRegion(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Control_setCursorRegion - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -3153,7 +3169,7 @@ int lua_Control_setFocusIndex(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Control_setFocusIndex - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -3191,7 +3207,7 @@ int lua_Control_setFont(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Control_setFont - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -3215,7 +3231,7 @@ int lua_Control_setFont(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Control_setFont - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -3253,7 +3269,7 @@ int lua_Control_setFontSize(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Control_setFontSize - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -3277,7 +3293,7 @@ int lua_Control_setFontSize(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Control_setFontSize - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -3319,7 +3335,7 @@ int lua_Control_setImageColor(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Control_setImageColor - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -3347,7 +3363,7 @@ int lua_Control_setImageColor(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Control_setImageColor - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -3389,7 +3405,7 @@ int lua_Control_setImageRegion(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Control_setImageRegion - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -3417,7 +3433,7 @@ int lua_Control_setImageRegion(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Control_setImageRegion - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -3467,7 +3483,7 @@ int lua_Control_setMargin(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Control_setMargin - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -3505,7 +3521,7 @@ int lua_Control_setOpacity(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Control_setOpacity - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -3529,7 +3545,7 @@ int lua_Control_setOpacity(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Control_setOpacity - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -3579,7 +3595,7 @@ int lua_Control_setPadding(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Control_setPadding - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -3621,7 +3637,7 @@ int lua_Control_setPosition(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Control_setPosition - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -3663,7 +3679,7 @@ int lua_Control_setSize(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Control_setSize - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -3701,7 +3717,7 @@ int lua_Control_setSkinColor(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Control_setSkinColor - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -3725,7 +3741,7 @@ int lua_Control_setSkinColor(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Control_setSkinColor - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -3763,7 +3779,7 @@ int lua_Control_setSkinRegion(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Control_setSkinRegion - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -3787,7 +3803,7 @@ int lua_Control_setSkinRegion(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Control_setSkinRegion - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -3825,7 +3841,7 @@ int lua_Control_setState(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Control_setState - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -3863,7 +3879,7 @@ int lua_Control_setStyle(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Control_setStyle - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -3901,7 +3917,7 @@ int lua_Control_setTextAlignment(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Control_setTextAlignment - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -3925,7 +3941,7 @@ int lua_Control_setTextAlignment(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Control_setTextAlignment - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -3963,7 +3979,7 @@ int lua_Control_setTextColor(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Control_setTextColor - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -3987,7 +4003,7 @@ int lua_Control_setTextColor(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Control_setTextColor - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -4025,7 +4041,7 @@ int lua_Control_setTextRightToLeft(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Control_setTextRightToLeft - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -4049,7 +4065,7 @@ int lua_Control_setTextRightToLeft(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Control_setTextRightToLeft - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -4087,7 +4103,7 @@ int lua_Control_setZIndex(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Control_setZIndex - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;

+ 3 - 2
gameplay/src/lua/lua_ControlListener.cpp

@@ -8,6 +8,7 @@
 #include "Game.h"
 #include "Game.h"
 #include "Node.h"
 #include "Node.h"
 #include "Ref.h"
 #include "Ref.h"
+#include "ScriptListener.h"
 #include "lua_ControlAlignment.h"
 #include "lua_ControlAlignment.h"
 #include "lua_ControlListenerEventType.h"
 #include "lua_ControlListenerEventType.h"
 #include "lua_ControlState.h"
 #include "lua_ControlState.h"
@@ -65,7 +66,7 @@ int lua_ControlListener__gc(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_ControlListener__gc - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -107,7 +108,7 @@ int lua_ControlListener_controlEvent(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_ControlListener_controlEvent - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;

+ 14 - 14
gameplay/src/lua/lua_Curve.cpp

@@ -72,7 +72,7 @@ int lua_Curve__gc(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Curve__gc - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -106,7 +106,7 @@ int lua_Curve_addRef(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Curve_addRef - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -148,7 +148,7 @@ int lua_Curve_evaluate(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Curve_evaluate - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -185,7 +185,7 @@ int lua_Curve_getComponentCount(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Curve_getComponentCount - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -222,7 +222,7 @@ int lua_Curve_getEndTime(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Curve_getEndTime - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -259,7 +259,7 @@ int lua_Curve_getPointCount(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Curve_getPointCount - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -296,7 +296,7 @@ int lua_Curve_getRefCount(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Curve_getRefCount - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -333,7 +333,7 @@ int lua_Curve_getStartTime(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Curve_getStartTime - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -367,7 +367,7 @@ int lua_Curve_release(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Curve_release - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -417,7 +417,7 @@ int lua_Curve_setPoint(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Curve_setPoint - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -457,7 +457,7 @@ int lua_Curve_setPoint(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Curve_setPoint - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -507,7 +507,7 @@ int lua_Curve_setTangent(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Curve_setTangent - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -559,7 +559,7 @@ int lua_Curve_static_create(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Curve_static_create - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -606,7 +606,7 @@ int lua_Curve_static_lerp(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Curve_static_lerp - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;

+ 8 - 8
gameplay/src/lua/lua_DepthStencilTarget.cpp

@@ -66,7 +66,7 @@ int lua_DepthStencilTarget__gc(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_DepthStencilTarget__gc - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -100,7 +100,7 @@ int lua_DepthStencilTarget_addRef(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_DepthStencilTarget_addRef - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -137,7 +137,7 @@ int lua_DepthStencilTarget_getFormat(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_DepthStencilTarget_getFormat - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -174,7 +174,7 @@ int lua_DepthStencilTarget_getId(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_DepthStencilTarget_getId - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -211,7 +211,7 @@ int lua_DepthStencilTarget_getRefCount(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_DepthStencilTarget_getRefCount - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -245,7 +245,7 @@ int lua_DepthStencilTarget_release(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_DepthStencilTarget_release - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -305,7 +305,7 @@ int lua_DepthStencilTarget_static_create(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_DepthStencilTarget_static_create - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -353,7 +353,7 @@ int lua_DepthStencilTarget_static_getDepthStencilTarget(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_DepthStencilTarget_static_getDepthStencilTarget - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;

+ 15 - 15
gameplay/src/lua/lua_Effect.cpp

@@ -71,7 +71,7 @@ int lua_Effect__gc(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Effect__gc - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -105,7 +105,7 @@ int lua_Effect_addRef(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Effect_addRef - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -139,7 +139,7 @@ int lua_Effect_bind(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Effect_bind - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -176,7 +176,7 @@ int lua_Effect_getId(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Effect_getId - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -213,7 +213,7 @@ int lua_Effect_getRefCount(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Effect_getRefCount - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -286,7 +286,7 @@ int lua_Effect_getUniform(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Effect_getUniform - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -323,7 +323,7 @@ int lua_Effect_getUniformCount(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Effect_getUniformCount - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -373,7 +373,7 @@ int lua_Effect_getVertexAttribute(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Effect_getVertexAttribute - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -407,7 +407,7 @@ int lua_Effect_release(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Effect_release - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -629,7 +629,7 @@ int lua_Effect_setValue(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Effect_setValue - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -752,7 +752,7 @@ int lua_Effect_setValue(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Effect_setValue - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -804,7 +804,7 @@ int lua_Effect_static_createFromFile(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Effect_static_createFromFile - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -842,7 +842,7 @@ int lua_Effect_static_createFromFile(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Effect_static_createFromFile - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -894,7 +894,7 @@ int lua_Effect_static_createFromSource(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Effect_static_createFromSource - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -932,7 +932,7 @@ int lua_Effect_static_createFromSource(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Effect_static_createFromSource - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;

+ 7 - 7
gameplay/src/lua/lua_FileSystem.cpp

@@ -63,7 +63,7 @@ int lua_FileSystem__gc(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_FileSystem__gc - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -102,7 +102,7 @@ int lua_FileSystem_static_fileExists(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_FileSystem_static_fileExists - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -175,7 +175,7 @@ int lua_FileSystem_static_loadResourceAliases(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_FileSystem_static_loadResourceAliases - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -214,7 +214,7 @@ int lua_FileSystem_static_readAll(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_FileSystem_static_readAll - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -239,7 +239,7 @@ int lua_FileSystem_static_readAll(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_FileSystem_static_readAll - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -278,7 +278,7 @@ int lua_FileSystem_static_resolvePath(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_FileSystem_static_resolvePath - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -314,7 +314,7 @@ int lua_FileSystem_static_setResourcePath(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_FileSystem_static_setResourcePath - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;

+ 5 - 5
gameplay/src/lua/lua_FlowLayout.cpp

@@ -63,7 +63,7 @@ int lua_FlowLayout__gc(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_FlowLayout__gc - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -97,7 +97,7 @@ int lua_FlowLayout_addRef(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_FlowLayout_addRef - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -134,7 +134,7 @@ int lua_FlowLayout_getRefCount(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_FlowLayout_getRefCount - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -171,7 +171,7 @@ int lua_FlowLayout_getType(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_FlowLayout_getType - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -205,7 +205,7 @@ int lua_FlowLayout_release(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_FlowLayout_release - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;

+ 37 - 37
gameplay/src/lua/lua_Font.cpp

@@ -76,7 +76,7 @@ int lua_Font__gc(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Font__gc - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -110,7 +110,7 @@ int lua_Font_addRef(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Font_addRef - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -144,7 +144,7 @@ int lua_Font_begin(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Font_begin - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -202,7 +202,7 @@ int lua_Font_createText(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Font_createText - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -246,7 +246,7 @@ int lua_Font_createText(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Font_createText - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -294,7 +294,7 @@ int lua_Font_createText(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Font_createText - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -346,7 +346,7 @@ int lua_Font_createText(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Font_createText - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -402,7 +402,7 @@ int lua_Font_createText(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Font_createText - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -462,7 +462,7 @@ int lua_Font_createText(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Font_createText - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -500,7 +500,7 @@ int lua_Font_drawText(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Font_drawText - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -528,7 +528,7 @@ int lua_Font_drawText(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Font_drawText - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -583,7 +583,7 @@ int lua_Font_drawText(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Font_drawText - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -646,7 +646,7 @@ int lua_Font_drawText(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Font_drawText - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -717,7 +717,7 @@ int lua_Font_drawText(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Font_drawText - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -761,7 +761,7 @@ int lua_Font_drawText(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Font_drawText - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -809,7 +809,7 @@ int lua_Font_drawText(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Font_drawText - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -843,7 +843,7 @@ int lua_Font_finish(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Font_finish - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -900,7 +900,7 @@ int lua_Font_getIndexAtLocation(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Font_getIndexAtLocation - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -943,7 +943,7 @@ int lua_Font_getIndexAtLocation(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Font_getIndexAtLocation - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -990,7 +990,7 @@ int lua_Font_getIndexAtLocation(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Font_getIndexAtLocation - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1041,7 +1041,7 @@ int lua_Font_getIndexAtLocation(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Font_getIndexAtLocation - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1095,7 +1095,7 @@ int lua_Font_getLocationAtIndex(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Font_getLocationAtIndex - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1135,7 +1135,7 @@ int lua_Font_getLocationAtIndex(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Font_getLocationAtIndex - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1179,7 +1179,7 @@ int lua_Font_getLocationAtIndex(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Font_getLocationAtIndex - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1227,7 +1227,7 @@ int lua_Font_getLocationAtIndex(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Font_getLocationAtIndex - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1264,7 +1264,7 @@ int lua_Font_getRefCount(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Font_getRefCount - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1301,7 +1301,7 @@ int lua_Font_getSize(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Font_getSize - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1347,7 +1347,7 @@ int lua_Font_getSpriteBatch(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Font_getSpriteBatch - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1420,7 +1420,7 @@ int lua_Font_measureText(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Font_measureText - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1456,7 +1456,7 @@ int lua_Font_measureText(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Font_measureText - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1496,7 +1496,7 @@ int lua_Font_measureText(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Font_measureText - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1540,7 +1540,7 @@ int lua_Font_measureText(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Font_measureText - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1574,7 +1574,7 @@ int lua_Font_release(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Font_release - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1622,7 +1622,7 @@ int lua_Font_static_create(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Font_static_create - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1656,7 +1656,7 @@ int lua_Font_static_create(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Font_static_create - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1706,7 +1706,7 @@ int lua_Font_static_create(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Font_static_create - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1745,7 +1745,7 @@ int lua_Font_static_getJustify(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Font_static_getJustify - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;

+ 1 - 1
gameplay/src/lua/lua_FontGlyph.cpp

@@ -63,7 +63,7 @@ int lua_FontGlyph__gc(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_FontGlyph__gc - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;

+ 3 - 3
gameplay/src/lua/lua_FontText.cpp

@@ -61,7 +61,7 @@ int lua_FontText__gc(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_FontText__gc - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -109,7 +109,7 @@ int lua_FontText__init(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_FontText__init - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -146,7 +146,7 @@ int lua_FontText_getText(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_FontText_getText - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;

File diff ditekan karena terlalu besar
+ 125 - 109
gameplay/src/lua/lua_Form.cpp


+ 16 - 16
gameplay/src/lua/lua_FrameBuffer.cpp

@@ -73,7 +73,7 @@ int lua_FrameBuffer__gc(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_FrameBuffer__gc - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -107,7 +107,7 @@ int lua_FrameBuffer_addRef(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_FrameBuffer_addRef - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -141,7 +141,7 @@ int lua_FrameBuffer_bind(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_FrameBuffer_bind - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -187,7 +187,7 @@ int lua_FrameBuffer_getDepthStencilTarget(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_FrameBuffer_getDepthStencilTarget - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -224,7 +224,7 @@ int lua_FrameBuffer_getHeight(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_FrameBuffer_getHeight - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -261,7 +261,7 @@ int lua_FrameBuffer_getId(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_FrameBuffer_getId - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -298,7 +298,7 @@ int lua_FrameBuffer_getRefCount(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_FrameBuffer_getRefCount - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -344,7 +344,7 @@ int lua_FrameBuffer_getRenderTarget(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_FrameBuffer_getRenderTarget - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -376,7 +376,7 @@ int lua_FrameBuffer_getRenderTarget(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_FrameBuffer_getRenderTarget - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -413,7 +413,7 @@ int lua_FrameBuffer_getWidth(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_FrameBuffer_getWidth - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -447,7 +447,7 @@ int lua_FrameBuffer_release(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_FrameBuffer_release - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -485,7 +485,7 @@ int lua_FrameBuffer_setDepthStencilTarget(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_FrameBuffer_setDepthStencilTarget - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -523,7 +523,7 @@ int lua_FrameBuffer_setRenderTarget(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_FrameBuffer_setRenderTarget - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -547,7 +547,7 @@ int lua_FrameBuffer_setRenderTarget(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_FrameBuffer_setRenderTarget - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -628,7 +628,7 @@ int lua_FrameBuffer_static_create(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_FrameBuffer_static_create - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -676,7 +676,7 @@ int lua_FrameBuffer_static_getFrameBuffer(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_FrameBuffer_static_getFrameBuffer - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;

+ 12 - 12
gameplay/src/lua/lua_Frustum.cpp

@@ -65,7 +65,7 @@ int lua_Frustum__gc(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Frustum__gc - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -153,7 +153,7 @@ int lua_Frustum__init(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Frustum__init - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -199,7 +199,7 @@ int lua_Frustum_getBottom(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Frustum_getBottom - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -237,7 +237,7 @@ int lua_Frustum_getCorners(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Frustum_getCorners - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -283,7 +283,7 @@ int lua_Frustum_getFar(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Frustum_getFar - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -329,7 +329,7 @@ int lua_Frustum_getLeft(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Frustum_getLeft - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -367,7 +367,7 @@ int lua_Frustum_getMatrix(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Frustum_getMatrix - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -413,7 +413,7 @@ int lua_Frustum_getNear(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Frustum_getNear - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -459,7 +459,7 @@ int lua_Frustum_getRight(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Frustum_getRight - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -505,7 +505,7 @@ int lua_Frustum_getTop(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Frustum_getTop - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -602,7 +602,7 @@ int lua_Frustum_intersects(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Frustum_intersects - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -651,7 +651,7 @@ int lua_Frustum_set(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Frustum_set - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;

+ 75 - 31
gameplay/src/lua/lua_Game.cpp

@@ -8,6 +8,7 @@
 #include "Platform.h"
 #include "Platform.h"
 #include "RenderState.h"
 #include "RenderState.h"
 #include "SceneLoader.h"
 #include "SceneLoader.h"
+#include "ScriptListener.h"
 #include "lua_GameClearFlags.h"
 #include "lua_GameClearFlags.h"
 #include "lua_GameState.h"
 #include "lua_GameState.h"
 #include "lua_GamepadGamepadEvent.h"
 #include "lua_GamepadGamepadEvent.h"
@@ -49,6 +50,7 @@ void luaRegister_Game()
         {"pause", lua_Game_pause},
         {"pause", lua_Game_pause},
         {"resume", lua_Game_resume},
         {"resume", lua_Game_resume},
         {"run", lua_Game_run},
         {"run", lua_Game_run},
+        {"schedule", lua_Game_schedule},
         {"setMultiTouch", lua_Game_setMultiTouch},
         {"setMultiTouch", lua_Game_setMultiTouch},
         {"setViewport", lua_Game_setViewport},
         {"setViewport", lua_Game_setViewport},
         {"touchEvent", lua_Game_touchEvent},
         {"touchEvent", lua_Game_touchEvent},
@@ -100,7 +102,7 @@ int lua_Game__gc(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Game__gc - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -150,7 +152,7 @@ int lua_Game_clear(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Game_clear - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -188,7 +190,7 @@ int lua_Game_displayKeyboard(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Game_displayKeyboard - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -222,7 +224,7 @@ int lua_Game_exit(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Game_exit - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -256,7 +258,7 @@ int lua_Game_frame(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Game_frame - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -298,7 +300,7 @@ int lua_Game_gamepadEvent(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Game_gamepadEvent - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -340,7 +342,7 @@ int lua_Game_getAccelerometerValues(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Game_getAccelerometerValues - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -386,7 +388,7 @@ int lua_Game_getAnimationController(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Game_getAnimationController - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -432,7 +434,7 @@ int lua_Game_getAudioController(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Game_getAudioController - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -478,7 +480,7 @@ int lua_Game_getAudioListener(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Game_getAudioListener - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -524,7 +526,7 @@ int lua_Game_getConfig(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Game_getConfig - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -561,7 +563,7 @@ int lua_Game_getFrameRate(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Game_getFrameRate - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -607,7 +609,7 @@ int lua_Game_getGamepad(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Game_getGamepad - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -639,7 +641,7 @@ int lua_Game_getGamepad(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Game_getGamepad - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -676,7 +678,7 @@ int lua_Game_getGamepadCount(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Game_getGamepadCount - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -713,7 +715,7 @@ int lua_Game_getHeight(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Game_getHeight - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -759,7 +761,7 @@ int lua_Game_getPhysicsController(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Game_getPhysicsController - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -796,7 +798,7 @@ int lua_Game_getState(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Game_getState - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -842,7 +844,7 @@ int lua_Game_getViewport(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Game_getViewport - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -879,7 +881,7 @@ int lua_Game_getWidth(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Game_getWidth - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -916,7 +918,7 @@ int lua_Game_isMultiTouch(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Game_isMultiTouch - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -958,7 +960,7 @@ int lua_Game_keyEvent(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Game_keyEvent - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -992,7 +994,7 @@ int lua_Game_menu(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Game_menu - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1045,7 +1047,7 @@ int lua_Game_mouseEvent(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Game_mouseEvent - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1079,7 +1081,7 @@ int lua_Game_pause(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Game_pause - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1113,7 +1115,7 @@ int lua_Game_resume(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Game_resume - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1150,7 +1152,7 @@ int lua_Game_run(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Game_run - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1165,6 +1167,48 @@ int lua_Game_run(lua_State* state)
     return 0;
     return 0;
 }
 }
 
 
+int lua_Game_schedule(lua_State* state)
+{
+    // Get the number of parameters.
+    int paramCount = lua_gettop(state);
+
+    // Attempt to match the parameters to a valid binding.
+    switch (paramCount)
+    {
+        case 3:
+        {
+            if ((lua_type(state, 1) == LUA_TUSERDATA) &&
+                lua_type(state, 2) == LUA_TNUMBER &&
+                (lua_type(state, 3) == LUA_TSTRING || lua_type(state, 3) == LUA_TNIL))
+            {
+                // Get parameter 1 off the stack.
+                float param1 = (float)luaL_checknumber(state, 2);
+
+                // Get parameter 2 off the stack.
+                const char* param2 = ScriptController::getInstance()->getString(3, false);
+
+                Game* instance = getInstance(state);
+                instance->schedule(param1, param2);
+                
+                return 0;
+            }
+            else
+            {
+                lua_pushstring(state, "lua_Game_schedule - Failed to match the given parameters to a valid function signature.");
+                lua_error(state);
+            }
+            break;
+        }
+        default:
+        {
+            lua_pushstring(state, "Invalid number of parameters (expected 3).");
+            lua_error(state);
+            break;
+        }
+    }
+    return 0;
+}
+
 int lua_Game_setMultiTouch(lua_State* state)
 int lua_Game_setMultiTouch(lua_State* state)
 {
 {
     // Get the number of parameters.
     // Get the number of parameters.
@@ -1188,7 +1232,7 @@ int lua_Game_setMultiTouch(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Game_setMultiTouch - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1226,7 +1270,7 @@ int lua_Game_setViewport(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Game_setViewport - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1383,7 +1427,7 @@ int lua_Game_static_setVsync(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Game_static_setVsync - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1433,7 +1477,7 @@ int lua_Game_touchEvent(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Game_touchEvent - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;

+ 1 - 0
gameplay/src/lua/lua_Game.h

@@ -31,6 +31,7 @@ int lua_Game_mouseEvent(lua_State* state);
 int lua_Game_pause(lua_State* state);
 int lua_Game_pause(lua_State* state);
 int lua_Game_resume(lua_State* state);
 int lua_Game_resume(lua_State* state);
 int lua_Game_run(lua_State* state);
 int lua_Game_run(lua_State* state);
+int lua_Game_schedule(lua_State* state);
 int lua_Game_setMultiTouch(lua_State* state);
 int lua_Game_setMultiTouch(lua_State* state);
 int lua_Game_setViewport(lua_State* state);
 int lua_Game_setViewport(lua_State* state);
 int lua_Game_static_getAbsoluteTime(lua_State* state);
 int lua_Game_static_getAbsoluteTime(lua_State* state);

+ 10 - 10
gameplay/src/lua/lua_Gamepad.cpp

@@ -59,7 +59,7 @@ int lua_Gamepad_draw(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Gamepad_draw - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -96,7 +96,7 @@ int lua_Gamepad_getButtonCount(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Gamepad_getButtonCount - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -137,7 +137,7 @@ int lua_Gamepad_getButtonState(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Gamepad_getButtonState - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -183,7 +183,7 @@ int lua_Gamepad_getForm(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Gamepad_getForm - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -220,7 +220,7 @@ int lua_Gamepad_getId(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Gamepad_getId - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -257,7 +257,7 @@ int lua_Gamepad_getJoystickCount(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Gamepad_getJoystickCount - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -307,7 +307,7 @@ int lua_Gamepad_getJoystickValue(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Gamepad_getJoystickValue - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -348,7 +348,7 @@ int lua_Gamepad_isJoystickActive(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Gamepad_isJoystickActive - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -385,7 +385,7 @@ int lua_Gamepad_isVirtual(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Gamepad_isVirtual - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -423,7 +423,7 @@ int lua_Gamepad_update(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Gamepad_update - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;

+ 6 - 1
gameplay/src/lua/lua_Global.cpp

@@ -13,6 +13,7 @@ void luaRegister_lua_Global()
     sc->registerFunction("printError", lua__printError);
     sc->registerFunction("printError", lua__printError);
 
 
     std::map<std::string, std::vector<std::string> > hierarchy;
     std::map<std::string, std::vector<std::string> > hierarchy;
+    hierarchy["AnimationClip::Listener"].push_back("classgameplay_1_1_script_listener");
     hierarchy["AnimationTarget"].push_back("Button");
     hierarchy["AnimationTarget"].push_back("Button");
     hierarchy["AnimationTarget"].push_back("CheckBox");
     hierarchy["AnimationTarget"].push_back("CheckBox");
     hierarchy["AnimationTarget"].push_back("Container");
     hierarchy["AnimationTarget"].push_back("Container");
@@ -40,6 +41,7 @@ void luaRegister_lua_Global()
     hierarchy["Control"].push_back("RadioButton");
     hierarchy["Control"].push_back("RadioButton");
     hierarchy["Control"].push_back("Slider");
     hierarchy["Control"].push_back("Slider");
     hierarchy["Control"].push_back("TextBox");
     hierarchy["Control"].push_back("TextBox");
+    hierarchy["Control::Listener"].push_back("classgameplay_1_1_script_listener");
     hierarchy["Label"].push_back("Button");
     hierarchy["Label"].push_back("Button");
     hierarchy["Label"].push_back("CheckBox");
     hierarchy["Label"].push_back("CheckBox");
     hierarchy["Label"].push_back("RadioButton");
     hierarchy["Label"].push_back("RadioButton");
@@ -52,11 +54,13 @@ void luaRegister_lua_Global()
     hierarchy["PhysicsCollisionObject"].push_back("PhysicsCharacter");
     hierarchy["PhysicsCollisionObject"].push_back("PhysicsCharacter");
     hierarchy["PhysicsCollisionObject"].push_back("PhysicsGhostObject");
     hierarchy["PhysicsCollisionObject"].push_back("PhysicsGhostObject");
     hierarchy["PhysicsCollisionObject"].push_back("PhysicsRigidBody");
     hierarchy["PhysicsCollisionObject"].push_back("PhysicsRigidBody");
+    hierarchy["PhysicsCollisionObject::CollisionListener"].push_back("classgameplay_1_1_script_listener");
     hierarchy["PhysicsConstraint"].push_back("PhysicsFixedConstraint");
     hierarchy["PhysicsConstraint"].push_back("PhysicsFixedConstraint");
     hierarchy["PhysicsConstraint"].push_back("PhysicsGenericConstraint");
     hierarchy["PhysicsConstraint"].push_back("PhysicsGenericConstraint");
     hierarchy["PhysicsConstraint"].push_back("PhysicsHingeConstraint");
     hierarchy["PhysicsConstraint"].push_back("PhysicsHingeConstraint");
     hierarchy["PhysicsConstraint"].push_back("PhysicsSocketConstraint");
     hierarchy["PhysicsConstraint"].push_back("PhysicsSocketConstraint");
     hierarchy["PhysicsConstraint"].push_back("PhysicsSpringConstraint");
     hierarchy["PhysicsConstraint"].push_back("PhysicsSpringConstraint");
+    hierarchy["PhysicsController::Listener"].push_back("classgameplay_1_1_script_listener");
     hierarchy["PhysicsGenericConstraint"].push_back("PhysicsFixedConstraint");
     hierarchy["PhysicsGenericConstraint"].push_back("PhysicsFixedConstraint");
     hierarchy["PhysicsGenericConstraint"].push_back("PhysicsSpringConstraint");
     hierarchy["PhysicsGenericConstraint"].push_back("PhysicsSpringConstraint");
     hierarchy["PhysicsGhostObject"].push_back("PhysicsCharacter");
     hierarchy["PhysicsGhostObject"].push_back("PhysicsCharacter");
@@ -122,6 +126,7 @@ void luaRegister_lua_Global()
     hierarchy["Transform::Listener"].push_back("PhysicsCharacter");
     hierarchy["Transform::Listener"].push_back("PhysicsCharacter");
     hierarchy["Transform::Listener"].push_back("PhysicsGhostObject");
     hierarchy["Transform::Listener"].push_back("PhysicsGhostObject");
     hierarchy["Transform::Listener"].push_back("PhysicsRigidBody");
     hierarchy["Transform::Listener"].push_back("PhysicsRigidBody");
+    hierarchy["Transform::Listener"].push_back("classgameplay_1_1_script_listener");
     sc->setGlobalHierarchy(hierarchy);
     sc->setGlobalHierarchy(hierarchy);
 
 
     // Register enumeration AnimationClip::Listener::EventType.
     // Register enumeration AnimationClip::Listener::EventType.
@@ -825,7 +830,7 @@ int lua__printError(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua__printError - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;

+ 8 - 8
gameplay/src/lua/lua_Image.cpp

@@ -67,7 +67,7 @@ int lua_Image__gc(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Image__gc - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -101,7 +101,7 @@ int lua_Image_addRef(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Image_addRef - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -138,7 +138,7 @@ int lua_Image_getFormat(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Image_getFormat - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -175,7 +175,7 @@ int lua_Image_getHeight(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Image_getHeight - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -212,7 +212,7 @@ int lua_Image_getRefCount(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Image_getRefCount - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -249,7 +249,7 @@ int lua_Image_getWidth(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Image_getWidth - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -283,7 +283,7 @@ int lua_Image_release(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Image_release - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -331,7 +331,7 @@ int lua_Image_static_create(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Image_static_create - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;

File diff ditekan karena terlalu besar
+ 144 - 106
gameplay/src/lua/lua_Joint.cpp


+ 124 - 108
gameplay/src/lua/lua_Joystick.cpp

@@ -9,6 +9,7 @@
 #include "Joystick.h"
 #include "Joystick.h"
 #include "Node.h"
 #include "Node.h"
 #include "Ref.h"
 #include "Ref.h"
+#include "ScriptListener.h"
 #include "lua_ControlAlignment.h"
 #include "lua_ControlAlignment.h"
 #include "lua_ControlListenerEventType.h"
 #include "lua_ControlListenerEventType.h"
 #include "lua_ControlState.h"
 #include "lua_ControlState.h"
@@ -156,7 +157,7 @@ int lua_Joystick__gc(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Joystick__gc - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -196,9 +197,24 @@ int lua_Joystick_addListener(lua_State* state)
                 
                 
                 return 0;
                 return 0;
             }
             }
+            else if ((lua_type(state, 1) == LUA_TUSERDATA) &&
+                (lua_type(state, 2) == LUA_TSTRING || lua_type(state, 2) == LUA_TNIL) &&
+                lua_type(state, 3) == LUA_TNUMBER)
+            {
+                // Get parameter 1 off the stack.
+                const char* param1 = ScriptController::getInstance()->getString(2, false);
+
+                // Get parameter 2 off the stack.
+                int param2 = (int)luaL_checkint(state, 3);
+
+                Joystick* instance = getInstance(state);
+                instance->Control::addListener(param1, param2);
+                
+                return 0;
+            }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Joystick_addListener - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -232,7 +248,7 @@ int lua_Joystick_addRef(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Joystick_addRef - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -313,7 +329,7 @@ int lua_Joystick_createAnimation(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Joystick_createAnimation - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -365,7 +381,7 @@ int lua_Joystick_createAnimation(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Joystick_createAnimation - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -425,7 +441,7 @@ int lua_Joystick_createAnimation(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Joystick_createAnimation - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -495,7 +511,7 @@ int lua_Joystick_createAnimationFromBy(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Joystick_createAnimationFromBy - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -565,7 +581,7 @@ int lua_Joystick_createAnimationFromTo(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Joystick_createAnimationFromTo - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -599,7 +615,7 @@ int lua_Joystick_destroyAnimation(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Joystick_destroyAnimation - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -619,7 +635,7 @@ int lua_Joystick_destroyAnimation(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Joystick_destroyAnimation - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -653,7 +669,7 @@ int lua_Joystick_disable(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Joystick_disable - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -687,7 +703,7 @@ int lua_Joystick_enable(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Joystick_enable - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -724,7 +740,7 @@ int lua_Joystick_getAlignment(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Joystick_getAlignment - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -770,7 +786,7 @@ int lua_Joystick_getAnimation(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Joystick_getAnimation - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -802,7 +818,7 @@ int lua_Joystick_getAnimation(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Joystick_getAnimation - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -843,7 +859,7 @@ int lua_Joystick_getAnimationPropertyComponentCount(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Joystick_getAnimationPropertyComponentCount - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -885,7 +901,7 @@ int lua_Joystick_getAnimationPropertyValue(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Joystick_getAnimationPropertyValue - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -922,7 +938,7 @@ int lua_Joystick_getAutoHeight(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Joystick_getAutoHeight - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -959,7 +975,7 @@ int lua_Joystick_getAutoWidth(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Joystick_getAutoWidth - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1005,7 +1021,7 @@ int lua_Joystick_getBorder(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Joystick_getBorder - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1037,7 +1053,7 @@ int lua_Joystick_getBorder(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Joystick_getBorder - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1083,7 +1099,7 @@ int lua_Joystick_getBounds(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Joystick_getBounds - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1129,7 +1145,7 @@ int lua_Joystick_getClip(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Joystick_getClip - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1175,7 +1191,7 @@ int lua_Joystick_getClipBounds(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Joystick_getClipBounds - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1212,7 +1228,7 @@ int lua_Joystick_getConsumeInputEvents(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Joystick_getConsumeInputEvents - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1262,7 +1278,7 @@ int lua_Joystick_getCursorColor(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Joystick_getCursorColor - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1312,7 +1328,7 @@ int lua_Joystick_getCursorRegion(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Joystick_getCursorRegion - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1362,7 +1378,7 @@ int lua_Joystick_getCursorUVs(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Joystick_getCursorUVs - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1399,7 +1415,7 @@ int lua_Joystick_getFocusIndex(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Joystick_getFocusIndex - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1445,7 +1461,7 @@ int lua_Joystick_getFont(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Joystick_getFont - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1477,7 +1493,7 @@ int lua_Joystick_getFont(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Joystick_getFont - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1514,7 +1530,7 @@ int lua_Joystick_getFontSize(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Joystick_getFontSize - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1537,7 +1553,7 @@ int lua_Joystick_getFontSize(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Joystick_getFontSize - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1574,7 +1590,7 @@ int lua_Joystick_getHeight(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Joystick_getHeight - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1611,7 +1627,7 @@ int lua_Joystick_getId(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Joystick_getId - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1665,7 +1681,7 @@ int lua_Joystick_getImageColor(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Joystick_getImageColor - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1719,7 +1735,7 @@ int lua_Joystick_getImageRegion(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Joystick_getImageRegion - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1773,7 +1789,7 @@ int lua_Joystick_getImageUVs(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Joystick_getImageUVs - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1819,7 +1835,7 @@ int lua_Joystick_getMargin(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Joystick_getMargin - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1856,7 +1872,7 @@ int lua_Joystick_getOpacity(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Joystick_getOpacity - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1879,7 +1895,7 @@ int lua_Joystick_getOpacity(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Joystick_getOpacity - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1925,7 +1941,7 @@ int lua_Joystick_getPadding(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Joystick_getPadding - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1962,7 +1978,7 @@ int lua_Joystick_getRefCount(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Joystick_getRefCount - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2008,7 +2024,7 @@ int lua_Joystick_getRegion(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Joystick_getRegion - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2054,7 +2070,7 @@ int lua_Joystick_getSkinColor(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Joystick_getSkinColor - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2086,7 +2102,7 @@ int lua_Joystick_getSkinColor(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Joystick_getSkinColor - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2132,7 +2148,7 @@ int lua_Joystick_getSkinRegion(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Joystick_getSkinRegion - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2164,7 +2180,7 @@ int lua_Joystick_getSkinRegion(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Joystick_getSkinRegion - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2201,7 +2217,7 @@ int lua_Joystick_getState(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Joystick_getState - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2247,7 +2263,7 @@ int lua_Joystick_getStyle(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Joystick_getStyle - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2284,7 +2300,7 @@ int lua_Joystick_getTextAlignment(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Joystick_getTextAlignment - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2307,7 +2323,7 @@ int lua_Joystick_getTextAlignment(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Joystick_getTextAlignment - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2353,7 +2369,7 @@ int lua_Joystick_getTextColor(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Joystick_getTextColor - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2385,7 +2401,7 @@ int lua_Joystick_getTextColor(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Joystick_getTextColor - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2422,7 +2438,7 @@ int lua_Joystick_getTextRightToLeft(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Joystick_getTextRightToLeft - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2445,7 +2461,7 @@ int lua_Joystick_getTextRightToLeft(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Joystick_getTextRightToLeft - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2482,7 +2498,7 @@ int lua_Joystick_getType(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Joystick_getType - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2528,7 +2544,7 @@ int lua_Joystick_getValue(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Joystick_getValue - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2565,7 +2581,7 @@ int lua_Joystick_getWidth(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Joystick_getWidth - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2602,7 +2618,7 @@ int lua_Joystick_getX(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Joystick_getX - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2639,7 +2655,7 @@ int lua_Joystick_getY(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Joystick_getY - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2676,7 +2692,7 @@ int lua_Joystick_getZIndex(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Joystick_getZIndex - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2713,7 +2729,7 @@ int lua_Joystick_isAbsolute(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Joystick_isAbsolute - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2750,7 +2766,7 @@ int lua_Joystick_isContainer(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Joystick_isContainer - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2787,7 +2803,7 @@ int lua_Joystick_isEnabled(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Joystick_isEnabled - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2821,7 +2837,7 @@ int lua_Joystick_release(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Joystick_release - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2859,7 +2875,7 @@ int lua_Joystick_setAbsolute(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Joystick_setAbsolute - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2897,7 +2913,7 @@ int lua_Joystick_setAlignment(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Joystick_setAlignment - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2939,7 +2955,7 @@ int lua_Joystick_setAnimationPropertyValue(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Joystick_setAnimationPropertyValue - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2967,7 +2983,7 @@ int lua_Joystick_setAnimationPropertyValue(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Joystick_setAnimationPropertyValue - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -3005,7 +3021,7 @@ int lua_Joystick_setAutoHeight(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Joystick_setAutoHeight - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -3043,7 +3059,7 @@ int lua_Joystick_setAutoWidth(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Joystick_setAutoWidth - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -3093,7 +3109,7 @@ int lua_Joystick_setBorder(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Joystick_setBorder - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -3129,7 +3145,7 @@ int lua_Joystick_setBorder(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Joystick_setBorder - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -3167,7 +3183,7 @@ int lua_Joystick_setBounds(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Joystick_setBounds - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -3205,7 +3221,7 @@ int lua_Joystick_setConsumeInputEvents(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Joystick_setConsumeInputEvents - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -3247,7 +3263,7 @@ int lua_Joystick_setCursorColor(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Joystick_setCursorColor - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -3289,7 +3305,7 @@ int lua_Joystick_setCursorRegion(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Joystick_setCursorRegion - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -3327,7 +3343,7 @@ int lua_Joystick_setFocusIndex(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Joystick_setFocusIndex - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -3365,7 +3381,7 @@ int lua_Joystick_setFont(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Joystick_setFont - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -3389,7 +3405,7 @@ int lua_Joystick_setFont(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Joystick_setFont - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -3427,7 +3443,7 @@ int lua_Joystick_setFontSize(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Joystick_setFontSize - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -3451,7 +3467,7 @@ int lua_Joystick_setFontSize(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Joystick_setFontSize - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -3493,7 +3509,7 @@ int lua_Joystick_setImageColor(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Joystick_setImageColor - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -3521,7 +3537,7 @@ int lua_Joystick_setImageColor(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Joystick_setImageColor - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -3563,7 +3579,7 @@ int lua_Joystick_setImageRegion(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Joystick_setImageRegion - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -3591,7 +3607,7 @@ int lua_Joystick_setImageRegion(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Joystick_setImageRegion - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -3641,7 +3657,7 @@ int lua_Joystick_setMargin(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Joystick_setMargin - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -3679,7 +3695,7 @@ int lua_Joystick_setOpacity(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Joystick_setOpacity - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -3703,7 +3719,7 @@ int lua_Joystick_setOpacity(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Joystick_setOpacity - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -3753,7 +3769,7 @@ int lua_Joystick_setPadding(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Joystick_setPadding - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -3795,7 +3811,7 @@ int lua_Joystick_setPosition(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Joystick_setPosition - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -3833,7 +3849,7 @@ int lua_Joystick_setRegion(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Joystick_setRegion - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -3875,7 +3891,7 @@ int lua_Joystick_setSize(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Joystick_setSize - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -3913,7 +3929,7 @@ int lua_Joystick_setSkinColor(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Joystick_setSkinColor - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -3937,7 +3953,7 @@ int lua_Joystick_setSkinColor(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Joystick_setSkinColor - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -3975,7 +3991,7 @@ int lua_Joystick_setSkinRegion(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Joystick_setSkinRegion - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -3999,7 +4015,7 @@ int lua_Joystick_setSkinRegion(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Joystick_setSkinRegion - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -4037,7 +4053,7 @@ int lua_Joystick_setState(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Joystick_setState - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -4075,7 +4091,7 @@ int lua_Joystick_setStyle(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Joystick_setStyle - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -4113,7 +4129,7 @@ int lua_Joystick_setTextAlignment(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Joystick_setTextAlignment - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -4137,7 +4153,7 @@ int lua_Joystick_setTextAlignment(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Joystick_setTextAlignment - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -4175,7 +4191,7 @@ int lua_Joystick_setTextColor(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Joystick_setTextColor - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -4199,7 +4215,7 @@ int lua_Joystick_setTextColor(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Joystick_setTextColor - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -4237,7 +4253,7 @@ int lua_Joystick_setTextRightToLeft(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Joystick_setTextRightToLeft - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -4261,7 +4277,7 @@ int lua_Joystick_setTextRightToLeft(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Joystick_setTextRightToLeft - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -4299,7 +4315,7 @@ int lua_Joystick_setZIndex(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Joystick_setZIndex - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -4470,7 +4486,7 @@ int lua_Joystick_static_create(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Joystick_static_create - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;

+ 1 - 1
gameplay/src/lua/lua_Keyboard.cpp

@@ -52,7 +52,7 @@ int lua_Keyboard__gc(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Keyboard__gc - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;

+ 121 - 105
gameplay/src/lua/lua_Label.cpp

@@ -9,6 +9,7 @@
 #include "Label.h"
 #include "Label.h"
 #include "Node.h"
 #include "Node.h"
 #include "Ref.h"
 #include "Ref.h"
+#include "ScriptListener.h"
 #include "lua_ControlAlignment.h"
 #include "lua_ControlAlignment.h"
 #include "lua_ControlListenerEventType.h"
 #include "lua_ControlListenerEventType.h"
 #include "lua_ControlState.h"
 #include "lua_ControlState.h"
@@ -153,7 +154,7 @@ int lua_Label__gc(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Label__gc - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -193,9 +194,24 @@ int lua_Label_addListener(lua_State* state)
                 
                 
                 return 0;
                 return 0;
             }
             }
+            else if ((lua_type(state, 1) == LUA_TUSERDATA) &&
+                (lua_type(state, 2) == LUA_TSTRING || lua_type(state, 2) == LUA_TNIL) &&
+                lua_type(state, 3) == LUA_TNUMBER)
+            {
+                // Get parameter 1 off the stack.
+                const char* param1 = ScriptController::getInstance()->getString(2, false);
+
+                // Get parameter 2 off the stack.
+                int param2 = (int)luaL_checkint(state, 3);
+
+                Label* instance = getInstance(state);
+                instance->Control::addListener(param1, param2);
+                
+                return 0;
+            }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Label_addListener - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -229,7 +245,7 @@ int lua_Label_addRef(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Label_addRef - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -310,7 +326,7 @@ int lua_Label_createAnimation(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Label_createAnimation - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -362,7 +378,7 @@ int lua_Label_createAnimation(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Label_createAnimation - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -422,7 +438,7 @@ int lua_Label_createAnimation(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Label_createAnimation - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -492,7 +508,7 @@ int lua_Label_createAnimationFromBy(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Label_createAnimationFromBy - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -562,7 +578,7 @@ int lua_Label_createAnimationFromTo(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Label_createAnimationFromTo - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -596,7 +612,7 @@ int lua_Label_destroyAnimation(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Label_destroyAnimation - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -616,7 +632,7 @@ int lua_Label_destroyAnimation(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Label_destroyAnimation - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -650,7 +666,7 @@ int lua_Label_disable(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Label_disable - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -684,7 +700,7 @@ int lua_Label_enable(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Label_enable - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -721,7 +737,7 @@ int lua_Label_getAlignment(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Label_getAlignment - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -767,7 +783,7 @@ int lua_Label_getAnimation(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Label_getAnimation - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -799,7 +815,7 @@ int lua_Label_getAnimation(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Label_getAnimation - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -840,7 +856,7 @@ int lua_Label_getAnimationPropertyComponentCount(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Label_getAnimationPropertyComponentCount - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -882,7 +898,7 @@ int lua_Label_getAnimationPropertyValue(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Label_getAnimationPropertyValue - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -919,7 +935,7 @@ int lua_Label_getAutoHeight(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Label_getAutoHeight - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -956,7 +972,7 @@ int lua_Label_getAutoWidth(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Label_getAutoWidth - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1002,7 +1018,7 @@ int lua_Label_getBorder(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Label_getBorder - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1034,7 +1050,7 @@ int lua_Label_getBorder(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Label_getBorder - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1080,7 +1096,7 @@ int lua_Label_getBounds(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Label_getBounds - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1126,7 +1142,7 @@ int lua_Label_getClip(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Label_getClip - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1172,7 +1188,7 @@ int lua_Label_getClipBounds(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Label_getClipBounds - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1209,7 +1225,7 @@ int lua_Label_getConsumeInputEvents(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Label_getConsumeInputEvents - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1259,7 +1275,7 @@ int lua_Label_getCursorColor(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Label_getCursorColor - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1309,7 +1325,7 @@ int lua_Label_getCursorRegion(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Label_getCursorRegion - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1359,7 +1375,7 @@ int lua_Label_getCursorUVs(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Label_getCursorUVs - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1396,7 +1412,7 @@ int lua_Label_getFocusIndex(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Label_getFocusIndex - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1442,7 +1458,7 @@ int lua_Label_getFont(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Label_getFont - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1474,7 +1490,7 @@ int lua_Label_getFont(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Label_getFont - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1511,7 +1527,7 @@ int lua_Label_getFontSize(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Label_getFontSize - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1534,7 +1550,7 @@ int lua_Label_getFontSize(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Label_getFontSize - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1571,7 +1587,7 @@ int lua_Label_getHeight(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Label_getHeight - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1608,7 +1624,7 @@ int lua_Label_getId(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Label_getId - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1662,7 +1678,7 @@ int lua_Label_getImageColor(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Label_getImageColor - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1716,7 +1732,7 @@ int lua_Label_getImageRegion(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Label_getImageRegion - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1770,7 +1786,7 @@ int lua_Label_getImageUVs(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Label_getImageUVs - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1816,7 +1832,7 @@ int lua_Label_getMargin(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Label_getMargin - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1853,7 +1869,7 @@ int lua_Label_getOpacity(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Label_getOpacity - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1876,7 +1892,7 @@ int lua_Label_getOpacity(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Label_getOpacity - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1922,7 +1938,7 @@ int lua_Label_getPadding(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Label_getPadding - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1959,7 +1975,7 @@ int lua_Label_getRefCount(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Label_getRefCount - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2005,7 +2021,7 @@ int lua_Label_getSkinColor(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Label_getSkinColor - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2037,7 +2053,7 @@ int lua_Label_getSkinColor(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Label_getSkinColor - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2083,7 +2099,7 @@ int lua_Label_getSkinRegion(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Label_getSkinRegion - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2115,7 +2131,7 @@ int lua_Label_getSkinRegion(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Label_getSkinRegion - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2152,7 +2168,7 @@ int lua_Label_getState(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Label_getState - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2198,7 +2214,7 @@ int lua_Label_getStyle(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Label_getStyle - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2235,7 +2251,7 @@ int lua_Label_getText(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Label_getText - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2272,7 +2288,7 @@ int lua_Label_getTextAlignment(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Label_getTextAlignment - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2295,7 +2311,7 @@ int lua_Label_getTextAlignment(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Label_getTextAlignment - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2341,7 +2357,7 @@ int lua_Label_getTextColor(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Label_getTextColor - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2373,7 +2389,7 @@ int lua_Label_getTextColor(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Label_getTextColor - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2410,7 +2426,7 @@ int lua_Label_getTextRightToLeft(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Label_getTextRightToLeft - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2433,7 +2449,7 @@ int lua_Label_getTextRightToLeft(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Label_getTextRightToLeft - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2470,7 +2486,7 @@ int lua_Label_getType(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Label_getType - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2507,7 +2523,7 @@ int lua_Label_getWidth(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Label_getWidth - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2544,7 +2560,7 @@ int lua_Label_getX(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Label_getX - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2581,7 +2597,7 @@ int lua_Label_getY(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Label_getY - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2618,7 +2634,7 @@ int lua_Label_getZIndex(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Label_getZIndex - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2655,7 +2671,7 @@ int lua_Label_isContainer(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Label_isContainer - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2692,7 +2708,7 @@ int lua_Label_isEnabled(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Label_isEnabled - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2726,7 +2742,7 @@ int lua_Label_release(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Label_release - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2764,7 +2780,7 @@ int lua_Label_setAlignment(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Label_setAlignment - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2806,7 +2822,7 @@ int lua_Label_setAnimationPropertyValue(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Label_setAnimationPropertyValue - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2834,7 +2850,7 @@ int lua_Label_setAnimationPropertyValue(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Label_setAnimationPropertyValue - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2872,7 +2888,7 @@ int lua_Label_setAutoHeight(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Label_setAutoHeight - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2910,7 +2926,7 @@ int lua_Label_setAutoWidth(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Label_setAutoWidth - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2960,7 +2976,7 @@ int lua_Label_setBorder(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Label_setBorder - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2996,7 +3012,7 @@ int lua_Label_setBorder(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Label_setBorder - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -3034,7 +3050,7 @@ int lua_Label_setBounds(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Label_setBounds - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -3072,7 +3088,7 @@ int lua_Label_setConsumeInputEvents(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Label_setConsumeInputEvents - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -3114,7 +3130,7 @@ int lua_Label_setCursorColor(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Label_setCursorColor - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -3156,7 +3172,7 @@ int lua_Label_setCursorRegion(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Label_setCursorRegion - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -3194,7 +3210,7 @@ int lua_Label_setFocusIndex(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Label_setFocusIndex - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -3232,7 +3248,7 @@ int lua_Label_setFont(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Label_setFont - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -3256,7 +3272,7 @@ int lua_Label_setFont(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Label_setFont - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -3294,7 +3310,7 @@ int lua_Label_setFontSize(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Label_setFontSize - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -3318,7 +3334,7 @@ int lua_Label_setFontSize(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Label_setFontSize - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -3360,7 +3376,7 @@ int lua_Label_setImageColor(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Label_setImageColor - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -3388,7 +3404,7 @@ int lua_Label_setImageColor(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Label_setImageColor - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -3430,7 +3446,7 @@ int lua_Label_setImageRegion(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Label_setImageRegion - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -3458,7 +3474,7 @@ int lua_Label_setImageRegion(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Label_setImageRegion - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -3508,7 +3524,7 @@ int lua_Label_setMargin(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Label_setMargin - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -3546,7 +3562,7 @@ int lua_Label_setOpacity(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Label_setOpacity - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -3570,7 +3586,7 @@ int lua_Label_setOpacity(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Label_setOpacity - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -3620,7 +3636,7 @@ int lua_Label_setPadding(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Label_setPadding - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -3662,7 +3678,7 @@ int lua_Label_setPosition(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Label_setPosition - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -3704,7 +3720,7 @@ int lua_Label_setSize(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Label_setSize - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -3742,7 +3758,7 @@ int lua_Label_setSkinColor(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Label_setSkinColor - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -3766,7 +3782,7 @@ int lua_Label_setSkinColor(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Label_setSkinColor - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -3804,7 +3820,7 @@ int lua_Label_setSkinRegion(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Label_setSkinRegion - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -3828,7 +3844,7 @@ int lua_Label_setSkinRegion(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Label_setSkinRegion - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -3866,7 +3882,7 @@ int lua_Label_setState(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Label_setState - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -3904,7 +3920,7 @@ int lua_Label_setStyle(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Label_setStyle - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -3942,7 +3958,7 @@ int lua_Label_setText(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Label_setText - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -3980,7 +3996,7 @@ int lua_Label_setTextAlignment(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Label_setTextAlignment - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -4004,7 +4020,7 @@ int lua_Label_setTextAlignment(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Label_setTextAlignment - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -4042,7 +4058,7 @@ int lua_Label_setTextColor(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Label_setTextColor - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -4066,7 +4082,7 @@ int lua_Label_setTextColor(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Label_setTextColor - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -4104,7 +4120,7 @@ int lua_Label_setTextRightToLeft(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Label_setTextRightToLeft - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -4128,7 +4144,7 @@ int lua_Label_setTextRightToLeft(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Label_setTextRightToLeft - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -4166,7 +4182,7 @@ int lua_Label_setZIndex(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Label_setZIndex - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -4337,7 +4353,7 @@ int lua_Label_static_create(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Label_static_create - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;

+ 5 - 5
gameplay/src/lua/lua_Layout.cpp

@@ -62,7 +62,7 @@ int lua_Layout__gc(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Layout__gc - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -96,7 +96,7 @@ int lua_Layout_addRef(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Layout_addRef - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -133,7 +133,7 @@ int lua_Layout_getRefCount(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Layout_getRefCount - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -170,7 +170,7 @@ int lua_Layout_getType(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Layout_getType - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -204,7 +204,7 @@ int lua_Layout_release(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Layout_release - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;

+ 20 - 20
gameplay/src/lua/lua_Light.cpp

@@ -79,7 +79,7 @@ int lua_Light__gc(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Light__gc - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -113,7 +113,7 @@ int lua_Light_addRef(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Light_addRef - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -159,7 +159,7 @@ int lua_Light_getColor(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Light_getColor - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -196,7 +196,7 @@ int lua_Light_getInnerAngle(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Light_getInnerAngle - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -233,7 +233,7 @@ int lua_Light_getInnerAngleCos(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Light_getInnerAngleCos - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -270,7 +270,7 @@ int lua_Light_getLightType(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Light_getLightType - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -316,7 +316,7 @@ int lua_Light_getNode(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Light_getNode - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -353,7 +353,7 @@ int lua_Light_getOuterAngle(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Light_getOuterAngle - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -390,7 +390,7 @@ int lua_Light_getOuterAngleCos(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Light_getOuterAngleCos - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -427,7 +427,7 @@ int lua_Light_getRange(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Light_getRange - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -464,7 +464,7 @@ int lua_Light_getRangeInverse(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Light_getRangeInverse - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -501,7 +501,7 @@ int lua_Light_getRefCount(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Light_getRefCount - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -535,7 +535,7 @@ int lua_Light_release(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Light_release - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -573,7 +573,7 @@ int lua_Light_setColor(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Light_setColor - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -611,7 +611,7 @@ int lua_Light_setInnerAngle(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Light_setInnerAngle - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -649,7 +649,7 @@ int lua_Light_setOuterAngle(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Light_setOuterAngle - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -687,7 +687,7 @@ int lua_Light_setRange(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Light_setRange - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -735,7 +735,7 @@ int lua_Light_static_createDirectional(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Light_static_createDirectional - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -787,7 +787,7 @@ int lua_Light_static_createPoint(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Light_static_createPoint - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -847,7 +847,7 @@ int lua_Light_static_createSpot(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Light_static_createSpot - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;

+ 16 - 16
gameplay/src/lua/lua_Material.cpp

@@ -79,7 +79,7 @@ int lua_Material__gc(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Material__gc - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -113,7 +113,7 @@ int lua_Material_addRef(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Material_addRef - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -163,7 +163,7 @@ int lua_Material_clone(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Material_clone - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -213,7 +213,7 @@ int lua_Material_getParameter(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Material_getParameter - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -250,7 +250,7 @@ int lua_Material_getRefCount(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Material_getRefCount - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -296,7 +296,7 @@ int lua_Material_getStateBlock(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Material_getStateBlock - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -342,7 +342,7 @@ int lua_Material_getTechnique(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Material_getTechnique - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -397,7 +397,7 @@ int lua_Material_getTechnique(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Material_getTechnique - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -434,7 +434,7 @@ int lua_Material_getTechniqueCount(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Material_getTechniqueCount - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -468,7 +468,7 @@ int lua_Material_release(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Material_release - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -525,7 +525,7 @@ int lua_Material_setParameterAutoBinding(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Material_setParameterAutoBinding - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -563,7 +563,7 @@ int lua_Material_setStateBlock(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Material_setStateBlock - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -612,7 +612,7 @@ int lua_Material_setTechnique(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Material_setTechnique - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -702,7 +702,7 @@ int lua_Material_static_create(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Material_static_create - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -736,7 +736,7 @@ int lua_Material_static_create(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Material_static_create - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -774,7 +774,7 @@ int lua_Material_static_create(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Material_static_create - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;

+ 21 - 21
gameplay/src/lua/lua_MaterialParameter.cpp

@@ -77,7 +77,7 @@ int lua_MaterialParameter__gc(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_MaterialParameter__gc - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -111,7 +111,7 @@ int lua_MaterialParameter_addRef(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_MaterialParameter_addRef - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -153,7 +153,7 @@ int lua_MaterialParameter_bindValue(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_MaterialParameter_bindValue - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -234,7 +234,7 @@ int lua_MaterialParameter_createAnimation(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_MaterialParameter_createAnimation - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -286,7 +286,7 @@ int lua_MaterialParameter_createAnimation(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_MaterialParameter_createAnimation - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -346,7 +346,7 @@ int lua_MaterialParameter_createAnimation(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_MaterialParameter_createAnimation - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -416,7 +416,7 @@ int lua_MaterialParameter_createAnimationFromBy(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_MaterialParameter_createAnimationFromBy - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -486,7 +486,7 @@ int lua_MaterialParameter_createAnimationFromTo(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_MaterialParameter_createAnimationFromTo - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -520,7 +520,7 @@ int lua_MaterialParameter_destroyAnimation(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_MaterialParameter_destroyAnimation - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -540,7 +540,7 @@ int lua_MaterialParameter_destroyAnimation(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_MaterialParameter_destroyAnimation - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -586,7 +586,7 @@ int lua_MaterialParameter_getAnimation(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_MaterialParameter_getAnimation - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -618,7 +618,7 @@ int lua_MaterialParameter_getAnimation(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_MaterialParameter_getAnimation - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -659,7 +659,7 @@ int lua_MaterialParameter_getAnimationPropertyComponentCount(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_MaterialParameter_getAnimationPropertyComponentCount - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -701,7 +701,7 @@ int lua_MaterialParameter_getAnimationPropertyValue(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_MaterialParameter_getAnimationPropertyValue - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -738,7 +738,7 @@ int lua_MaterialParameter_getName(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_MaterialParameter_getName - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -775,7 +775,7 @@ int lua_MaterialParameter_getRefCount(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_MaterialParameter_getRefCount - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -809,7 +809,7 @@ int lua_MaterialParameter_release(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_MaterialParameter_release - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -851,7 +851,7 @@ int lua_MaterialParameter_setAnimationPropertyValue(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_MaterialParameter_setAnimationPropertyValue - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -879,7 +879,7 @@ int lua_MaterialParameter_setAnimationPropertyValue(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_MaterialParameter_setAnimationPropertyValue - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1049,7 +1049,7 @@ int lua_MaterialParameter_setValue(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_MaterialParameter_setValue - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1175,7 +1175,7 @@ int lua_MaterialParameter_setValue(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_MaterialParameter_setValue - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;

+ 1 - 1
gameplay/src/lua/lua_MathUtil.cpp

@@ -52,7 +52,7 @@ int lua_MathUtil__gc(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_MathUtil__gc - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;

+ 69 - 69
gameplay/src/lua/lua_Matrix.cpp

@@ -103,7 +103,7 @@ int lua_Matrix__gc(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Matrix__gc - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -191,7 +191,7 @@ int lua_Matrix__init(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Matrix__init - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -281,7 +281,7 @@ int lua_Matrix__init(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Matrix__init - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -330,7 +330,7 @@ int lua_Matrix_add(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Matrix_add - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -354,7 +354,7 @@ int lua_Matrix_add(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Matrix_add - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -403,7 +403,7 @@ int lua_Matrix_decompose(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Matrix_decompose - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -440,7 +440,7 @@ int lua_Matrix_determinant(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Matrix_determinant - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -478,7 +478,7 @@ int lua_Matrix_getBackVector(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Matrix_getBackVector - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -516,7 +516,7 @@ int lua_Matrix_getDownVector(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Matrix_getDownVector - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -554,7 +554,7 @@ int lua_Matrix_getForwardVector(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Matrix_getForwardVector - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -592,7 +592,7 @@ int lua_Matrix_getLeftVector(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Matrix_getLeftVector - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -630,7 +630,7 @@ int lua_Matrix_getRightVector(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Matrix_getRightVector - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -671,7 +671,7 @@ int lua_Matrix_getRotation(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Matrix_getRotation - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -709,7 +709,7 @@ int lua_Matrix_getScale(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Matrix_getScale - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -747,7 +747,7 @@ int lua_Matrix_getTranslation(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Matrix_getTranslation - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -785,7 +785,7 @@ int lua_Matrix_getUpVector(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Matrix_getUpVector - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -822,7 +822,7 @@ int lua_Matrix_invert(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Matrix_invert - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -845,7 +845,7 @@ int lua_Matrix_invert(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Matrix_invert - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -882,7 +882,7 @@ int lua_Matrix_isIdentity(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Matrix_isIdentity - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -959,7 +959,7 @@ int lua_Matrix_multiply(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Matrix_multiply - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -983,7 +983,7 @@ int lua_Matrix_multiply(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Matrix_multiply - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1017,7 +1017,7 @@ int lua_Matrix_negate(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Matrix_negate - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1037,7 +1037,7 @@ int lua_Matrix_negate(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Matrix_negate - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1075,7 +1075,7 @@ int lua_Matrix_rotate(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Matrix_rotate - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1114,7 +1114,7 @@ int lua_Matrix_rotate(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Matrix_rotate - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1142,7 +1142,7 @@ int lua_Matrix_rotate(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Matrix_rotate - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1180,7 +1180,7 @@ int lua_Matrix_rotateX(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Matrix_rotateX - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1204,7 +1204,7 @@ int lua_Matrix_rotateX(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Matrix_rotateX - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1242,7 +1242,7 @@ int lua_Matrix_rotateY(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Matrix_rotateY - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1266,7 +1266,7 @@ int lua_Matrix_rotateY(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Matrix_rotateY - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1304,7 +1304,7 @@ int lua_Matrix_rotateZ(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Matrix_rotateZ - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1328,7 +1328,7 @@ int lua_Matrix_rotateZ(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Matrix_rotateZ - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1377,7 +1377,7 @@ int lua_Matrix_scale(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Matrix_scale - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1416,7 +1416,7 @@ int lua_Matrix_scale(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Matrix_scale - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1444,7 +1444,7 @@ int lua_Matrix_scale(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Matrix_scale - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1476,7 +1476,7 @@ int lua_Matrix_scale(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Matrix_scale - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1525,7 +1525,7 @@ int lua_Matrix_set(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Matrix_set - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1605,7 +1605,7 @@ int lua_Matrix_set(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Matrix_set - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1639,7 +1639,7 @@ int lua_Matrix_setIdentity(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Matrix_setIdentity - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1673,7 +1673,7 @@ int lua_Matrix_setZero(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Matrix_setZero - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1717,7 +1717,7 @@ int lua_Matrix_static_add(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Matrix_static_add - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1765,7 +1765,7 @@ int lua_Matrix_static_createLookAt(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Matrix_static_createLookAt - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1819,7 +1819,7 @@ int lua_Matrix_static_createLookAt(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Matrix_static_createLookAt - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1871,7 +1871,7 @@ int lua_Matrix_static_createOrthographic(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Matrix_static_createOrthographic - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1931,7 +1931,7 @@ int lua_Matrix_static_createOrthographicOffCenter(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Matrix_static_createOrthographicOffCenter - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1983,7 +1983,7 @@ int lua_Matrix_static_createPerspective(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Matrix_static_createPerspective - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2023,7 +2023,7 @@ int lua_Matrix_static_createRotation(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Matrix_static_createRotation - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2049,7 +2049,7 @@ int lua_Matrix_static_createRotation(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Matrix_static_createRotation - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2089,7 +2089,7 @@ int lua_Matrix_static_createRotationX(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Matrix_static_createRotationX - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2129,7 +2129,7 @@ int lua_Matrix_static_createRotationY(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Matrix_static_createRotationY - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2169,7 +2169,7 @@ int lua_Matrix_static_createRotationZ(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Matrix_static_createRotationZ - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2209,7 +2209,7 @@ int lua_Matrix_static_createScale(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Matrix_static_createScale - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2239,7 +2239,7 @@ int lua_Matrix_static_createScale(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Matrix_static_createScale - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2279,7 +2279,7 @@ int lua_Matrix_static_createTranslation(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Matrix_static_createTranslation - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2309,7 +2309,7 @@ int lua_Matrix_static_createTranslation(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Matrix_static_createTranslation - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2407,7 +2407,7 @@ int lua_Matrix_static_multiply(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Matrix_static_multiply - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2451,7 +2451,7 @@ int lua_Matrix_static_subtract(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Matrix_static_subtract - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2526,7 +2526,7 @@ int lua_Matrix_subtract(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Matrix_subtract - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2564,7 +2564,7 @@ int lua_Matrix_transformPoint(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Matrix_transformPoint - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2588,7 +2588,7 @@ int lua_Matrix_transformPoint(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Matrix_transformPoint - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2637,7 +2637,7 @@ int lua_Matrix_transformVector(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Matrix_transformVector - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2676,7 +2676,7 @@ int lua_Matrix_transformVector(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Matrix_transformVector - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2712,7 +2712,7 @@ int lua_Matrix_transformVector(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Matrix_transformVector - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2750,7 +2750,7 @@ int lua_Matrix_translate(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Matrix_translate - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2774,7 +2774,7 @@ int lua_Matrix_translate(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Matrix_translate - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2802,7 +2802,7 @@ int lua_Matrix_translate(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Matrix_translate - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2834,7 +2834,7 @@ int lua_Matrix_translate(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Matrix_translate - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2868,7 +2868,7 @@ int lua_Matrix_transpose(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Matrix_transpose - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2888,7 +2888,7 @@ int lua_Matrix_transpose(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Matrix_transpose - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;

+ 28 - 28
gameplay/src/lua/lua_Mesh.cpp

@@ -88,7 +88,7 @@ int lua_Mesh__gc(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Mesh__gc - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -146,7 +146,7 @@ int lua_Mesh_addPart(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Mesh_addPart - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -190,7 +190,7 @@ int lua_Mesh_addPart(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Mesh_addPart - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -224,7 +224,7 @@ int lua_Mesh_addRef(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Mesh_addRef - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -270,7 +270,7 @@ int lua_Mesh_getBoundingBox(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Mesh_getBoundingBox - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -316,7 +316,7 @@ int lua_Mesh_getBoundingSphere(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Mesh_getBoundingSphere - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -366,7 +366,7 @@ int lua_Mesh_getPart(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Mesh_getPart - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -403,7 +403,7 @@ int lua_Mesh_getPartCount(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Mesh_getPartCount - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -440,7 +440,7 @@ int lua_Mesh_getPrimitiveType(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Mesh_getPrimitiveType - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -477,7 +477,7 @@ int lua_Mesh_getRefCount(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Mesh_getRefCount - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -514,7 +514,7 @@ int lua_Mesh_getUrl(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Mesh_getUrl - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -560,7 +560,7 @@ int lua_Mesh_getVertexBuffer(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Mesh_getVertexBuffer - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -597,7 +597,7 @@ int lua_Mesh_getVertexCount(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Mesh_getVertexCount - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -643,7 +643,7 @@ int lua_Mesh_getVertexFormat(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Mesh_getVertexFormat - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -680,7 +680,7 @@ int lua_Mesh_getVertexSize(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Mesh_getVertexSize - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -717,7 +717,7 @@ int lua_Mesh_isDynamic(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Mesh_isDynamic - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -751,7 +751,7 @@ int lua_Mesh_release(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Mesh_release - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -789,7 +789,7 @@ int lua_Mesh_setBoundingBox(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Mesh_setBoundingBox - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -827,7 +827,7 @@ int lua_Mesh_setBoundingSphere(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Mesh_setBoundingSphere - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -865,7 +865,7 @@ int lua_Mesh_setPrimitiveType(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Mesh_setPrimitiveType - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -903,7 +903,7 @@ int lua_Mesh_setVertexData(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Mesh_setVertexData - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -927,7 +927,7 @@ int lua_Mesh_setVertexData(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Mesh_setVertexData - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -955,7 +955,7 @@ int lua_Mesh_setVertexData(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Mesh_setVertexData - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1003,7 +1003,7 @@ int lua_Mesh_static_createBoundingBox(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Mesh_static_createBoundingBox - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1055,7 +1055,7 @@ int lua_Mesh_static_createLines(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Mesh_static_createLines - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1107,7 +1107,7 @@ int lua_Mesh_static_createMesh(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Mesh_static_createMesh - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1145,7 +1145,7 @@ int lua_Mesh_static_createMesh(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Mesh_static_createMesh - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1238,7 +1238,7 @@ int lua_Mesh_static_createQuad(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Mesh_static_createQuad - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;

+ 10 - 10
gameplay/src/lua/lua_MeshBatch.cpp

@@ -64,7 +64,7 @@ int lua_MeshBatch__gc(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_MeshBatch__gc - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -98,7 +98,7 @@ int lua_MeshBatch_begin(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_MeshBatch_begin - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -132,7 +132,7 @@ int lua_MeshBatch_draw(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_MeshBatch_draw - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -166,7 +166,7 @@ int lua_MeshBatch_finish(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_MeshBatch_finish - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -203,7 +203,7 @@ int lua_MeshBatch_getCapacity(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_MeshBatch_getCapacity - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -249,7 +249,7 @@ int lua_MeshBatch_getMaterial(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_MeshBatch_getMaterial - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -287,7 +287,7 @@ int lua_MeshBatch_setCapacity(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_MeshBatch_setCapacity - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -380,7 +380,7 @@ int lua_MeshBatch_static_create(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_MeshBatch_static_create - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -463,7 +463,7 @@ int lua_MeshBatch_static_create(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_MeshBatch_static_create - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -554,7 +554,7 @@ int lua_MeshBatch_static_create(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_MeshBatch_static_create - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;

+ 7 - 7
gameplay/src/lua/lua_MeshPart.cpp

@@ -61,7 +61,7 @@ int lua_MeshPart__gc(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_MeshPart__gc - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -107,7 +107,7 @@ int lua_MeshPart_getIndexBuffer(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_MeshPart_getIndexBuffer - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -144,7 +144,7 @@ int lua_MeshPart_getIndexCount(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_MeshPart_getIndexCount - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -181,7 +181,7 @@ int lua_MeshPart_getIndexFormat(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_MeshPart_getIndexFormat - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -218,7 +218,7 @@ int lua_MeshPart_getMeshIndex(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_MeshPart_getMeshIndex - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -255,7 +255,7 @@ int lua_MeshPart_getPrimitiveType(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_MeshPart_getPrimitiveType - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -292,7 +292,7 @@ int lua_MeshPart_isDynamic(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_MeshPart_isDynamic - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;

+ 12 - 11
gameplay/src/lua/lua_MeshSkin.cpp

@@ -8,6 +8,7 @@
 #include "Joint.h"
 #include "Joint.h"
 #include "MeshSkin.h"
 #include "MeshSkin.h"
 #include "Node.h"
 #include "Node.h"
+#include "ScriptListener.h"
 #include "Transform.h"
 #include "Transform.h"
 #include "lua_CurveInterpolationType.h"
 #include "lua_CurveInterpolationType.h"
 
 
@@ -77,7 +78,7 @@ int lua_MeshSkin_getBindShape(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_MeshSkin_getBindShape - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -150,7 +151,7 @@ int lua_MeshSkin_getJoint(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_MeshSkin_getJoint - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -187,7 +188,7 @@ int lua_MeshSkin_getJointCount(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_MeshSkin_getJointCount - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -228,7 +229,7 @@ int lua_MeshSkin_getJointIndex(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_MeshSkin_getJointIndex - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -274,7 +275,7 @@ int lua_MeshSkin_getMatrixPalette(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_MeshSkin_getMatrixPalette - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -311,7 +312,7 @@ int lua_MeshSkin_getMatrixPaletteSize(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_MeshSkin_getMatrixPaletteSize - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -357,7 +358,7 @@ int lua_MeshSkin_getModel(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_MeshSkin_getModel - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -403,7 +404,7 @@ int lua_MeshSkin_getRootJoint(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_MeshSkin_getRootJoint - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -441,7 +442,7 @@ int lua_MeshSkin_setBindShape(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_MeshSkin_setBindShape - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -479,7 +480,7 @@ int lua_MeshSkin_setRootJoint(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_MeshSkin_setRootJoint - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -521,7 +522,7 @@ int lua_MeshSkin_transformChanged(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_MeshSkin_transformChanged - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;

+ 18 - 18
gameplay/src/lua/lua_Model.cpp

@@ -75,7 +75,7 @@ int lua_Model__gc(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Model__gc - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -109,7 +109,7 @@ int lua_Model_addRef(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Model_addRef - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -143,7 +143,7 @@ int lua_Model_draw(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Model_draw - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -163,7 +163,7 @@ int lua_Model_draw(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Model_draw - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -209,7 +209,7 @@ int lua_Model_getMaterial(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Model_getMaterial - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -241,7 +241,7 @@ int lua_Model_getMaterial(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Model_getMaterial - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -287,7 +287,7 @@ int lua_Model_getMesh(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Model_getMesh - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -324,7 +324,7 @@ int lua_Model_getMeshPartCount(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Model_getMeshPartCount - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -370,7 +370,7 @@ int lua_Model_getNode(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Model_getNode - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -407,7 +407,7 @@ int lua_Model_getRefCount(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Model_getRefCount - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -453,7 +453,7 @@ int lua_Model_getSkin(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Model_getSkin - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -494,7 +494,7 @@ int lua_Model_hasMaterial(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Model_hasMaterial - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -528,7 +528,7 @@ int lua_Model_release(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Model_release - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -589,7 +589,7 @@ int lua_Model_setMaterial(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Model_setMaterial - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -667,7 +667,7 @@ int lua_Model_setMaterial(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Model_setMaterial - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -707,7 +707,7 @@ int lua_Model_setMaterial(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Model_setMaterial - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -751,7 +751,7 @@ int lua_Model_setMaterial(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Model_setMaterial - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -799,7 +799,7 @@ int lua_Model_static_create(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Model_static_create - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;

+ 1 - 1
gameplay/src/lua/lua_Mouse.cpp

@@ -52,7 +52,7 @@ int lua_Mouse__gc(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Mouse__gc - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;

File diff ditekan karena terlalu besar
+ 144 - 106
gameplay/src/lua/lua_Node.cpp


+ 6 - 5
gameplay/src/lua/lua_NodeCloneContext.cpp

@@ -13,6 +13,7 @@
 #include "PhysicsRigidBody.h"
 #include "PhysicsRigidBody.h"
 #include "Ref.h"
 #include "Ref.h"
 #include "Scene.h"
 #include "Scene.h"
+#include "ScriptListener.h"
 #include "Transform.h"
 #include "Transform.h"
 #include "lua_CurveInterpolationType.h"
 #include "lua_CurveInterpolationType.h"
 #include "lua_NodeType.h"
 #include "lua_NodeType.h"
@@ -71,7 +72,7 @@ int lua_NodeCloneContext__gc(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_NodeCloneContext__gc - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -158,7 +159,7 @@ int lua_NodeCloneContext_findClonedAnimation(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_NodeCloneContext_findClonedAnimation - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -208,7 +209,7 @@ int lua_NodeCloneContext_findClonedNode(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_NodeCloneContext_findClonedNode - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -250,7 +251,7 @@ int lua_NodeCloneContext_registerClonedAnimation(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_NodeCloneContext_registerClonedAnimation - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -292,7 +293,7 @@ int lua_NodeCloneContext_registerClonedNode(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_NodeCloneContext_registerClonedNode - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;

+ 63 - 63
gameplay/src/lua/lua_ParticleEmitter.cpp

@@ -123,7 +123,7 @@ int lua_ParticleEmitter__gc(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_ParticleEmitter__gc - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -157,7 +157,7 @@ int lua_ParticleEmitter_addRef(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_ParticleEmitter_addRef - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -191,7 +191,7 @@ int lua_ParticleEmitter_draw(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_ParticleEmitter_draw - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -229,7 +229,7 @@ int lua_ParticleEmitter_emit(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_ParticleEmitter_emit - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -275,7 +275,7 @@ int lua_ParticleEmitter_getAcceleration(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_ParticleEmitter_getAcceleration - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -321,7 +321,7 @@ int lua_ParticleEmitter_getAccelerationVariance(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_ParticleEmitter_getAccelerationVariance - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -367,7 +367,7 @@ int lua_ParticleEmitter_getColorEnd(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_ParticleEmitter_getColorEnd - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -413,7 +413,7 @@ int lua_ParticleEmitter_getColorEndVariance(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_ParticleEmitter_getColorEndVariance - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -459,7 +459,7 @@ int lua_ParticleEmitter_getColorStart(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_ParticleEmitter_getColorStart - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -505,7 +505,7 @@ int lua_ParticleEmitter_getColorStartVariance(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_ParticleEmitter_getColorStartVariance - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -542,7 +542,7 @@ int lua_ParticleEmitter_getEmissionRate(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_ParticleEmitter_getEmissionRate - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -579,7 +579,7 @@ int lua_ParticleEmitter_getEnergyMax(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_ParticleEmitter_getEnergyMax - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -616,7 +616,7 @@ int lua_ParticleEmitter_getEnergyMin(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_ParticleEmitter_getEnergyMin - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -662,7 +662,7 @@ int lua_ParticleEmitter_getNode(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_ParticleEmitter_getNode - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -699,7 +699,7 @@ int lua_ParticleEmitter_getParticlesCount(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_ParticleEmitter_getParticlesCount - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -745,7 +745,7 @@ int lua_ParticleEmitter_getPosition(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_ParticleEmitter_getPosition - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -791,7 +791,7 @@ int lua_ParticleEmitter_getPositionVariance(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_ParticleEmitter_getPositionVariance - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -828,7 +828,7 @@ int lua_ParticleEmitter_getRefCount(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_ParticleEmitter_getRefCount - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -874,7 +874,7 @@ int lua_ParticleEmitter_getRotationAxis(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_ParticleEmitter_getRotationAxis - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -920,7 +920,7 @@ int lua_ParticleEmitter_getRotationAxisVariance(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_ParticleEmitter_getRotationAxisVariance - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -957,7 +957,7 @@ int lua_ParticleEmitter_getRotationPerParticleSpeedMax(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_ParticleEmitter_getRotationPerParticleSpeedMax - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -994,7 +994,7 @@ int lua_ParticleEmitter_getRotationPerParticleSpeedMin(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_ParticleEmitter_getRotationPerParticleSpeedMin - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1031,7 +1031,7 @@ int lua_ParticleEmitter_getRotationSpeedMax(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_ParticleEmitter_getRotationSpeedMax - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1068,7 +1068,7 @@ int lua_ParticleEmitter_getRotationSpeedMin(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_ParticleEmitter_getRotationSpeedMin - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1105,7 +1105,7 @@ int lua_ParticleEmitter_getSizeEndMax(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_ParticleEmitter_getSizeEndMax - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1142,7 +1142,7 @@ int lua_ParticleEmitter_getSizeEndMin(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_ParticleEmitter_getSizeEndMin - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1179,7 +1179,7 @@ int lua_ParticleEmitter_getSizeStartMax(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_ParticleEmitter_getSizeStartMax - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1216,7 +1216,7 @@ int lua_ParticleEmitter_getSizeStartMin(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_ParticleEmitter_getSizeStartMin - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1253,7 +1253,7 @@ int lua_ParticleEmitter_getSpriteFrameDuration(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_ParticleEmitter_getSpriteFrameDuration - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1290,7 +1290,7 @@ int lua_ParticleEmitter_getSpriteFrameRandomOffset(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_ParticleEmitter_getSpriteFrameRandomOffset - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1336,7 +1336,7 @@ int lua_ParticleEmitter_getVelocity(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_ParticleEmitter_getVelocity - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1382,7 +1382,7 @@ int lua_ParticleEmitter_getVelocityVariance(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_ParticleEmitter_getVelocityVariance - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1419,7 +1419,7 @@ int lua_ParticleEmitter_isActive(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_ParticleEmitter_isActive - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1456,7 +1456,7 @@ int lua_ParticleEmitter_isEllipsoid(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_ParticleEmitter_isEllipsoid - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1493,7 +1493,7 @@ int lua_ParticleEmitter_isSpriteAnimated(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_ParticleEmitter_isSpriteAnimated - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1530,7 +1530,7 @@ int lua_ParticleEmitter_isSpriteLooped(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_ParticleEmitter_isSpriteLooped - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1567,7 +1567,7 @@ int lua_ParticleEmitter_isStarted(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_ParticleEmitter_isStarted - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1601,7 +1601,7 @@ int lua_ParticleEmitter_release(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_ParticleEmitter_release - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1643,7 +1643,7 @@ int lua_ParticleEmitter_setAcceleration(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_ParticleEmitter_setAcceleration - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1693,7 +1693,7 @@ int lua_ParticleEmitter_setColor(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_ParticleEmitter_setColor - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1731,7 +1731,7 @@ int lua_ParticleEmitter_setEllipsoid(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_ParticleEmitter_setEllipsoid - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1769,7 +1769,7 @@ int lua_ParticleEmitter_setEmissionRate(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_ParticleEmitter_setEmissionRate - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1811,7 +1811,7 @@ int lua_ParticleEmitter_setEnergy(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_ParticleEmitter_setEnergy - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1857,7 +1857,7 @@ int lua_ParticleEmitter_setOrbit(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_ParticleEmitter_setOrbit - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1899,7 +1899,7 @@ int lua_ParticleEmitter_setPosition(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_ParticleEmitter_setPosition - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1949,7 +1949,7 @@ int lua_ParticleEmitter_setRotation(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_ParticleEmitter_setRotation - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1991,7 +1991,7 @@ int lua_ParticleEmitter_setRotationPerParticle(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_ParticleEmitter_setRotationPerParticle - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2041,7 +2041,7 @@ int lua_ParticleEmitter_setSize(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_ParticleEmitter_setSize - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2079,7 +2079,7 @@ int lua_ParticleEmitter_setSpriteAnimated(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_ParticleEmitter_setSpriteAnimated - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2121,7 +2121,7 @@ int lua_ParticleEmitter_setSpriteFrameCoords(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_ParticleEmitter_setSpriteFrameCoords - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2149,7 +2149,7 @@ int lua_ParticleEmitter_setSpriteFrameCoords(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_ParticleEmitter_setSpriteFrameCoords - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2187,7 +2187,7 @@ int lua_ParticleEmitter_setSpriteFrameDuration(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_ParticleEmitter_setSpriteFrameDuration - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2225,7 +2225,7 @@ int lua_ParticleEmitter_setSpriteFrameRandomOffset(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_ParticleEmitter_setSpriteFrameRandomOffset - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2263,7 +2263,7 @@ int lua_ParticleEmitter_setSpriteLooped(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_ParticleEmitter_setSpriteLooped - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2305,7 +2305,7 @@ int lua_ParticleEmitter_setSpriteTexCoords(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_ParticleEmitter_setSpriteTexCoords - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2343,7 +2343,7 @@ int lua_ParticleEmitter_setTextureBlending(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_ParticleEmitter_setTextureBlending - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2385,7 +2385,7 @@ int lua_ParticleEmitter_setVelocity(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_ParticleEmitter_setVelocity - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2419,7 +2419,7 @@ int lua_ParticleEmitter_start(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_ParticleEmitter_start - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2488,7 +2488,7 @@ int lua_ParticleEmitter_static_create(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_ParticleEmitter_static_create - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2526,7 +2526,7 @@ int lua_ParticleEmitter_static_create(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_ParticleEmitter_static_create - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2565,7 +2565,7 @@ int lua_ParticleEmitter_static_getTextureBlendingFromString(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_ParticleEmitter_static_getTextureBlendingFromString - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2599,7 +2599,7 @@ int lua_ParticleEmitter_stop(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_ParticleEmitter_stop - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -2637,7 +2637,7 @@ int lua_ParticleEmitter_update(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_ParticleEmitter_update - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;

+ 14 - 14
gameplay/src/lua/lua_Pass.cpp

@@ -74,7 +74,7 @@ int lua_Pass__gc(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Pass__gc - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -108,7 +108,7 @@ int lua_Pass_addRef(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Pass_addRef - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -142,7 +142,7 @@ int lua_Pass_bind(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Pass_bind - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -188,7 +188,7 @@ int lua_Pass_getEffect(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Pass_getEffect - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -225,7 +225,7 @@ int lua_Pass_getId(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Pass_getId - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -275,7 +275,7 @@ int lua_Pass_getParameter(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Pass_getParameter - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -312,7 +312,7 @@ int lua_Pass_getRefCount(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Pass_getRefCount - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -358,7 +358,7 @@ int lua_Pass_getStateBlock(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Pass_getStateBlock - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -404,7 +404,7 @@ int lua_Pass_getVertexAttributeBinding(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Pass_getVertexAttributeBinding - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -438,7 +438,7 @@ int lua_Pass_release(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Pass_release - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -495,7 +495,7 @@ int lua_Pass_setParameterAutoBinding(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Pass_setParameterAutoBinding - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -533,7 +533,7 @@ int lua_Pass_setStateBlock(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Pass_setStateBlock - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -571,7 +571,7 @@ int lua_Pass_setVertexAttributeBinding(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Pass_setVertexAttributeBinding - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -605,7 +605,7 @@ int lua_Pass_unbind(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Pass_unbind - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;

+ 84 - 31
gameplay/src/lua/lua_PhysicsCharacter.cpp

@@ -11,6 +11,7 @@
 #include "PhysicsController.h"
 #include "PhysicsController.h"
 #include "PhysicsGhostObject.h"
 #include "PhysicsGhostObject.h"
 #include "Scene.h"
 #include "Scene.h"
+#include "ScriptListener.h"
 #include "Transform.h"
 #include "Transform.h"
 #include "lua_CurveInterpolationType.h"
 #include "lua_CurveInterpolationType.h"
 #include "lua_PhysicsCollisionObjectCollisionListenerEventType.h"
 #include "lua_PhysicsCollisionObjectCollisionListenerEventType.h"
@@ -87,9 +88,20 @@ int lua_PhysicsCharacter_addCollisionListener(lua_State* state)
                 
                 
                 return 0;
                 return 0;
             }
             }
+            else if ((lua_type(state, 1) == LUA_TUSERDATA) &&
+                (lua_type(state, 2) == LUA_TSTRING || lua_type(state, 2) == LUA_TNIL))
+            {
+                // Get parameter 1 off the stack.
+                const char* param1 = ScriptController::getInstance()->getString(2, false);
+
+                PhysicsCharacter* instance = getInstance(state);
+                instance->addCollisionListener(param1);
+                
+                return 0;
+            }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsCharacter_addCollisionListener - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -111,9 +123,24 @@ int lua_PhysicsCharacter_addCollisionListener(lua_State* state)
                 
                 
                 return 0;
                 return 0;
             }
             }
+            else if ((lua_type(state, 1) == LUA_TUSERDATA) &&
+                (lua_type(state, 2) == LUA_TSTRING || lua_type(state, 2) == LUA_TNIL) &&
+                (lua_type(state, 3) == LUA_TUSERDATA || lua_type(state, 3) == LUA_TTABLE || lua_type(state, 3) == LUA_TNIL))
+            {
+                // Get parameter 1 off the stack.
+                const char* param1 = ScriptController::getInstance()->getString(2, false);
+
+                // Get parameter 2 off the stack.
+                PhysicsCollisionObject* param2 = ScriptController::getInstance()->getObjectPointer<PhysicsCollisionObject>(3, "PhysicsCollisionObject", false);
+
+                PhysicsCharacter* instance = getInstance(state);
+                instance->addCollisionListener(param1, param2);
+                
+                return 0;
+            }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsCharacter_addCollisionListener - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -154,7 +181,7 @@ int lua_PhysicsCharacter_collidesWith(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsCharacter_collidesWith - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -200,7 +227,7 @@ int lua_PhysicsCharacter_getCollisionShape(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsCharacter_getCollisionShape - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -246,7 +273,7 @@ int lua_PhysicsCharacter_getCurrentVelocity(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsCharacter_getCurrentVelocity - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -283,7 +310,7 @@ int lua_PhysicsCharacter_getMaxSlopeAngle(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsCharacter_getMaxSlopeAngle - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -320,7 +347,7 @@ int lua_PhysicsCharacter_getMaxStepHeight(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsCharacter_getMaxStepHeight - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -366,7 +393,7 @@ int lua_PhysicsCharacter_getNode(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsCharacter_getNode - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -403,7 +430,7 @@ int lua_PhysicsCharacter_getShapeType(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsCharacter_getShapeType - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -440,7 +467,7 @@ int lua_PhysicsCharacter_getType(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsCharacter_getType - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -477,7 +504,7 @@ int lua_PhysicsCharacter_isDynamic(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsCharacter_isDynamic - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -514,7 +541,7 @@ int lua_PhysicsCharacter_isEnabled(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsCharacter_isEnabled - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -551,7 +578,7 @@ int lua_PhysicsCharacter_isKinematic(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsCharacter_isKinematic - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -588,7 +615,7 @@ int lua_PhysicsCharacter_isPhysicsEnabled(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsCharacter_isPhysicsEnabled - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -626,7 +653,7 @@ int lua_PhysicsCharacter_jump(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsCharacter_jump - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -662,9 +689,20 @@ int lua_PhysicsCharacter_removeCollisionListener(lua_State* state)
                 
                 
                 return 0;
                 return 0;
             }
             }
+            else if ((lua_type(state, 1) == LUA_TUSERDATA) &&
+                (lua_type(state, 2) == LUA_TSTRING || lua_type(state, 2) == LUA_TNIL))
+            {
+                // Get parameter 1 off the stack.
+                const char* param1 = ScriptController::getInstance()->getString(2, false);
+
+                PhysicsCharacter* instance = getInstance(state);
+                instance->removeCollisionListener(param1);
+                
+                return 0;
+            }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsCharacter_removeCollisionListener - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -686,9 +724,24 @@ int lua_PhysicsCharacter_removeCollisionListener(lua_State* state)
                 
                 
                 return 0;
                 return 0;
             }
             }
+            else if ((lua_type(state, 1) == LUA_TUSERDATA) &&
+                (lua_type(state, 2) == LUA_TSTRING || lua_type(state, 2) == LUA_TNIL) &&
+                (lua_type(state, 3) == LUA_TUSERDATA || lua_type(state, 3) == LUA_TTABLE || lua_type(state, 3) == LUA_TNIL))
+            {
+                // Get parameter 1 off the stack.
+                const char* param1 = ScriptController::getInstance()->getString(2, false);
+
+                // Get parameter 2 off the stack.
+                PhysicsCollisionObject* param2 = ScriptController::getInstance()->getObjectPointer<PhysicsCollisionObject>(3, "PhysicsCollisionObject", false);
+
+                PhysicsCharacter* instance = getInstance(state);
+                instance->removeCollisionListener(param1, param2);
+                
+                return 0;
+            }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsCharacter_removeCollisionListener - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -726,7 +779,7 @@ int lua_PhysicsCharacter_rotate(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsCharacter_rotate - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -750,7 +803,7 @@ int lua_PhysicsCharacter_rotate(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsCharacter_rotate - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -788,7 +841,7 @@ int lua_PhysicsCharacter_setEnabled(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsCharacter_setEnabled - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -822,7 +875,7 @@ int lua_PhysicsCharacter_setForwardVelocity(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsCharacter_setForwardVelocity - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -842,7 +895,7 @@ int lua_PhysicsCharacter_setForwardVelocity(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsCharacter_setForwardVelocity - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -880,7 +933,7 @@ int lua_PhysicsCharacter_setMaxSlopeAngle(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsCharacter_setMaxSlopeAngle - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -918,7 +971,7 @@ int lua_PhysicsCharacter_setMaxStepHeight(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsCharacter_setMaxStepHeight - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -956,7 +1009,7 @@ int lua_PhysicsCharacter_setPhysicsEnabled(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsCharacter_setPhysicsEnabled - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -990,7 +1043,7 @@ int lua_PhysicsCharacter_setRightVelocity(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsCharacter_setRightVelocity - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1010,7 +1063,7 @@ int lua_PhysicsCharacter_setRightVelocity(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsCharacter_setRightVelocity - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1048,7 +1101,7 @@ int lua_PhysicsCharacter_setRotation(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsCharacter_setRotation - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1072,7 +1125,7 @@ int lua_PhysicsCharacter_setRotation(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsCharacter_setRotation - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1110,7 +1163,7 @@ int lua_PhysicsCharacter_setVelocity(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsCharacter_setVelocity - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1152,7 +1205,7 @@ int lua_PhysicsCharacter_transformChanged(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsCharacter_transformChanged - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;

+ 67 - 14
gameplay/src/lua/lua_PhysicsCollisionObject.cpp

@@ -6,6 +6,7 @@
 #include "Node.h"
 #include "Node.h"
 #include "PhysicsCollisionObject.h"
 #include "PhysicsCollisionObject.h"
 #include "PhysicsController.h"
 #include "PhysicsController.h"
+#include "ScriptListener.h"
 #include "lua_PhysicsCollisionObjectCollisionListenerEventType.h"
 #include "lua_PhysicsCollisionObjectCollisionListenerEventType.h"
 #include "lua_PhysicsCollisionObjectType.h"
 #include "lua_PhysicsCollisionObjectType.h"
 #include "lua_PhysicsCollisionShapeType.h"
 #include "lua_PhysicsCollisionShapeType.h"
@@ -70,7 +71,7 @@ int lua_PhysicsCollisionObject__gc(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsCollisionObject__gc - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -106,9 +107,20 @@ int lua_PhysicsCollisionObject_addCollisionListener(lua_State* state)
                 
                 
                 return 0;
                 return 0;
             }
             }
+            else if ((lua_type(state, 1) == LUA_TUSERDATA) &&
+                (lua_type(state, 2) == LUA_TSTRING || lua_type(state, 2) == LUA_TNIL))
+            {
+                // Get parameter 1 off the stack.
+                const char* param1 = ScriptController::getInstance()->getString(2, false);
+
+                PhysicsCollisionObject* instance = getInstance(state);
+                instance->addCollisionListener(param1);
+                
+                return 0;
+            }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsCollisionObject_addCollisionListener - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -130,9 +142,24 @@ int lua_PhysicsCollisionObject_addCollisionListener(lua_State* state)
                 
                 
                 return 0;
                 return 0;
             }
             }
+            else if ((lua_type(state, 1) == LUA_TUSERDATA) &&
+                (lua_type(state, 2) == LUA_TSTRING || lua_type(state, 2) == LUA_TNIL) &&
+                (lua_type(state, 3) == LUA_TUSERDATA || lua_type(state, 3) == LUA_TTABLE || lua_type(state, 3) == LUA_TNIL))
+            {
+                // Get parameter 1 off the stack.
+                const char* param1 = ScriptController::getInstance()->getString(2, false);
+
+                // Get parameter 2 off the stack.
+                PhysicsCollisionObject* param2 = ScriptController::getInstance()->getObjectPointer<PhysicsCollisionObject>(3, "PhysicsCollisionObject", false);
+
+                PhysicsCollisionObject* instance = getInstance(state);
+                instance->addCollisionListener(param1, param2);
+                
+                return 0;
+            }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsCollisionObject_addCollisionListener - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -173,7 +200,7 @@ int lua_PhysicsCollisionObject_collidesWith(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsCollisionObject_collidesWith - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -219,7 +246,7 @@ int lua_PhysicsCollisionObject_getCollisionShape(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsCollisionObject_getCollisionShape - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -265,7 +292,7 @@ int lua_PhysicsCollisionObject_getNode(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsCollisionObject_getNode - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -302,7 +329,7 @@ int lua_PhysicsCollisionObject_getShapeType(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsCollisionObject_getShapeType - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -339,7 +366,7 @@ int lua_PhysicsCollisionObject_getType(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsCollisionObject_getType - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -376,7 +403,7 @@ int lua_PhysicsCollisionObject_isDynamic(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsCollisionObject_isDynamic - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -413,7 +440,7 @@ int lua_PhysicsCollisionObject_isEnabled(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsCollisionObject_isEnabled - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -450,7 +477,7 @@ int lua_PhysicsCollisionObject_isKinematic(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsCollisionObject_isKinematic - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -486,9 +513,20 @@ int lua_PhysicsCollisionObject_removeCollisionListener(lua_State* state)
                 
                 
                 return 0;
                 return 0;
             }
             }
+            else if ((lua_type(state, 1) == LUA_TUSERDATA) &&
+                (lua_type(state, 2) == LUA_TSTRING || lua_type(state, 2) == LUA_TNIL))
+            {
+                // Get parameter 1 off the stack.
+                const char* param1 = ScriptController::getInstance()->getString(2, false);
+
+                PhysicsCollisionObject* instance = getInstance(state);
+                instance->removeCollisionListener(param1);
+                
+                return 0;
+            }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsCollisionObject_removeCollisionListener - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -510,9 +548,24 @@ int lua_PhysicsCollisionObject_removeCollisionListener(lua_State* state)
                 
                 
                 return 0;
                 return 0;
             }
             }
+            else if ((lua_type(state, 1) == LUA_TUSERDATA) &&
+                (lua_type(state, 2) == LUA_TSTRING || lua_type(state, 2) == LUA_TNIL) &&
+                (lua_type(state, 3) == LUA_TUSERDATA || lua_type(state, 3) == LUA_TTABLE || lua_type(state, 3) == LUA_TNIL))
+            {
+                // Get parameter 1 off the stack.
+                const char* param1 = ScriptController::getInstance()->getString(2, false);
+
+                // Get parameter 2 off the stack.
+                PhysicsCollisionObject* param2 = ScriptController::getInstance()->getObjectPointer<PhysicsCollisionObject>(3, "PhysicsCollisionObject", false);
+
+                PhysicsCollisionObject* instance = getInstance(state);
+                instance->removeCollisionListener(param1, param2);
+                
+                return 0;
+            }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsCollisionObject_removeCollisionListener - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -550,7 +603,7 @@ int lua_PhysicsCollisionObject_setEnabled(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsCollisionObject_setEnabled - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;

+ 5 - 4
gameplay/src/lua/lua_PhysicsCollisionObjectCollisionListener.cpp

@@ -6,6 +6,7 @@
 #include "Node.h"
 #include "Node.h"
 #include "PhysicsCollisionObject.h"
 #include "PhysicsCollisionObject.h"
 #include "PhysicsController.h"
 #include "PhysicsController.h"
+#include "ScriptListener.h"
 #include "lua_PhysicsCollisionObjectCollisionListenerEventType.h"
 #include "lua_PhysicsCollisionObjectCollisionListenerEventType.h"
 #include "lua_PhysicsCollisionObjectType.h"
 #include "lua_PhysicsCollisionObjectType.h"
 #include "lua_PhysicsCollisionShapeType.h"
 #include "lua_PhysicsCollisionShapeType.h"
@@ -61,7 +62,7 @@ int lua_PhysicsCollisionObjectCollisionListener__gc(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsCollisionObjectCollisionListener__gc - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -103,7 +104,7 @@ int lua_PhysicsCollisionObjectCollisionListener_collisionEvent(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsCollisionObjectCollisionListener_collisionEvent - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -131,7 +132,7 @@ int lua_PhysicsCollisionObjectCollisionListener_collisionEvent(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsCollisionObjectCollisionListener_collisionEvent - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -163,7 +164,7 @@ int lua_PhysicsCollisionObjectCollisionListener_collisionEvent(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsCollisionObjectCollisionListener_collisionEvent - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;

+ 3 - 2
gameplay/src/lua/lua_PhysicsCollisionObjectCollisionPair.cpp

@@ -6,6 +6,7 @@
 #include "Node.h"
 #include "Node.h"
 #include "PhysicsCollisionObject.h"
 #include "PhysicsCollisionObject.h"
 #include "PhysicsController.h"
 #include "PhysicsController.h"
+#include "ScriptListener.h"
 #include "lua_PhysicsCollisionObjectCollisionListenerEventType.h"
 #include "lua_PhysicsCollisionObjectCollisionListenerEventType.h"
 #include "lua_PhysicsCollisionObjectType.h"
 #include "lua_PhysicsCollisionObjectType.h"
 #include "lua_PhysicsCollisionShapeType.h"
 #include "lua_PhysicsCollisionShapeType.h"
@@ -62,7 +63,7 @@ int lua_PhysicsCollisionObjectCollisionPair__gc(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsCollisionObjectCollisionPair__gc - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -114,7 +115,7 @@ int lua_PhysicsCollisionObjectCollisionPair__init(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsCollisionObjectCollisionPair__init - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;

+ 16 - 16
gameplay/src/lua/lua_PhysicsCollisionShape.cpp

@@ -70,7 +70,7 @@ int lua_PhysicsCollisionShape__gc(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsCollisionShape__gc - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -104,7 +104,7 @@ int lua_PhysicsCollisionShape_addRef(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsCollisionShape_addRef - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -141,7 +141,7 @@ int lua_PhysicsCollisionShape_getRefCount(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsCollisionShape_getRefCount - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -178,7 +178,7 @@ int lua_PhysicsCollisionShape_getType(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsCollisionShape_getType - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -212,7 +212,7 @@ int lua_PhysicsCollisionShape_release(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsCollisionShape_release - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -279,7 +279,7 @@ int lua_PhysicsCollisionShape_static_box(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsCollisionShape_static_box - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -313,7 +313,7 @@ int lua_PhysicsCollisionShape_static_box(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsCollisionShape_static_box - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -351,7 +351,7 @@ int lua_PhysicsCollisionShape_static_box(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsCollisionShape_static_box - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -422,7 +422,7 @@ int lua_PhysicsCollisionShape_static_capsule(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsCollisionShape_static_capsule - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -460,7 +460,7 @@ int lua_PhysicsCollisionShape_static_capsule(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsCollisionShape_static_capsule - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -502,7 +502,7 @@ int lua_PhysicsCollisionShape_static_capsule(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsCollisionShape_static_capsule - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -550,7 +550,7 @@ int lua_PhysicsCollisionShape_static_heightfield(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsCollisionShape_static_heightfield - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -598,7 +598,7 @@ int lua_PhysicsCollisionShape_static_mesh(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsCollisionShape_static_mesh - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -665,7 +665,7 @@ int lua_PhysicsCollisionShape_static_sphere(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsCollisionShape_static_sphere - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -699,7 +699,7 @@ int lua_PhysicsCollisionShape_static_sphere(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsCollisionShape_static_sphere - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -737,7 +737,7 @@ int lua_PhysicsCollisionShape_static_sphere(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsCollisionShape_static_sphere - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;

+ 2 - 2
gameplay/src/lua/lua_PhysicsCollisionShapeDefinition.cpp

@@ -59,7 +59,7 @@ int lua_PhysicsCollisionShapeDefinition__gc(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsCollisionShapeDefinition__gc - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -126,7 +126,7 @@ int lua_PhysicsCollisionShapeDefinition__init(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsCollisionShapeDefinition__init - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;

+ 7 - 7
gameplay/src/lua/lua_PhysicsConstraint.cpp

@@ -63,7 +63,7 @@ int lua_PhysicsConstraint_getBreakingImpulse(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsConstraint_getBreakingImpulse - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -100,7 +100,7 @@ int lua_PhysicsConstraint_isEnabled(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsConstraint_isEnabled - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -138,7 +138,7 @@ int lua_PhysicsConstraint_setBreakingImpulse(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsConstraint_setBreakingImpulse - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -176,7 +176,7 @@ int lua_PhysicsConstraint_setEnabled(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsConstraint_setEnabled - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -228,7 +228,7 @@ int lua_PhysicsConstraint_static_centerOfMassMidpoint(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsConstraint_static_centerOfMassMidpoint - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -280,7 +280,7 @@ int lua_PhysicsConstraint_static_getRotationOffset(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsConstraint_static_getRotationOffset - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -332,7 +332,7 @@ int lua_PhysicsConstraint_static_getTranslationOffset(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsConstraint_static_getTranslationOffset - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;

+ 52 - 29
gameplay/src/lua/lua_PhysicsController.cpp

@@ -8,6 +8,7 @@
 #include "PhysicsCharacter.h"
 #include "PhysicsCharacter.h"
 #include "PhysicsController.h"
 #include "PhysicsController.h"
 #include "PhysicsRigidBody.h"
 #include "PhysicsRigidBody.h"
+#include "ScriptListener.h"
 #include "lua_PhysicsControllerListenerEventType.h"
 #include "lua_PhysicsControllerListenerEventType.h"
 
 
 namespace gameplay
 namespace gameplay
@@ -67,9 +68,20 @@ int lua_PhysicsController_addStatusListener(lua_State* state)
                 
                 
                 return 0;
                 return 0;
             }
             }
+            else if ((lua_type(state, 1) == LUA_TUSERDATA) &&
+                (lua_type(state, 2) == LUA_TSTRING || lua_type(state, 2) == LUA_TNIL))
+            {
+                // Get parameter 1 off the stack.
+                const char* param1 = ScriptController::getInstance()->getString(2, false);
+
+                PhysicsController* instance = getInstance(state);
+                instance->addStatusListener(param1);
+                
+                return 0;
+            }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsController_addStatusListener - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -119,7 +131,7 @@ int lua_PhysicsController_createFixedConstraint(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsController_createFixedConstraint - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -155,7 +167,7 @@ int lua_PhysicsController_createFixedConstraint(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsController_createFixedConstraint - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -205,7 +217,7 @@ int lua_PhysicsController_createGenericConstraint(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsController_createGenericConstraint - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -241,7 +253,7 @@ int lua_PhysicsController_createGenericConstraint(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsController_createGenericConstraint - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -281,7 +293,7 @@ int lua_PhysicsController_createGenericConstraint(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsController_createGenericConstraint - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -325,7 +337,7 @@ int lua_PhysicsController_createGenericConstraint(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsController_createGenericConstraint - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -373,7 +385,7 @@ int lua_PhysicsController_createGenericConstraint(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsController_createGenericConstraint - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -425,7 +437,7 @@ int lua_PhysicsController_createGenericConstraint(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsController_createGenericConstraint - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -483,7 +495,7 @@ int lua_PhysicsController_createHingeConstraint(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsController_createHingeConstraint - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -527,7 +539,7 @@ int lua_PhysicsController_createHingeConstraint(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsController_createHingeConstraint - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -575,7 +587,7 @@ int lua_PhysicsController_createHingeConstraint(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsController_createHingeConstraint - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -627,7 +639,7 @@ int lua_PhysicsController_createHingeConstraint(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsController_createHingeConstraint - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -677,7 +689,7 @@ int lua_PhysicsController_createSocketConstraint(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsController_createSocketConstraint - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -740,7 +752,7 @@ int lua_PhysicsController_createSocketConstraint(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsController_createSocketConstraint - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -780,7 +792,7 @@ int lua_PhysicsController_createSocketConstraint(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsController_createSocketConstraint - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -824,7 +836,7 @@ int lua_PhysicsController_createSocketConstraint(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsController_createSocketConstraint - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -878,7 +890,7 @@ int lua_PhysicsController_createSpringConstraint(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsController_createSpringConstraint - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -930,7 +942,7 @@ int lua_PhysicsController_createSpringConstraint(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsController_createSpringConstraint - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -968,7 +980,7 @@ int lua_PhysicsController_drawDebug(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsController_drawDebug - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1014,7 +1026,7 @@ int lua_PhysicsController_getGravity(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsController_getGravity - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1059,7 +1071,7 @@ int lua_PhysicsController_rayTest(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsController_rayTest - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1090,7 +1102,7 @@ int lua_PhysicsController_rayTest(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsController_rayTest - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1125,7 +1137,7 @@ int lua_PhysicsController_rayTest(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsController_rayTest - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1161,9 +1173,20 @@ int lua_PhysicsController_removeStatusListener(lua_State* state)
                 
                 
                 return 0;
                 return 0;
             }
             }
+            else if ((lua_type(state, 1) == LUA_TUSERDATA) &&
+                (lua_type(state, 2) == LUA_TSTRING || lua_type(state, 2) == LUA_TNIL))
+            {
+                // Get parameter 1 off the stack.
+                const char* param1 = ScriptController::getInstance()->getString(2, false);
+
+                PhysicsController* instance = getInstance(state);
+                instance->removeStatusListener(param1);
+                
+                return 0;
+            }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsController_removeStatusListener - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1201,7 +1224,7 @@ int lua_PhysicsController_setGravity(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsController_setGravity - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1246,7 +1269,7 @@ int lua_PhysicsController_sweepTest(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsController_sweepTest - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1277,7 +1300,7 @@ int lua_PhysicsController_sweepTest(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsController_sweepTest - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1312,7 +1335,7 @@ int lua_PhysicsController_sweepTest(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsController_sweepTest - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;

+ 4 - 3
gameplay/src/lua/lua_PhysicsControllerHitFilter.cpp

@@ -8,6 +8,7 @@
 #include "PhysicsCharacter.h"
 #include "PhysicsCharacter.h"
 #include "PhysicsController.h"
 #include "PhysicsController.h"
 #include "PhysicsRigidBody.h"
 #include "PhysicsRigidBody.h"
+#include "ScriptListener.h"
 #include "lua_PhysicsControllerListenerEventType.h"
 #include "lua_PhysicsControllerListenerEventType.h"
 
 
 namespace gameplay
 namespace gameplay
@@ -62,7 +63,7 @@ int lua_PhysicsControllerHitFilter__gc(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsControllerHitFilter__gc - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -140,7 +141,7 @@ int lua_PhysicsControllerHitFilter_filter(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsControllerHitFilter_filter - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -181,7 +182,7 @@ int lua_PhysicsControllerHitFilter_hit(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsControllerHitFilter_hit - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;

+ 2 - 1
gameplay/src/lua/lua_PhysicsControllerHitResult.cpp

@@ -8,6 +8,7 @@
 #include "PhysicsCharacter.h"
 #include "PhysicsCharacter.h"
 #include "PhysicsController.h"
 #include "PhysicsController.h"
 #include "PhysicsRigidBody.h"
 #include "PhysicsRigidBody.h"
+#include "ScriptListener.h"
 #include "lua_PhysicsControllerListenerEventType.h"
 #include "lua_PhysicsControllerListenerEventType.h"
 
 
 namespace gameplay
 namespace gameplay
@@ -64,7 +65,7 @@ int lua_PhysicsControllerHitResult__gc(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsControllerHitResult__gc - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;

+ 2 - 1
gameplay/src/lua/lua_PhysicsControllerListener.cpp

@@ -8,6 +8,7 @@
 #include "PhysicsCharacter.h"
 #include "PhysicsCharacter.h"
 #include "PhysicsController.h"
 #include "PhysicsController.h"
 #include "PhysicsRigidBody.h"
 #include "PhysicsRigidBody.h"
+#include "ScriptListener.h"
 #include "lua_PhysicsControllerListenerEventType.h"
 #include "lua_PhysicsControllerListenerEventType.h"
 
 
 namespace gameplay
 namespace gameplay
@@ -59,7 +60,7 @@ int lua_PhysicsControllerListener_statusEvent(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsControllerListener_statusEvent - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;

+ 15 - 15
gameplay/src/lua/lua_PhysicsFixedConstraint.cpp

@@ -73,7 +73,7 @@ int lua_PhysicsFixedConstraint_getBreakingImpulse(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsFixedConstraint_getBreakingImpulse - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -119,7 +119,7 @@ int lua_PhysicsFixedConstraint_getRotationOffsetA(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsFixedConstraint_getRotationOffsetA - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -165,7 +165,7 @@ int lua_PhysicsFixedConstraint_getRotationOffsetB(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsFixedConstraint_getRotationOffsetB - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -211,7 +211,7 @@ int lua_PhysicsFixedConstraint_getTranslationOffsetA(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsFixedConstraint_getTranslationOffsetA - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -257,7 +257,7 @@ int lua_PhysicsFixedConstraint_getTranslationOffsetB(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsFixedConstraint_getTranslationOffsetB - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -294,7 +294,7 @@ int lua_PhysicsFixedConstraint_isEnabled(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsFixedConstraint_isEnabled - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -332,7 +332,7 @@ int lua_PhysicsFixedConstraint_setBreakingImpulse(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsFixedConstraint_setBreakingImpulse - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -370,7 +370,7 @@ int lua_PhysicsFixedConstraint_setEnabled(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsFixedConstraint_setEnabled - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -408,7 +408,7 @@ int lua_PhysicsFixedConstraint_setRotationOffsetA(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsFixedConstraint_setRotationOffsetA - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -446,7 +446,7 @@ int lua_PhysicsFixedConstraint_setRotationOffsetB(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsFixedConstraint_setRotationOffsetB - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -484,7 +484,7 @@ int lua_PhysicsFixedConstraint_setTranslationOffsetA(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsFixedConstraint_setTranslationOffsetA - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -522,7 +522,7 @@ int lua_PhysicsFixedConstraint_setTranslationOffsetB(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsFixedConstraint_setTranslationOffsetB - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -574,7 +574,7 @@ int lua_PhysicsFixedConstraint_static_centerOfMassMidpoint(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsFixedConstraint_static_centerOfMassMidpoint - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -626,7 +626,7 @@ int lua_PhysicsFixedConstraint_static_getRotationOffset(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsFixedConstraint_static_getRotationOffset - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -678,7 +678,7 @@ int lua_PhysicsFixedConstraint_static_getTranslationOffset(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsFixedConstraint_static_getTranslationOffset - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;

+ 19 - 19
gameplay/src/lua/lua_PhysicsGenericConstraint.cpp

@@ -76,7 +76,7 @@ int lua_PhysicsGenericConstraint_getBreakingImpulse(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsGenericConstraint_getBreakingImpulse - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -122,7 +122,7 @@ int lua_PhysicsGenericConstraint_getRotationOffsetA(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsGenericConstraint_getRotationOffsetA - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -168,7 +168,7 @@ int lua_PhysicsGenericConstraint_getRotationOffsetB(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsGenericConstraint_getRotationOffsetB - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -214,7 +214,7 @@ int lua_PhysicsGenericConstraint_getTranslationOffsetA(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsGenericConstraint_getTranslationOffsetA - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -260,7 +260,7 @@ int lua_PhysicsGenericConstraint_getTranslationOffsetB(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsGenericConstraint_getTranslationOffsetB - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -297,7 +297,7 @@ int lua_PhysicsGenericConstraint_isEnabled(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsGenericConstraint_isEnabled - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -335,7 +335,7 @@ int lua_PhysicsGenericConstraint_setAngularLowerLimit(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsGenericConstraint_setAngularLowerLimit - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -373,7 +373,7 @@ int lua_PhysicsGenericConstraint_setAngularUpperLimit(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsGenericConstraint_setAngularUpperLimit - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -411,7 +411,7 @@ int lua_PhysicsGenericConstraint_setBreakingImpulse(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsGenericConstraint_setBreakingImpulse - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -449,7 +449,7 @@ int lua_PhysicsGenericConstraint_setEnabled(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsGenericConstraint_setEnabled - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -487,7 +487,7 @@ int lua_PhysicsGenericConstraint_setLinearLowerLimit(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsGenericConstraint_setLinearLowerLimit - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -525,7 +525,7 @@ int lua_PhysicsGenericConstraint_setLinearUpperLimit(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsGenericConstraint_setLinearUpperLimit - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -563,7 +563,7 @@ int lua_PhysicsGenericConstraint_setRotationOffsetA(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsGenericConstraint_setRotationOffsetA - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -601,7 +601,7 @@ int lua_PhysicsGenericConstraint_setRotationOffsetB(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsGenericConstraint_setRotationOffsetB - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -639,7 +639,7 @@ int lua_PhysicsGenericConstraint_setTranslationOffsetA(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsGenericConstraint_setTranslationOffsetA - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -677,7 +677,7 @@ int lua_PhysicsGenericConstraint_setTranslationOffsetB(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsGenericConstraint_setTranslationOffsetB - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -729,7 +729,7 @@ int lua_PhysicsGenericConstraint_static_centerOfMassMidpoint(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsGenericConstraint_static_centerOfMassMidpoint - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -781,7 +781,7 @@ int lua_PhysicsGenericConstraint_static_getRotationOffset(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsGenericConstraint_static_getRotationOffset - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -833,7 +833,7 @@ int lua_PhysicsGenericConstraint_static_getTranslationOffset(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsGenericConstraint_static_getTranslationOffset - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;

+ 67 - 14
gameplay/src/lua/lua_PhysicsGhostObject.cpp

@@ -9,6 +9,7 @@
 #include "PhysicsCollisionObject.h"
 #include "PhysicsCollisionObject.h"
 #include "PhysicsController.h"
 #include "PhysicsController.h"
 #include "PhysicsGhostObject.h"
 #include "PhysicsGhostObject.h"
+#include "ScriptListener.h"
 #include "Transform.h"
 #include "Transform.h"
 #include "lua_CurveInterpolationType.h"
 #include "lua_CurveInterpolationType.h"
 #include "lua_PhysicsCollisionObjectCollisionListenerEventType.h"
 #include "lua_PhysicsCollisionObjectCollisionListenerEventType.h"
@@ -72,9 +73,20 @@ int lua_PhysicsGhostObject_addCollisionListener(lua_State* state)
                 
                 
                 return 0;
                 return 0;
             }
             }
+            else if ((lua_type(state, 1) == LUA_TUSERDATA) &&
+                (lua_type(state, 2) == LUA_TSTRING || lua_type(state, 2) == LUA_TNIL))
+            {
+                // Get parameter 1 off the stack.
+                const char* param1 = ScriptController::getInstance()->getString(2, false);
+
+                PhysicsGhostObject* instance = getInstance(state);
+                instance->addCollisionListener(param1);
+                
+                return 0;
+            }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsGhostObject_addCollisionListener - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -96,9 +108,24 @@ int lua_PhysicsGhostObject_addCollisionListener(lua_State* state)
                 
                 
                 return 0;
                 return 0;
             }
             }
+            else if ((lua_type(state, 1) == LUA_TUSERDATA) &&
+                (lua_type(state, 2) == LUA_TSTRING || lua_type(state, 2) == LUA_TNIL) &&
+                (lua_type(state, 3) == LUA_TUSERDATA || lua_type(state, 3) == LUA_TTABLE || lua_type(state, 3) == LUA_TNIL))
+            {
+                // Get parameter 1 off the stack.
+                const char* param1 = ScriptController::getInstance()->getString(2, false);
+
+                // Get parameter 2 off the stack.
+                PhysicsCollisionObject* param2 = ScriptController::getInstance()->getObjectPointer<PhysicsCollisionObject>(3, "PhysicsCollisionObject", false);
+
+                PhysicsGhostObject* instance = getInstance(state);
+                instance->addCollisionListener(param1, param2);
+                
+                return 0;
+            }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsGhostObject_addCollisionListener - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -139,7 +166,7 @@ int lua_PhysicsGhostObject_collidesWith(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsGhostObject_collidesWith - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -185,7 +212,7 @@ int lua_PhysicsGhostObject_getCollisionShape(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsGhostObject_getCollisionShape - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -231,7 +258,7 @@ int lua_PhysicsGhostObject_getNode(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsGhostObject_getNode - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -268,7 +295,7 @@ int lua_PhysicsGhostObject_getShapeType(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsGhostObject_getShapeType - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -305,7 +332,7 @@ int lua_PhysicsGhostObject_getType(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsGhostObject_getType - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -342,7 +369,7 @@ int lua_PhysicsGhostObject_isDynamic(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsGhostObject_isDynamic - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -379,7 +406,7 @@ int lua_PhysicsGhostObject_isEnabled(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsGhostObject_isEnabled - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -416,7 +443,7 @@ int lua_PhysicsGhostObject_isKinematic(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsGhostObject_isKinematic - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -452,9 +479,20 @@ int lua_PhysicsGhostObject_removeCollisionListener(lua_State* state)
                 
                 
                 return 0;
                 return 0;
             }
             }
+            else if ((lua_type(state, 1) == LUA_TUSERDATA) &&
+                (lua_type(state, 2) == LUA_TSTRING || lua_type(state, 2) == LUA_TNIL))
+            {
+                // Get parameter 1 off the stack.
+                const char* param1 = ScriptController::getInstance()->getString(2, false);
+
+                PhysicsGhostObject* instance = getInstance(state);
+                instance->removeCollisionListener(param1);
+                
+                return 0;
+            }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsGhostObject_removeCollisionListener - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -476,9 +514,24 @@ int lua_PhysicsGhostObject_removeCollisionListener(lua_State* state)
                 
                 
                 return 0;
                 return 0;
             }
             }
+            else if ((lua_type(state, 1) == LUA_TUSERDATA) &&
+                (lua_type(state, 2) == LUA_TSTRING || lua_type(state, 2) == LUA_TNIL) &&
+                (lua_type(state, 3) == LUA_TUSERDATA || lua_type(state, 3) == LUA_TTABLE || lua_type(state, 3) == LUA_TNIL))
+            {
+                // Get parameter 1 off the stack.
+                const char* param1 = ScriptController::getInstance()->getString(2, false);
+
+                // Get parameter 2 off the stack.
+                PhysicsCollisionObject* param2 = ScriptController::getInstance()->getObjectPointer<PhysicsCollisionObject>(3, "PhysicsCollisionObject", false);
+
+                PhysicsGhostObject* instance = getInstance(state);
+                instance->removeCollisionListener(param1, param2);
+                
+                return 0;
+            }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsGhostObject_removeCollisionListener - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -516,7 +569,7 @@ int lua_PhysicsGhostObject_setEnabled(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsGhostObject_setEnabled - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -558,7 +611,7 @@ int lua_PhysicsGhostObject_transformChanged(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsGhostObject_transformChanged - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;

+ 9 - 9
gameplay/src/lua/lua_PhysicsHingeConstraint.cpp

@@ -65,7 +65,7 @@ int lua_PhysicsHingeConstraint_getBreakingImpulse(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsHingeConstraint_getBreakingImpulse - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -102,7 +102,7 @@ int lua_PhysicsHingeConstraint_isEnabled(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsHingeConstraint_isEnabled - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -140,7 +140,7 @@ int lua_PhysicsHingeConstraint_setBreakingImpulse(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsHingeConstraint_setBreakingImpulse - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -178,7 +178,7 @@ int lua_PhysicsHingeConstraint_setEnabled(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsHingeConstraint_setEnabled - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -220,7 +220,7 @@ int lua_PhysicsHingeConstraint_setLimits(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsHingeConstraint_setLimits - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -248,7 +248,7 @@ int lua_PhysicsHingeConstraint_setLimits(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsHingeConstraint_setLimits - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -300,7 +300,7 @@ int lua_PhysicsHingeConstraint_static_centerOfMassMidpoint(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsHingeConstraint_static_centerOfMassMidpoint - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -352,7 +352,7 @@ int lua_PhysicsHingeConstraint_static_getRotationOffset(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsHingeConstraint_static_getRotationOffset - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -404,7 +404,7 @@ int lua_PhysicsHingeConstraint_static_getTranslationOffset(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsHingeConstraint_static_getTranslationOffset - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;

+ 91 - 38
gameplay/src/lua/lua_PhysicsRigidBody.cpp

@@ -11,6 +11,7 @@
 #include "PhysicsCollisionObject.h"
 #include "PhysicsCollisionObject.h"
 #include "PhysicsController.h"
 #include "PhysicsController.h"
 #include "PhysicsRigidBody.h"
 #include "PhysicsRigidBody.h"
+#include "ScriptListener.h"
 #include "Transform.h"
 #include "Transform.h"
 #include "lua_CurveInterpolationType.h"
 #include "lua_CurveInterpolationType.h"
 #include "lua_PhysicsCollisionObjectCollisionListenerEventType.h"
 #include "lua_PhysicsCollisionObjectCollisionListenerEventType.h"
@@ -96,9 +97,20 @@ int lua_PhysicsRigidBody_addCollisionListener(lua_State* state)
                 
                 
                 return 0;
                 return 0;
             }
             }
+            else if ((lua_type(state, 1) == LUA_TUSERDATA) &&
+                (lua_type(state, 2) == LUA_TSTRING || lua_type(state, 2) == LUA_TNIL))
+            {
+                // Get parameter 1 off the stack.
+                const char* param1 = ScriptController::getInstance()->getString(2, false);
+
+                PhysicsRigidBody* instance = getInstance(state);
+                instance->addCollisionListener(param1);
+                
+                return 0;
+            }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsRigidBody_addCollisionListener - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -120,9 +132,24 @@ int lua_PhysicsRigidBody_addCollisionListener(lua_State* state)
                 
                 
                 return 0;
                 return 0;
             }
             }
+            else if ((lua_type(state, 1) == LUA_TUSERDATA) &&
+                (lua_type(state, 2) == LUA_TSTRING || lua_type(state, 2) == LUA_TNIL) &&
+                (lua_type(state, 3) == LUA_TUSERDATA || lua_type(state, 3) == LUA_TTABLE || lua_type(state, 3) == LUA_TNIL))
+            {
+                // Get parameter 1 off the stack.
+                const char* param1 = ScriptController::getInstance()->getString(2, false);
+
+                // Get parameter 2 off the stack.
+                PhysicsCollisionObject* param2 = ScriptController::getInstance()->getObjectPointer<PhysicsCollisionObject>(3, "PhysicsCollisionObject", false);
+
+                PhysicsRigidBody* instance = getInstance(state);
+                instance->addCollisionListener(param1, param2);
+                
+                return 0;
+            }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsRigidBody_addCollisionListener - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -160,7 +187,7 @@ int lua_PhysicsRigidBody_applyForce(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsRigidBody_applyForce - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -184,7 +211,7 @@ int lua_PhysicsRigidBody_applyForce(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsRigidBody_applyForce - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -222,7 +249,7 @@ int lua_PhysicsRigidBody_applyImpulse(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsRigidBody_applyImpulse - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -246,7 +273,7 @@ int lua_PhysicsRigidBody_applyImpulse(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsRigidBody_applyImpulse - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -284,7 +311,7 @@ int lua_PhysicsRigidBody_applyTorque(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsRigidBody_applyTorque - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -322,7 +349,7 @@ int lua_PhysicsRigidBody_applyTorqueImpulse(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsRigidBody_applyTorqueImpulse - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -363,7 +390,7 @@ int lua_PhysicsRigidBody_collidesWith(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsRigidBody_collidesWith - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -400,7 +427,7 @@ int lua_PhysicsRigidBody_getAngularDamping(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsRigidBody_getAngularDamping - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -446,7 +473,7 @@ int lua_PhysicsRigidBody_getAngularVelocity(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsRigidBody_getAngularVelocity - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -492,7 +519,7 @@ int lua_PhysicsRigidBody_getAnisotropicFriction(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsRigidBody_getAnisotropicFriction - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -538,7 +565,7 @@ int lua_PhysicsRigidBody_getCollisionShape(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsRigidBody_getCollisionShape - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -575,7 +602,7 @@ int lua_PhysicsRigidBody_getFriction(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsRigidBody_getFriction - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -621,7 +648,7 @@ int lua_PhysicsRigidBody_getGravity(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsRigidBody_getGravity - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -666,7 +693,7 @@ int lua_PhysicsRigidBody_getHeight(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsRigidBody_getHeight - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -703,7 +730,7 @@ int lua_PhysicsRigidBody_getLinearDamping(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsRigidBody_getLinearDamping - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -749,7 +776,7 @@ int lua_PhysicsRigidBody_getLinearVelocity(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsRigidBody_getLinearVelocity - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -786,7 +813,7 @@ int lua_PhysicsRigidBody_getMass(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsRigidBody_getMass - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -832,7 +859,7 @@ int lua_PhysicsRigidBody_getNode(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsRigidBody_getNode - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -869,7 +896,7 @@ int lua_PhysicsRigidBody_getRestitution(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsRigidBody_getRestitution - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -906,7 +933,7 @@ int lua_PhysicsRigidBody_getShapeType(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsRigidBody_getShapeType - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -943,7 +970,7 @@ int lua_PhysicsRigidBody_getType(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsRigidBody_getType - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -980,7 +1007,7 @@ int lua_PhysicsRigidBody_isDynamic(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsRigidBody_isDynamic - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1017,7 +1044,7 @@ int lua_PhysicsRigidBody_isEnabled(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsRigidBody_isEnabled - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1054,7 +1081,7 @@ int lua_PhysicsRigidBody_isKinematic(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsRigidBody_isKinematic - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1091,7 +1118,7 @@ int lua_PhysicsRigidBody_isStatic(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsRigidBody_isStatic - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1127,9 +1154,20 @@ int lua_PhysicsRigidBody_removeCollisionListener(lua_State* state)
                 
                 
                 return 0;
                 return 0;
             }
             }
+            else if ((lua_type(state, 1) == LUA_TUSERDATA) &&
+                (lua_type(state, 2) == LUA_TSTRING || lua_type(state, 2) == LUA_TNIL))
+            {
+                // Get parameter 1 off the stack.
+                const char* param1 = ScriptController::getInstance()->getString(2, false);
+
+                PhysicsRigidBody* instance = getInstance(state);
+                instance->removeCollisionListener(param1);
+                
+                return 0;
+            }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsRigidBody_removeCollisionListener - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1151,9 +1189,24 @@ int lua_PhysicsRigidBody_removeCollisionListener(lua_State* state)
                 
                 
                 return 0;
                 return 0;
             }
             }
+            else if ((lua_type(state, 1) == LUA_TUSERDATA) &&
+                (lua_type(state, 2) == LUA_TSTRING || lua_type(state, 2) == LUA_TNIL) &&
+                (lua_type(state, 3) == LUA_TUSERDATA || lua_type(state, 3) == LUA_TTABLE || lua_type(state, 3) == LUA_TNIL))
+            {
+                // Get parameter 1 off the stack.
+                const char* param1 = ScriptController::getInstance()->getString(2, false);
+
+                // Get parameter 2 off the stack.
+                PhysicsCollisionObject* param2 = ScriptController::getInstance()->getObjectPointer<PhysicsCollisionObject>(3, "PhysicsCollisionObject", false);
+
+                PhysicsRigidBody* instance = getInstance(state);
+                instance->removeCollisionListener(param1, param2);
+                
+                return 0;
+            }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsRigidBody_removeCollisionListener - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1191,7 +1244,7 @@ int lua_PhysicsRigidBody_setAngularVelocity(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsRigidBody_setAngularVelocity - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1229,7 +1282,7 @@ int lua_PhysicsRigidBody_setAnisotropicFriction(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsRigidBody_setAnisotropicFriction - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1271,7 +1324,7 @@ int lua_PhysicsRigidBody_setDamping(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsRigidBody_setDamping - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1309,7 +1362,7 @@ int lua_PhysicsRigidBody_setEnabled(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsRigidBody_setEnabled - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1347,7 +1400,7 @@ int lua_PhysicsRigidBody_setFriction(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsRigidBody_setFriction - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1385,7 +1438,7 @@ int lua_PhysicsRigidBody_setGravity(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsRigidBody_setGravity - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1423,7 +1476,7 @@ int lua_PhysicsRigidBody_setKinematic(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsRigidBody_setKinematic - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1461,7 +1514,7 @@ int lua_PhysicsRigidBody_setLinearVelocity(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsRigidBody_setLinearVelocity - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1499,7 +1552,7 @@ int lua_PhysicsRigidBody_setRestitution(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsRigidBody_setRestitution - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;

+ 9 - 8
gameplay/src/lua/lua_PhysicsRigidBodyParameters.cpp

@@ -11,6 +11,7 @@
 #include "PhysicsCollisionObject.h"
 #include "PhysicsCollisionObject.h"
 #include "PhysicsController.h"
 #include "PhysicsController.h"
 #include "PhysicsRigidBody.h"
 #include "PhysicsRigidBody.h"
+#include "ScriptListener.h"
 #include "Transform.h"
 #include "Transform.h"
 #include "lua_CurveInterpolationType.h"
 #include "lua_CurveInterpolationType.h"
 #include "lua_PhysicsCollisionObjectCollisionListenerEventType.h"
 #include "lua_PhysicsCollisionObjectCollisionListenerEventType.h"
@@ -74,7 +75,7 @@ int lua_PhysicsRigidBodyParameters__gc(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsRigidBodyParameters__gc - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -141,7 +142,7 @@ int lua_PhysicsRigidBodyParameters__init(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsRigidBodyParameters__init - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -175,7 +176,7 @@ int lua_PhysicsRigidBodyParameters__init(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsRigidBodyParameters__init - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -213,7 +214,7 @@ int lua_PhysicsRigidBodyParameters__init(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsRigidBodyParameters__init - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -255,7 +256,7 @@ int lua_PhysicsRigidBodyParameters__init(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsRigidBodyParameters__init - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -301,7 +302,7 @@ int lua_PhysicsRigidBodyParameters__init(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsRigidBodyParameters__init - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -351,7 +352,7 @@ int lua_PhysicsRigidBodyParameters__init(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsRigidBodyParameters__init - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -405,7 +406,7 @@ int lua_PhysicsRigidBodyParameters__init(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsRigidBodyParameters__init - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;

+ 7 - 7
gameplay/src/lua/lua_PhysicsSocketConstraint.cpp

@@ -64,7 +64,7 @@ int lua_PhysicsSocketConstraint_getBreakingImpulse(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsSocketConstraint_getBreakingImpulse - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -101,7 +101,7 @@ int lua_PhysicsSocketConstraint_isEnabled(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsSocketConstraint_isEnabled - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -139,7 +139,7 @@ int lua_PhysicsSocketConstraint_setBreakingImpulse(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsSocketConstraint_setBreakingImpulse - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -177,7 +177,7 @@ int lua_PhysicsSocketConstraint_setEnabled(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsSocketConstraint_setEnabled - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -229,7 +229,7 @@ int lua_PhysicsSocketConstraint_static_centerOfMassMidpoint(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsSocketConstraint_static_centerOfMassMidpoint - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -281,7 +281,7 @@ int lua_PhysicsSocketConstraint_static_getRotationOffset(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsSocketConstraint_static_getRotationOffset - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -333,7 +333,7 @@ int lua_PhysicsSocketConstraint_static_getTranslationOffset(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsSocketConstraint_static_getTranslationOffset - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;

+ 31 - 31
gameplay/src/lua/lua_PhysicsSpringConstraint.cpp

@@ -89,7 +89,7 @@ int lua_PhysicsSpringConstraint_getBreakingImpulse(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsSpringConstraint_getBreakingImpulse - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -135,7 +135,7 @@ int lua_PhysicsSpringConstraint_getRotationOffsetA(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsSpringConstraint_getRotationOffsetA - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -181,7 +181,7 @@ int lua_PhysicsSpringConstraint_getRotationOffsetB(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsSpringConstraint_getRotationOffsetB - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -227,7 +227,7 @@ int lua_PhysicsSpringConstraint_getTranslationOffsetA(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsSpringConstraint_getTranslationOffsetA - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -273,7 +273,7 @@ int lua_PhysicsSpringConstraint_getTranslationOffsetB(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsSpringConstraint_getTranslationOffsetB - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -310,7 +310,7 @@ int lua_PhysicsSpringConstraint_isEnabled(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsSpringConstraint_isEnabled - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -348,7 +348,7 @@ int lua_PhysicsSpringConstraint_setAngularDampingX(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsSpringConstraint_setAngularDampingX - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -386,7 +386,7 @@ int lua_PhysicsSpringConstraint_setAngularDampingY(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsSpringConstraint_setAngularDampingY - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -424,7 +424,7 @@ int lua_PhysicsSpringConstraint_setAngularDampingZ(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsSpringConstraint_setAngularDampingZ - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -462,7 +462,7 @@ int lua_PhysicsSpringConstraint_setAngularLowerLimit(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsSpringConstraint_setAngularLowerLimit - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -500,7 +500,7 @@ int lua_PhysicsSpringConstraint_setAngularStrengthX(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsSpringConstraint_setAngularStrengthX - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -538,7 +538,7 @@ int lua_PhysicsSpringConstraint_setAngularStrengthY(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsSpringConstraint_setAngularStrengthY - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -576,7 +576,7 @@ int lua_PhysicsSpringConstraint_setAngularStrengthZ(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsSpringConstraint_setAngularStrengthZ - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -614,7 +614,7 @@ int lua_PhysicsSpringConstraint_setAngularUpperLimit(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsSpringConstraint_setAngularUpperLimit - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -652,7 +652,7 @@ int lua_PhysicsSpringConstraint_setBreakingImpulse(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsSpringConstraint_setBreakingImpulse - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -690,7 +690,7 @@ int lua_PhysicsSpringConstraint_setEnabled(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsSpringConstraint_setEnabled - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -728,7 +728,7 @@ int lua_PhysicsSpringConstraint_setLinearDampingX(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsSpringConstraint_setLinearDampingX - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -766,7 +766,7 @@ int lua_PhysicsSpringConstraint_setLinearDampingY(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsSpringConstraint_setLinearDampingY - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -804,7 +804,7 @@ int lua_PhysicsSpringConstraint_setLinearDampingZ(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsSpringConstraint_setLinearDampingZ - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -842,7 +842,7 @@ int lua_PhysicsSpringConstraint_setLinearLowerLimit(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsSpringConstraint_setLinearLowerLimit - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -880,7 +880,7 @@ int lua_PhysicsSpringConstraint_setLinearStrengthX(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsSpringConstraint_setLinearStrengthX - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -918,7 +918,7 @@ int lua_PhysicsSpringConstraint_setLinearStrengthY(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsSpringConstraint_setLinearStrengthY - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -956,7 +956,7 @@ int lua_PhysicsSpringConstraint_setLinearStrengthZ(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsSpringConstraint_setLinearStrengthZ - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -994,7 +994,7 @@ int lua_PhysicsSpringConstraint_setLinearUpperLimit(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsSpringConstraint_setLinearUpperLimit - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1032,7 +1032,7 @@ int lua_PhysicsSpringConstraint_setRotationOffsetA(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsSpringConstraint_setRotationOffsetA - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1070,7 +1070,7 @@ int lua_PhysicsSpringConstraint_setRotationOffsetB(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsSpringConstraint_setRotationOffsetB - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1108,7 +1108,7 @@ int lua_PhysicsSpringConstraint_setTranslationOffsetA(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsSpringConstraint_setTranslationOffsetA - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1146,7 +1146,7 @@ int lua_PhysicsSpringConstraint_setTranslationOffsetB(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsSpringConstraint_setTranslationOffsetB - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1198,7 +1198,7 @@ int lua_PhysicsSpringConstraint_static_centerOfMassMidpoint(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsSpringConstraint_static_centerOfMassMidpoint - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1250,7 +1250,7 @@ int lua_PhysicsSpringConstraint_static_getRotationOffset(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsSpringConstraint_static_getRotationOffset - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1302,7 +1302,7 @@ int lua_PhysicsSpringConstraint_static_getTranslationOffset(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_PhysicsSpringConstraint_static_getTranslationOffset - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;

+ 14 - 14
gameplay/src/lua/lua_Plane.cpp

@@ -73,7 +73,7 @@ int lua_Plane__gc(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Plane__gc - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -140,7 +140,7 @@ int lua_Plane__init(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Plane__init - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -174,7 +174,7 @@ int lua_Plane__init(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Plane__init - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -215,7 +215,7 @@ int lua_Plane_distance(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Plane_distance - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -252,7 +252,7 @@ int lua_Plane_getDistance(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Plane_getDistance - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -298,7 +298,7 @@ int lua_Plane_getNormal(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Plane_getNormal - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -395,7 +395,7 @@ int lua_Plane_intersects(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Plane_intersects - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -436,7 +436,7 @@ int lua_Plane_isParallel(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Plane_isParallel - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -474,7 +474,7 @@ int lua_Plane_set(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Plane_set - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -498,7 +498,7 @@ int lua_Plane_set(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Plane_set - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -536,7 +536,7 @@ int lua_Plane_setDistance(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Plane_setDistance - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -574,7 +574,7 @@ int lua_Plane_setNormal(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Plane_setNormal - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -673,7 +673,7 @@ int lua_Plane_static_intersection(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Plane_static_intersection - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -711,7 +711,7 @@ int lua_Plane_transform(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Plane_transform - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;

+ 12 - 12
gameplay/src/lua/lua_Platform.cpp

@@ -76,7 +76,7 @@ int lua_Platform__gc(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Platform__gc - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -113,7 +113,7 @@ int lua_Platform_enterMessagePump(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Platform_enterMessagePump - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -161,7 +161,7 @@ int lua_Platform_static_create(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Platform_static_create - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -197,7 +197,7 @@ int lua_Platform_static_displayKeyboard(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Platform_static_displayKeyboard - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -265,7 +265,7 @@ int lua_Platform_static_getAccelerometerValues(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Platform_static_getAccelerometerValues - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -417,7 +417,7 @@ int lua_Platform_static_keyEventInternal(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Platform_static_keyEventInternal - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -468,7 +468,7 @@ int lua_Platform_static_mouseEventInternal(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Platform_static_mouseEventInternal - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -504,7 +504,7 @@ int lua_Platform_static_setAbsoluteTime(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Platform_static_setAbsoluteTime - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -540,7 +540,7 @@ int lua_Platform_static_setMultiTouch(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Platform_static_setMultiTouch - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -576,7 +576,7 @@ int lua_Platform_static_setVsync(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Platform_static_setVsync - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -637,7 +637,7 @@ int lua_Platform_static_sleep(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Platform_static_sleep - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -710,7 +710,7 @@ int lua_Platform_static_touchEventInternal(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Platform_static_touchEventInternal - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;

+ 27 - 27
gameplay/src/lua/lua_Properties.cpp

@@ -77,7 +77,7 @@ int lua_Properties__gc(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Properties__gc - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -118,7 +118,7 @@ int lua_Properties_exists(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Properties_exists - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -155,7 +155,7 @@ int lua_Properties_getBool(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Properties_getBool - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -178,7 +178,7 @@ int lua_Properties_getBool(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Properties_getBool - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -241,7 +241,7 @@ int lua_Properties_getColor(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Properties_getColor - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -278,7 +278,7 @@ int lua_Properties_getFloat(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Properties_getFloat - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -301,7 +301,7 @@ int lua_Properties_getFloat(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Properties_getFloat - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -338,7 +338,7 @@ int lua_Properties_getId(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Properties_getId - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -375,7 +375,7 @@ int lua_Properties_getInt(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Properties_getInt - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -398,7 +398,7 @@ int lua_Properties_getInt(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Properties_getInt - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -435,7 +435,7 @@ int lua_Properties_getLong(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Properties_getLong - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -458,7 +458,7 @@ int lua_Properties_getLong(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Properties_getLong - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -503,7 +503,7 @@ int lua_Properties_getMatrix(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Properties_getMatrix - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -540,7 +540,7 @@ int lua_Properties_getNamespace(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Properties_getNamespace - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -572,7 +572,7 @@ int lua_Properties_getNamespace(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Properties_getNamespace - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -608,7 +608,7 @@ int lua_Properties_getNamespace(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Properties_getNamespace - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -654,7 +654,7 @@ int lua_Properties_getNextNamespace(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Properties_getNextNamespace - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -699,7 +699,7 @@ int lua_Properties_getQuaternionFromAxisAngle(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Properties_getQuaternionFromAxisAngle - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -736,7 +736,7 @@ int lua_Properties_getString(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Properties_getString - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -759,7 +759,7 @@ int lua_Properties_getString(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Properties_getString - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -796,7 +796,7 @@ int lua_Properties_getType(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Properties_getType - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -819,7 +819,7 @@ int lua_Properties_getType(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Properties_getType - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -864,7 +864,7 @@ int lua_Properties_getVector2(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Properties_getVector2 - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -909,7 +909,7 @@ int lua_Properties_getVector3(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Properties_getVector3 - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -954,7 +954,7 @@ int lua_Properties_getVector4(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Properties_getVector4 - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -988,7 +988,7 @@ int lua_Properties_rewind(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Properties_rewind - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1036,7 +1036,7 @@ int lua_Properties_static_create(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Properties_static_create - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;

+ 24 - 24
gameplay/src/lua/lua_Quaternion.cpp

@@ -77,7 +77,7 @@ int lua_Quaternion__gc(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Quaternion__gc - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -186,7 +186,7 @@ int lua_Quaternion__init(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Quaternion__init - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -220,7 +220,7 @@ int lua_Quaternion__init(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Quaternion__init - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -262,7 +262,7 @@ int lua_Quaternion__init(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Quaternion__init - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -296,7 +296,7 @@ int lua_Quaternion_conjugate(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Quaternion_conjugate - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -316,7 +316,7 @@ int lua_Quaternion_conjugate(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Quaternion_conjugate - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -353,7 +353,7 @@ int lua_Quaternion_inverse(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Quaternion_inverse - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -376,7 +376,7 @@ int lua_Quaternion_inverse(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Quaternion_inverse - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -413,7 +413,7 @@ int lua_Quaternion_isIdentity(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Quaternion_isIdentity - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -450,7 +450,7 @@ int lua_Quaternion_isZero(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Quaternion_isZero - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -488,7 +488,7 @@ int lua_Quaternion_multiply(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Quaternion_multiply - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -522,7 +522,7 @@ int lua_Quaternion_normalize(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Quaternion_normalize - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -542,7 +542,7 @@ int lua_Quaternion_normalize(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Quaternion_normalize - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -602,7 +602,7 @@ int lua_Quaternion_set(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Quaternion_set - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -626,7 +626,7 @@ int lua_Quaternion_set(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Quaternion_set - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -658,7 +658,7 @@ int lua_Quaternion_set(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Quaternion_set - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -692,7 +692,7 @@ int lua_Quaternion_setIdentity(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Quaternion_setIdentity - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -736,7 +736,7 @@ int lua_Quaternion_static_createFromAxisAngle(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Quaternion_static_createFromAxisAngle - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -776,7 +776,7 @@ int lua_Quaternion_static_createFromRotationMatrix(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Quaternion_static_createFromRotationMatrix - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -861,7 +861,7 @@ int lua_Quaternion_static_lerp(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Quaternion_static_lerp - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -905,7 +905,7 @@ int lua_Quaternion_static_multiply(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Quaternion_static_multiply - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -953,7 +953,7 @@ int lua_Quaternion_static_slerp(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Quaternion_static_slerp - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1009,7 +1009,7 @@ int lua_Quaternion_static_squad(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Quaternion_static_squad - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;
@@ -1087,7 +1087,7 @@ int lua_Quaternion_toAxisAngle(lua_State* state)
             }
             }
             else
             else
             {
             {
-                lua_pushstring(state, "Failed to match the given parameters to a valid function signature.");
+                lua_pushstring(state, "lua_Quaternion_toAxisAngle - Failed to match the given parameters to a valid function signature.");
                 lua_error(state);
                 lua_error(state);
             }
             }
             break;
             break;

Beberapa file tidak ditampilkan karena terlalu banyak file yang berubah dalam diff ini