| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286 |
- //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");
- }
- }
- }
|