| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221 |
- //this source code was auto-generated by tolua#, do not modify it
- using System;
- using LuaInterface;
- public class AvatarRTMgrWrap
- {
- public static void Register(LuaState L)
- {
- L.BeginClass(typeof(AvatarRTMgr), typeof(Singleton<AvatarRTMgr>));
- L.RegFunction("Init", Init);
- L.RegFunction("UnInit", UnInit);
- L.RegFunction("LoadPreviewActors", LoadPreviewActors);
- L.RegFunction("GetActorRT", GetActorRT);
- L.RegFunction("FindActorByID", FindActorByID);
- L.RegFunction("PlayAnim", PlayAnim);
- L.RegFunction("Hide", Hide);
- L.RegFunction("Clear", Clear);
- L.RegFunction("RemoveActor", RemoveActor);
- L.RegFunction("New", _CreateAvatarRTMgr);
- L.RegFunction("__tostring", ToLua.op_ToString);
- L.RegVar("IsLoading", get_IsLoading, null);
- L.EndClass();
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int _CreateAvatarRTMgr(IntPtr L)
- {
- try
- {
- int count = LuaDLL.lua_gettop(L);
- if (count == 0)
- {
- AvatarRTMgr obj = new AvatarRTMgr();
- ToLua.PushObject(L, obj);
- return 1;
- }
- else
- {
- return LuaDLL.luaL_throw(L, "invalid arguments to ctor method: AvatarRTMgr.New");
- }
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int Init(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 1);
- AvatarRTMgr obj = (AvatarRTMgr)ToLua.CheckObject<AvatarRTMgr>(L, 1);
- obj.Init();
- return 0;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int UnInit(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 1);
- AvatarRTMgr obj = (AvatarRTMgr)ToLua.CheckObject<AvatarRTMgr>(L, 1);
- obj.UnInit();
- return 0;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int LoadPreviewActors(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 3);
- AvatarRTMgr obj = (AvatarRTMgr)ToLua.CheckObject<AvatarRTMgr>(L, 1);
- ActorData[] arg0 = ToLua.CheckObjectArray<ActorData>(L, 2);
- LuaTable arg1 = ToLua.CheckLuaTable(L, 3);
- obj.LoadPreviewActors(arg0, arg1);
- return 0;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int GetActorRT(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 2);
- AvatarRTMgr obj = (AvatarRTMgr)ToLua.CheckObject<AvatarRTMgr>(L, 1);
- long arg0 = LuaDLL.tolua_checkint64(L, 2);
- UnityEngine.RenderTexture o = obj.GetActorRT(arg0);
- ToLua.Push(L, o);
- return 1;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int FindActorByID(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 2);
- AvatarRTMgr obj = (AvatarRTMgr)ToLua.CheckObject<AvatarRTMgr>(L, 1);
- long arg0 = LuaDLL.tolua_checkint64(L, 2);
- ActorAvatar o = obj.FindActorByID(arg0);
- ToLua.PushObject(L, o);
- return 1;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int PlayAnim(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 3);
- AvatarRTMgr obj = (AvatarRTMgr)ToLua.CheckObject<AvatarRTMgr>(L, 1);
- long arg0 = LuaDLL.tolua_checkint64(L, 2);
- string arg1 = ToLua.CheckString(L, 3);
- obj.PlayAnim(arg0, arg1);
- return 0;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int Hide(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 1);
- AvatarRTMgr obj = (AvatarRTMgr)ToLua.CheckObject<AvatarRTMgr>(L, 1);
- obj.Hide();
- return 0;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int Clear(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 1);
- AvatarRTMgr obj = (AvatarRTMgr)ToLua.CheckObject<AvatarRTMgr>(L, 1);
- obj.Clear();
- return 0;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int RemoveActor(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 2);
- AvatarRTMgr obj = (AvatarRTMgr)ToLua.CheckObject<AvatarRTMgr>(L, 1);
- long arg0 = LuaDLL.tolua_checkint64(L, 2);
- obj.RemoveActor(arg0);
- return 0;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_IsLoading(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- AvatarRTMgr obj = (AvatarRTMgr)o;
- bool ret = obj.IsLoading;
- LuaDLL.lua_pushboolean(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index IsLoading on a nil value");
- }
- }
- }
|