| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- //this source code was auto-generated by tolua#, do not modify it
- using System;
- using LuaInterface;
- public class UIPlayVideoWrap
- {
- public static void Register(LuaState L)
- {
- L.BeginClass(typeof(UIPlayVideo), typeof(UnityEngine.EventSystems.UIBehaviour), "UIPlayVideo");
- L.RegFunction("BindLuaCallBack", BindLuaCallBack);
- L.RegFunction("Play", Play);
- L.RegFunction("__eq", op_Equality);
- L.RegFunction("__tostring", ToLua.op_ToString);
- L.EndClass();
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int BindLuaCallBack(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 3);
- UIPlayVideo obj = (UIPlayVideo)ToLua.CheckObject<UIPlayVideo>(L, 1);
- LuaTable arg0 = ToLua.CheckLuaTable(L, 2);
- LuaFunction arg1 = ToLua.CheckLuaFunction(L, 3);
- obj.BindLuaCallBack(arg0, arg1);
- return 0;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int Play(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 2);
- UIPlayVideo obj = (UIPlayVideo)ToLua.CheckObject<UIPlayVideo>(L, 1);
- string arg0 = ToLua.CheckString(L, 2);
- obj.Play(arg0);
- return 0;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int op_Equality(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 2);
- UnityEngine.Object arg0 = (UnityEngine.Object)ToLua.ToObject(L, 1);
- UnityEngine.Object arg1 = (UnityEngine.Object)ToLua.ToObject(L, 2);
- bool o = arg0 == arg1;
- LuaDLL.lua_pushboolean(L, o);
- return 1;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- }
|