//this source code was auto-generated by tolua#, do not modify it using System; using LuaInterface; public class OutputInfoWrap { public static void Register(LuaState L) { L.BeginClass(typeof(OutputInfo), null); L.RegFunction("New", _CreateOutputInfo); L.RegFunction("__tostring", ToLua.op_ToString); L.RegVar("type", get_type, set_type); L.RegVar("timeStr", get_timeStr, set_timeStr); L.RegVar("casterName", get_casterName, set_casterName); L.RegVar("targetName", get_targetName, set_targetName); L.RegVar("skillName", get_skillName, set_skillName); L.RegVar("val", get_val, set_val); L.EndClass(); } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _CreateOutputInfo(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); if (count == 1) { OutputType arg0 = (OutputType)ToLua.CheckObject(L, 1, typeof(OutputType)); OutputInfo obj = new OutputInfo(arg0); ToLua.PushValue(L, obj); return 1; } else if (count == 0) { OutputInfo obj = new OutputInfo(); ToLua.PushValue(L, obj); return 1; } else { return LuaDLL.luaL_throw(L, "invalid arguments to ctor method: OutputInfo.New"); } } catch (Exception e) { return LuaDLL.toluaL_exception(L, e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int get_type(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); OutputInfo obj = (OutputInfo)o; OutputType ret = obj.type; ToLua.Push(L, ret); return 1; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index type on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int get_timeStr(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); OutputInfo obj = (OutputInfo)o; string ret = obj.timeStr; LuaDLL.lua_pushstring(L, ret); return 1; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index timeStr on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int get_casterName(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); OutputInfo obj = (OutputInfo)o; string ret = obj.casterName; LuaDLL.lua_pushstring(L, ret); return 1; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index casterName on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int get_targetName(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); OutputInfo obj = (OutputInfo)o; string ret = obj.targetName; LuaDLL.lua_pushstring(L, ret); return 1; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index targetName on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int get_skillName(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); OutputInfo obj = (OutputInfo)o; string ret = obj.skillName; LuaDLL.lua_pushstring(L, ret); return 1; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index skillName on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int get_val(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); OutputInfo obj = (OutputInfo)o; object ret = obj.val; ToLua.Push(L, ret); return 1; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index val on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int set_type(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); OutputInfo obj = (OutputInfo)o; OutputType arg0 = (OutputType)ToLua.CheckObject(L, 2, typeof(OutputType)); obj.type = arg0; ToLua.SetBack(L, 1, obj); return 0; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index type on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int set_timeStr(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); OutputInfo obj = (OutputInfo)o; string arg0 = ToLua.CheckString(L, 2); obj.timeStr = arg0; ToLua.SetBack(L, 1, obj); return 0; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index timeStr on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int set_casterName(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); OutputInfo obj = (OutputInfo)o; string arg0 = ToLua.CheckString(L, 2); obj.casterName = arg0; ToLua.SetBack(L, 1, obj); return 0; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index casterName on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int set_targetName(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); OutputInfo obj = (OutputInfo)o; string arg0 = ToLua.CheckString(L, 2); obj.targetName = arg0; ToLua.SetBack(L, 1, obj); return 0; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index targetName on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int set_skillName(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); OutputInfo obj = (OutputInfo)o; string arg0 = ToLua.CheckString(L, 2); obj.skillName = arg0; ToLua.SetBack(L, 1, obj); return 0; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index skillName on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int set_val(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); OutputInfo obj = (OutputInfo)o; object arg0 = ToLua.ToVarObject(L, 2); obj.val = arg0; ToLua.SetBack(L, 1, obj); return 0; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index val on a nil value"); } } }