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

39 lines
827 B

  1. //this source code was auto-generated by tolua#, do not modify it
  2. using System;
  3. using LuaInterface;
  4. public class ResolutionWrap
  5. {
  6. public static void Register(LuaState L)
  7. {
  8. L.BeginEnum(typeof(Resolution));
  9. L.RegVar("Low", get_Low, null);
  10. L.RegVar("High", get_High, null);
  11. L.RegFunction("IntToEnum", IntToEnum);
  12. L.EndEnum();
  13. }
  14. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  15. static int get_Low(IntPtr L)
  16. {
  17. ToLua.Push(L, Resolution.Low);
  18. return 1;
  19. }
  20. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  21. static int get_High(IntPtr L)
  22. {
  23. ToLua.Push(L, Resolution.High);
  24. return 1;
  25. }
  26. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  27. static int IntToEnum(IntPtr L)
  28. {
  29. int arg0 = (int)LuaDLL.lua_tonumber(L, 1);
  30. Resolution o = (Resolution)arg0;
  31. ToLua.Push(L, o);
  32. return 1;
  33. }
  34. }