MirrorCameraWrap.cs 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284
  1. //this source code was auto-generated by tolua#, do not modify it
  2. using System;
  3. using LuaInterface;
  4. public class MirrorCameraWrap
  5. {
  6. public static void Register(LuaState L)
  7. {
  8. L.BeginClass(typeof(MirrorCamera), typeof(UnityEngine.MonoBehaviour), "MirrorCamera");
  9. L.RegFunction("ResetCamera", ResetCamera);
  10. L.RegFunction("__eq", op_Equality);
  11. L.RegFunction("__tostring", ToLua.op_ToString);
  12. L.RegVar("lookCamera", get_lookCamera, set_lookCamera);
  13. L.RegVar("reflectionTransform", get_reflectionTransform, set_reflectionTransform);
  14. L.RegVar("reflectionPosition", get_reflectionPosition, set_reflectionPosition);
  15. L.RegVar("reflectionRotation", get_reflectionRotation, set_reflectionRotation);
  16. L.RegVar("reflectionUp", get_reflectionUp, set_reflectionUp);
  17. L.RegVar("clipPlaneOffset", get_clipPlaneOffset, set_clipPlaneOffset);
  18. L.EndClass();
  19. }
  20. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  21. static int ResetCamera(IntPtr L)
  22. {
  23. try
  24. {
  25. ToLua.CheckArgsCount(L, 1);
  26. MirrorCamera obj = (MirrorCamera)ToLua.CheckObject<MirrorCamera>(L, 1);
  27. obj.ResetCamera();
  28. return 0;
  29. }
  30. catch (Exception e)
  31. {
  32. return LuaDLL.toluaL_exception(L, e);
  33. }
  34. }
  35. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  36. static int op_Equality(IntPtr L)
  37. {
  38. try
  39. {
  40. ToLua.CheckArgsCount(L, 2);
  41. UnityEngine.Object arg0 = (UnityEngine.Object)ToLua.ToObject(L, 1);
  42. UnityEngine.Object arg1 = (UnityEngine.Object)ToLua.ToObject(L, 2);
  43. bool o = arg0 == arg1;
  44. LuaDLL.lua_pushboolean(L, o);
  45. return 1;
  46. }
  47. catch (Exception e)
  48. {
  49. return LuaDLL.toluaL_exception(L, e);
  50. }
  51. }
  52. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  53. static int get_lookCamera(IntPtr L)
  54. {
  55. object o = null;
  56. try
  57. {
  58. o = ToLua.ToObject(L, 1);
  59. MirrorCamera obj = (MirrorCamera)o;
  60. UnityEngine.Camera ret = obj.lookCamera;
  61. ToLua.PushSealed(L, ret);
  62. return 1;
  63. }
  64. catch(Exception e)
  65. {
  66. return LuaDLL.toluaL_exception(L, e, o, "attempt to index lookCamera on a nil value");
  67. }
  68. }
  69. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  70. static int get_reflectionTransform(IntPtr L)
  71. {
  72. object o = null;
  73. try
  74. {
  75. o = ToLua.ToObject(L, 1);
  76. MirrorCamera obj = (MirrorCamera)o;
  77. UnityEngine.Transform ret = obj.reflectionTransform;
  78. ToLua.Push(L, ret);
  79. return 1;
  80. }
  81. catch(Exception e)
  82. {
  83. return LuaDLL.toluaL_exception(L, e, o, "attempt to index reflectionTransform on a nil value");
  84. }
  85. }
  86. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  87. static int get_reflectionPosition(IntPtr L)
  88. {
  89. object o = null;
  90. try
  91. {
  92. o = ToLua.ToObject(L, 1);
  93. MirrorCamera obj = (MirrorCamera)o;
  94. UnityEngine.Vector3 ret = obj.reflectionPosition;
  95. ToLua.Push(L, ret);
  96. return 1;
  97. }
  98. catch(Exception e)
  99. {
  100. return LuaDLL.toluaL_exception(L, e, o, "attempt to index reflectionPosition on a nil value");
  101. }
  102. }
  103. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  104. static int get_reflectionRotation(IntPtr L)
  105. {
  106. object o = null;
  107. try
  108. {
  109. o = ToLua.ToObject(L, 1);
  110. MirrorCamera obj = (MirrorCamera)o;
  111. UnityEngine.Quaternion ret = obj.reflectionRotation;
  112. ToLua.Push(L, ret);
  113. return 1;
  114. }
  115. catch(Exception e)
  116. {
  117. return LuaDLL.toluaL_exception(L, e, o, "attempt to index reflectionRotation on a nil value");
  118. }
  119. }
  120. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  121. static int get_reflectionUp(IntPtr L)
  122. {
  123. object o = null;
  124. try
  125. {
  126. o = ToLua.ToObject(L, 1);
  127. MirrorCamera obj = (MirrorCamera)o;
  128. UnityEngine.Vector3 ret = obj.reflectionUp;
  129. ToLua.Push(L, ret);
  130. return 1;
  131. }
  132. catch(Exception e)
  133. {
  134. return LuaDLL.toluaL_exception(L, e, o, "attempt to index reflectionUp on a nil value");
  135. }
  136. }
  137. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  138. static int get_clipPlaneOffset(IntPtr L)
  139. {
  140. object o = null;
  141. try
  142. {
  143. o = ToLua.ToObject(L, 1);
  144. MirrorCamera obj = (MirrorCamera)o;
  145. float ret = obj.clipPlaneOffset;
  146. LuaDLL.lua_pushnumber(L, ret);
  147. return 1;
  148. }
  149. catch(Exception e)
  150. {
  151. return LuaDLL.toluaL_exception(L, e, o, "attempt to index clipPlaneOffset on a nil value");
  152. }
  153. }
  154. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  155. static int set_lookCamera(IntPtr L)
  156. {
  157. object o = null;
  158. try
  159. {
  160. o = ToLua.ToObject(L, 1);
  161. MirrorCamera obj = (MirrorCamera)o;
  162. UnityEngine.Camera arg0 = (UnityEngine.Camera)ToLua.CheckObject(L, 2, typeof(UnityEngine.Camera));
  163. obj.lookCamera = arg0;
  164. return 0;
  165. }
  166. catch(Exception e)
  167. {
  168. return LuaDLL.toluaL_exception(L, e, o, "attempt to index lookCamera on a nil value");
  169. }
  170. }
  171. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  172. static int set_reflectionTransform(IntPtr L)
  173. {
  174. object o = null;
  175. try
  176. {
  177. o = ToLua.ToObject(L, 1);
  178. MirrorCamera obj = (MirrorCamera)o;
  179. UnityEngine.Transform arg0 = (UnityEngine.Transform)ToLua.CheckObject<UnityEngine.Transform>(L, 2);
  180. obj.reflectionTransform = arg0;
  181. return 0;
  182. }
  183. catch(Exception e)
  184. {
  185. return LuaDLL.toluaL_exception(L, e, o, "attempt to index reflectionTransform on a nil value");
  186. }
  187. }
  188. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  189. static int set_reflectionPosition(IntPtr L)
  190. {
  191. object o = null;
  192. try
  193. {
  194. o = ToLua.ToObject(L, 1);
  195. MirrorCamera obj = (MirrorCamera)o;
  196. UnityEngine.Vector3 arg0 = ToLua.ToVector3(L, 2);
  197. obj.reflectionPosition = arg0;
  198. return 0;
  199. }
  200. catch(Exception e)
  201. {
  202. return LuaDLL.toluaL_exception(L, e, o, "attempt to index reflectionPosition on a nil value");
  203. }
  204. }
  205. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  206. static int set_reflectionRotation(IntPtr L)
  207. {
  208. object o = null;
  209. try
  210. {
  211. o = ToLua.ToObject(L, 1);
  212. MirrorCamera obj = (MirrorCamera)o;
  213. UnityEngine.Quaternion arg0 = ToLua.ToQuaternion(L, 2);
  214. obj.reflectionRotation = arg0;
  215. return 0;
  216. }
  217. catch(Exception e)
  218. {
  219. return LuaDLL.toluaL_exception(L, e, o, "attempt to index reflectionRotation on a nil value");
  220. }
  221. }
  222. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  223. static int set_reflectionUp(IntPtr L)
  224. {
  225. object o = null;
  226. try
  227. {
  228. o = ToLua.ToObject(L, 1);
  229. MirrorCamera obj = (MirrorCamera)o;
  230. UnityEngine.Vector3 arg0 = ToLua.ToVector3(L, 2);
  231. obj.reflectionUp = arg0;
  232. return 0;
  233. }
  234. catch(Exception e)
  235. {
  236. return LuaDLL.toluaL_exception(L, e, o, "attempt to index reflectionUp on a nil value");
  237. }
  238. }
  239. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  240. static int set_clipPlaneOffset(IntPtr L)
  241. {
  242. object o = null;
  243. try
  244. {
  245. o = ToLua.ToObject(L, 1);
  246. MirrorCamera obj = (MirrorCamera)o;
  247. float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
  248. obj.clipPlaneOffset = arg0;
  249. return 0;
  250. }
  251. catch(Exception e)
  252. {
  253. return LuaDLL.toluaL_exception(L, e, o, "attempt to index clipPlaneOffset on a nil value");
  254. }
  255. }
  256. }