源战役客户端
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.

58 lines
1.3 KiB

  1. //this source code was auto-generated by tolua#, do not modify it
  2. using System;
  3. using LuaInterface;
  4. public class UIDepthWrap
  5. {
  6. public static void Register(LuaState L)
  7. {
  8. L.BeginClass(typeof(UIDepth), typeof(System.Object));
  9. L.RegFunction("SetUIDepth", SetUIDepth);
  10. L.RegFunction("New", _CreateUIDepth);
  11. L.RegFunction("__tostring", ToLua.op_ToString);
  12. L.EndClass();
  13. }
  14. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  15. static int _CreateUIDepth(IntPtr L)
  16. {
  17. try
  18. {
  19. int count = LuaDLL.lua_gettop(L);
  20. if (count == 0)
  21. {
  22. UIDepth obj = new UIDepth();
  23. ToLua.PushObject(L, obj);
  24. return 1;
  25. }
  26. else
  27. {
  28. return LuaDLL.luaL_throw(L, "invalid arguments to ctor method: UIDepth.New");
  29. }
  30. }
  31. catch(Exception e)
  32. {
  33. return LuaDLL.toluaL_exception(L, e);
  34. }
  35. }
  36. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  37. static int SetUIDepth(IntPtr L)
  38. {
  39. try
  40. {
  41. ToLua.CheckArgsCount(L, 3);
  42. UnityEngine.GameObject arg0 = (UnityEngine.GameObject)ToLua.CheckUnityObject(L, 1, typeof(UnityEngine.GameObject));
  43. bool arg1 = LuaDLL.luaL_checkboolean(L, 2);
  44. int arg2 = (int)LuaDLL.luaL_checknumber(L, 3);
  45. UIDepth.SetUIDepth(arg0, arg1, arg2);
  46. return 0;
  47. }
  48. catch(Exception e)
  49. {
  50. return LuaDLL.toluaL_exception(L, e);
  51. }
  52. }
  53. }