ToLua_LuaInterface_LuaConstructor.cs 814 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. using System;
  2. using LuaInterface;
  3. public class ToLua_LuaInterface_LuaConstructor
  4. {
  5. public static string CallDefined =
  6. @" try
  7. {
  8. LuaConstructor obj = (LuaConstructor)ToLua.CheckObject(L, 1, typeof(LuaConstructor));
  9. return obj.Call(L);
  10. }
  11. catch(Exception e)
  12. {
  13. return LuaDLL.toluaL_exception(L, e);
  14. }";
  15. public static string DestroyDefined =
  16. @" try
  17. {
  18. ToLua.CheckArgsCount(L, 1);
  19. LuaConstructor obj = (LuaConstructor)ToLua.CheckObject(L, 1, typeof(LuaConstructor));
  20. obj.Destroy();
  21. ToLua.Destroy(L);
  22. return 0;
  23. }
  24. catch(Exception e)
  25. {
  26. return LuaDLL.toluaL_exception(L, e);
  27. }";
  28. [UseDefinedAttribute]
  29. public void Destroy()
  30. {
  31. }
  32. [UseDefinedAttribute]
  33. public int Call(IntPtr L)
  34. {
  35. return 0;
  36. }
  37. }