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

53 lines
1.2 KiB

  1. //this source code was auto-generated by tolua#, do not modify it
  2. using System;
  3. using LuaInterface;
  4. public class BaseWrap
  5. {
  6. public static void Register(LuaState L)
  7. {
  8. L.BeginClass(typeof(Base), typeof(UnityEngine.MonoBehaviour));
  9. L.RegFunction("__eq", op_Equality);
  10. L.RegFunction("__tostring", ToLua.op_ToString);
  11. L.RegVar("ResManager", get_ResManager, null);
  12. L.EndClass();
  13. }
  14. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  15. static int op_Equality(IntPtr L)
  16. {
  17. try
  18. {
  19. ToLua.CheckArgsCount(L, 2);
  20. UnityEngine.Object arg0 = (UnityEngine.Object)ToLua.ToObject(L, 1);
  21. UnityEngine.Object arg1 = (UnityEngine.Object)ToLua.ToObject(L, 2);
  22. bool o = arg0 == arg1;
  23. LuaDLL.lua_pushboolean(L, o);
  24. return 1;
  25. }
  26. catch(Exception e)
  27. {
  28. return LuaDLL.toluaL_exception(L, e);
  29. }
  30. }
  31. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  32. static int get_ResManager(IntPtr L)
  33. {
  34. object o = null;
  35. try
  36. {
  37. o = ToLua.ToObject(L, 1);
  38. Base obj = (Base)o;
  39. LuaFramework.ResourceManager ret = obj.ResManager;
  40. ToLua.Push(L, ret);
  41. return 1;
  42. }
  43. catch(Exception e)
  44. {
  45. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index ResManager on a nil value" : e.Message);
  46. }
  47. }
  48. }