源战役客户端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

108 lines
2.7 KiB

  1. //this source code was auto-generated by tolua#, do not modify it
  2. using System;
  3. using LuaInterface;
  4. public class RenderBloomTextureWrap
  5. {
  6. public static void Register(LuaState L)
  7. {
  8. L.BeginClass(typeof(RenderBloomTexture), typeof(UnityEngine.MonoBehaviour));
  9. L.RegFunction("ChangeRenderTag", ChangeRenderTag);
  10. L.RegFunction("SetRenderShader", SetRenderShader);
  11. L.RegFunction("__eq", op_Equality);
  12. L.RegFunction("__tostring", ToLua.op_ToString);
  13. L.RegVar("m_FollowCamera", get_m_FollowCamera, set_m_FollowCamera);
  14. L.EndClass();
  15. }
  16. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  17. static int ChangeRenderTag(IntPtr L)
  18. {
  19. try
  20. {
  21. ToLua.CheckArgsCount(L, 2);
  22. RenderBloomTexture obj = (RenderBloomTexture)ToLua.CheckObject(L, 1, typeof(RenderBloomTexture));
  23. string arg0 = ToLua.CheckString(L, 2);
  24. obj.ChangeRenderTag(arg0);
  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 SetRenderShader(IntPtr L)
  34. {
  35. try
  36. {
  37. ToLua.CheckArgsCount(L, 2);
  38. RenderBloomTexture obj = (RenderBloomTexture)ToLua.CheckObject(L, 1, typeof(RenderBloomTexture));
  39. UnityEngine.Shader arg0 = (UnityEngine.Shader)ToLua.CheckUnityObject(L, 2, typeof(UnityEngine.Shader));
  40. obj.SetRenderShader(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. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  66. static int get_m_FollowCamera(IntPtr L)
  67. {
  68. object o = null;
  69. try
  70. {
  71. o = ToLua.ToObject(L, 1);
  72. RenderBloomTexture obj = (RenderBloomTexture)o;
  73. UnityEngine.Camera ret = obj.m_FollowCamera;
  74. ToLua.Push(L, ret);
  75. return 1;
  76. }
  77. catch(Exception e)
  78. {
  79. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index m_FollowCamera on a nil value" : e.Message);
  80. }
  81. }
  82. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  83. static int set_m_FollowCamera(IntPtr L)
  84. {
  85. object o = null;
  86. try
  87. {
  88. o = ToLua.ToObject(L, 1);
  89. RenderBloomTexture obj = (RenderBloomTexture)o;
  90. UnityEngine.Camera arg0 = (UnityEngine.Camera)ToLua.CheckUnityObject(L, 2, typeof(UnityEngine.Camera));
  91. obj.m_FollowCamera = arg0;
  92. return 0;
  93. }
  94. catch(Exception e)
  95. {
  96. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index m_FollowCamera on a nil value" : e.Message);
  97. }
  98. }
  99. }