UIPlayVideoWrap.cs 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. //this source code was auto-generated by tolua#, do not modify it
  2. using System;
  3. using LuaInterface;
  4. public class UIPlayVideoWrap
  5. {
  6. public static void Register(LuaState L)
  7. {
  8. L.BeginClass(typeof(UIPlayVideo), typeof(UnityEngine.EventSystems.UIBehaviour));
  9. L.RegFunction("BindLuaCallBack", BindLuaCallBack);
  10. L.RegFunction("Play", Play);
  11. L.RegFunction("__eq", op_Equality);
  12. L.RegFunction("__tostring", ToLua.op_ToString);
  13. L.EndClass();
  14. }
  15. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  16. static int BindLuaCallBack(IntPtr L)
  17. {
  18. try
  19. {
  20. ToLua.CheckArgsCount(L, 3);
  21. UIPlayVideo obj = (UIPlayVideo)ToLua.CheckObject<UIPlayVideo>(L, 1);
  22. LuaTable arg0 = ToLua.CheckLuaTable(L, 2);
  23. LuaFunction arg1 = ToLua.CheckLuaFunction(L, 3);
  24. obj.BindLuaCallBack(arg0, arg1);
  25. return 0;
  26. }
  27. catch (Exception e)
  28. {
  29. return LuaDLL.toluaL_exception(L, e);
  30. }
  31. }
  32. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  33. static int Play(IntPtr L)
  34. {
  35. try
  36. {
  37. ToLua.CheckArgsCount(L, 2);
  38. UIPlayVideo obj = (UIPlayVideo)ToLua.CheckObject<UIPlayVideo>(L, 1);
  39. string arg0 = ToLua.CheckString(L, 2);
  40. obj.Play(arg0);
  41. return 0;
  42. }
  43. catch (Exception e)
  44. {
  45. return LuaDLL.toluaL_exception(L, e);
  46. }
  47. }
  48. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  49. static int op_Equality(IntPtr L)
  50. {
  51. try
  52. {
  53. ToLua.CheckArgsCount(L, 2);
  54. UnityEngine.Object arg0 = (UnityEngine.Object)ToLua.ToObject(L, 1);
  55. UnityEngine.Object arg1 = (UnityEngine.Object)ToLua.ToObject(L, 2);
  56. bool o = arg0 == arg1;
  57. LuaDLL.lua_pushboolean(L, o);
  58. return 1;
  59. }
  60. catch (Exception e)
  61. {
  62. return LuaDLL.toluaL_exception(L, e);
  63. }
  64. }
  65. }