| 123456789101112131415161718192021222324252627282930313233343536373839404142 |
- using System;
- using LuaInterface;
- public class ToLua_LuaInterface_LuaConstructor
- {
- public static string CallDefined =
- @" try
- {
- LuaConstructor obj = (LuaConstructor)ToLua.CheckObject(L, 1, typeof(LuaConstructor));
- return obj.Call(L);
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }";
- public static string DestroyDefined =
- @" try
- {
- ToLua.CheckArgsCount(L, 1);
- LuaConstructor obj = (LuaConstructor)ToLua.CheckObject(L, 1, typeof(LuaConstructor));
- obj.Destroy();
- ToLua.Destroy(L);
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }";
- [UseDefinedAttribute]
- public void Destroy()
- {
- }
- [UseDefinedAttribute]
- public int Call(IntPtr L)
- {
- return 0;
- }
- }
|