AvatarRTMgrWrap.cs 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221
  1. //this source code was auto-generated by tolua#, do not modify it
  2. using System;
  3. using LuaInterface;
  4. public class AvatarRTMgrWrap
  5. {
  6. public static void Register(LuaState L)
  7. {
  8. L.BeginClass(typeof(AvatarRTMgr), typeof(Singleton<AvatarRTMgr>));
  9. L.RegFunction("Init", Init);
  10. L.RegFunction("UnInit", UnInit);
  11. L.RegFunction("LoadPreviewActors", LoadPreviewActors);
  12. L.RegFunction("GetActorRT", GetActorRT);
  13. L.RegFunction("FindActorByID", FindActorByID);
  14. L.RegFunction("PlayAnim", PlayAnim);
  15. L.RegFunction("Hide", Hide);
  16. L.RegFunction("Clear", Clear);
  17. L.RegFunction("RemoveActor", RemoveActor);
  18. L.RegFunction("New", _CreateAvatarRTMgr);
  19. L.RegFunction("__tostring", ToLua.op_ToString);
  20. L.RegVar("IsLoading", get_IsLoading, null);
  21. L.EndClass();
  22. }
  23. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  24. static int _CreateAvatarRTMgr(IntPtr L)
  25. {
  26. try
  27. {
  28. int count = LuaDLL.lua_gettop(L);
  29. if (count == 0)
  30. {
  31. AvatarRTMgr obj = new AvatarRTMgr();
  32. ToLua.PushObject(L, obj);
  33. return 1;
  34. }
  35. else
  36. {
  37. return LuaDLL.luaL_throw(L, "invalid arguments to ctor method: AvatarRTMgr.New");
  38. }
  39. }
  40. catch (Exception e)
  41. {
  42. return LuaDLL.toluaL_exception(L, e);
  43. }
  44. }
  45. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  46. static int Init(IntPtr L)
  47. {
  48. try
  49. {
  50. ToLua.CheckArgsCount(L, 1);
  51. AvatarRTMgr obj = (AvatarRTMgr)ToLua.CheckObject<AvatarRTMgr>(L, 1);
  52. obj.Init();
  53. return 0;
  54. }
  55. catch (Exception e)
  56. {
  57. return LuaDLL.toluaL_exception(L, e);
  58. }
  59. }
  60. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  61. static int UnInit(IntPtr L)
  62. {
  63. try
  64. {
  65. ToLua.CheckArgsCount(L, 1);
  66. AvatarRTMgr obj = (AvatarRTMgr)ToLua.CheckObject<AvatarRTMgr>(L, 1);
  67. obj.UnInit();
  68. return 0;
  69. }
  70. catch (Exception e)
  71. {
  72. return LuaDLL.toluaL_exception(L, e);
  73. }
  74. }
  75. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  76. static int LoadPreviewActors(IntPtr L)
  77. {
  78. try
  79. {
  80. ToLua.CheckArgsCount(L, 3);
  81. AvatarRTMgr obj = (AvatarRTMgr)ToLua.CheckObject<AvatarRTMgr>(L, 1);
  82. ActorData[] arg0 = ToLua.CheckObjectArray<ActorData>(L, 2);
  83. LuaTable arg1 = ToLua.CheckLuaTable(L, 3);
  84. obj.LoadPreviewActors(arg0, arg1);
  85. return 0;
  86. }
  87. catch (Exception e)
  88. {
  89. return LuaDLL.toluaL_exception(L, e);
  90. }
  91. }
  92. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  93. static int GetActorRT(IntPtr L)
  94. {
  95. try
  96. {
  97. ToLua.CheckArgsCount(L, 2);
  98. AvatarRTMgr obj = (AvatarRTMgr)ToLua.CheckObject<AvatarRTMgr>(L, 1);
  99. long arg0 = LuaDLL.tolua_checkint64(L, 2);
  100. UnityEngine.RenderTexture o = obj.GetActorRT(arg0);
  101. ToLua.Push(L, o);
  102. return 1;
  103. }
  104. catch (Exception e)
  105. {
  106. return LuaDLL.toluaL_exception(L, e);
  107. }
  108. }
  109. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  110. static int FindActorByID(IntPtr L)
  111. {
  112. try
  113. {
  114. ToLua.CheckArgsCount(L, 2);
  115. AvatarRTMgr obj = (AvatarRTMgr)ToLua.CheckObject<AvatarRTMgr>(L, 1);
  116. long arg0 = LuaDLL.tolua_checkint64(L, 2);
  117. ActorAvatar o = obj.FindActorByID(arg0);
  118. ToLua.PushObject(L, o);
  119. return 1;
  120. }
  121. catch (Exception e)
  122. {
  123. return LuaDLL.toluaL_exception(L, e);
  124. }
  125. }
  126. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  127. static int PlayAnim(IntPtr L)
  128. {
  129. try
  130. {
  131. ToLua.CheckArgsCount(L, 3);
  132. AvatarRTMgr obj = (AvatarRTMgr)ToLua.CheckObject<AvatarRTMgr>(L, 1);
  133. long arg0 = LuaDLL.tolua_checkint64(L, 2);
  134. string arg1 = ToLua.CheckString(L, 3);
  135. obj.PlayAnim(arg0, arg1);
  136. return 0;
  137. }
  138. catch (Exception e)
  139. {
  140. return LuaDLL.toluaL_exception(L, e);
  141. }
  142. }
  143. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  144. static int Hide(IntPtr L)
  145. {
  146. try
  147. {
  148. ToLua.CheckArgsCount(L, 1);
  149. AvatarRTMgr obj = (AvatarRTMgr)ToLua.CheckObject<AvatarRTMgr>(L, 1);
  150. obj.Hide();
  151. return 0;
  152. }
  153. catch (Exception e)
  154. {
  155. return LuaDLL.toluaL_exception(L, e);
  156. }
  157. }
  158. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  159. static int Clear(IntPtr L)
  160. {
  161. try
  162. {
  163. ToLua.CheckArgsCount(L, 1);
  164. AvatarRTMgr obj = (AvatarRTMgr)ToLua.CheckObject<AvatarRTMgr>(L, 1);
  165. obj.Clear();
  166. return 0;
  167. }
  168. catch (Exception e)
  169. {
  170. return LuaDLL.toluaL_exception(L, e);
  171. }
  172. }
  173. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  174. static int RemoveActor(IntPtr L)
  175. {
  176. try
  177. {
  178. ToLua.CheckArgsCount(L, 2);
  179. AvatarRTMgr obj = (AvatarRTMgr)ToLua.CheckObject<AvatarRTMgr>(L, 1);
  180. long arg0 = LuaDLL.tolua_checkint64(L, 2);
  181. obj.RemoveActor(arg0);
  182. return 0;
  183. }
  184. catch (Exception e)
  185. {
  186. return LuaDLL.toluaL_exception(L, e);
  187. }
  188. }
  189. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  190. static int get_IsLoading(IntPtr L)
  191. {
  192. object o = null;
  193. try
  194. {
  195. o = ToLua.ToObject(L, 1);
  196. AvatarRTMgr obj = (AvatarRTMgr)o;
  197. bool ret = obj.IsLoading;
  198. LuaDLL.lua_pushboolean(L, ret);
  199. return 1;
  200. }
  201. catch(Exception e)
  202. {
  203. return LuaDLL.toluaL_exception(L, e, o, "attempt to index IsLoading on a nil value");
  204. }
  205. }
  206. }