System_EventArgsWrap.cs 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. //this source code was auto-generated by tolua#, do not modify it
  2. using System;
  3. using LuaInterface;
  4. public class System_EventArgsWrap
  5. {
  6. public static void Register(LuaState L)
  7. {
  8. L.BeginClass(typeof(System.EventArgs), typeof(System.Object), "EventArgs");
  9. L.RegFunction("New", _CreateSystem_EventArgs);
  10. L.RegFunction("__tostring", ToLua.op_ToString);
  11. L.RegVar("Empty", get_Empty, null);
  12. L.EndClass();
  13. }
  14. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  15. static int _CreateSystem_EventArgs(IntPtr L)
  16. {
  17. try
  18. {
  19. int count = LuaDLL.lua_gettop(L);
  20. if (count == 0)
  21. {
  22. System.EventArgs obj = new System.EventArgs();
  23. ToLua.PushObject(L, obj);
  24. return 1;
  25. }
  26. else
  27. {
  28. return LuaDLL.luaL_throw(L, "invalid arguments to ctor method: System.EventArgs.New");
  29. }
  30. }
  31. catch (Exception e)
  32. {
  33. return LuaDLL.toluaL_exception(L, e);
  34. }
  35. }
  36. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  37. static int get_Empty(IntPtr L)
  38. {
  39. try
  40. {
  41. ToLua.PushObject(L, System.EventArgs.Empty);
  42. return 1;
  43. }
  44. catch (Exception e)
  45. {
  46. return LuaDLL.toluaL_exception(L, e);
  47. }
  48. }
  49. }