ToLua_LuaInterface_EventObject.cs 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. using System;
  2. using LuaInterface;
  3. public class ToLua_LuaInterface_EventObject
  4. {
  5. [NoToLuaAttribute]
  6. public static string op_AdditionDefined =
  7. @" try
  8. {
  9. EventObject arg0 = (EventObject)ToLua.CheckObject(L, 1, typeof(EventObject));
  10. arg0.func = ToLua.CheckDelegate(arg0.type, L, 2);
  11. arg0.op = EventOp.Add;
  12. ToLua.Push(L, arg0);
  13. return 1;
  14. }
  15. catch (Exception e)
  16. {
  17. return LuaDLL.toluaL_exception(L, e);
  18. }";
  19. [NoToLuaAttribute]
  20. public static string op_SubtractionDefined =
  21. @" try
  22. {
  23. EventObject arg0 = (EventObject)ToLua.CheckObject(L, 1, typeof(EventObject));
  24. arg0.func = ToLua.CheckDelegate(arg0.type, L, 2);
  25. arg0.op = EventOp.Sub;
  26. ToLua.Push(L, arg0);
  27. return 1;
  28. }
  29. catch (Exception e)
  30. {
  31. return LuaDLL.toluaL_exception(L, e);
  32. }";
  33. [UseDefinedAttribute]
  34. public static ToLua_LuaInterface_EventObject operator +(ToLua_LuaInterface_EventObject a, ToLua_LuaInterface_EventObject b)
  35. {
  36. return null;
  37. }
  38. [UseDefinedAttribute]
  39. public static ToLua_LuaInterface_EventObject operator -(ToLua_LuaInterface_EventObject a, ToLua_LuaInterface_EventObject b)
  40. {
  41. return null;
  42. }
  43. }