//this source code was auto-generated by tolua#, do not modify it using System; using LuaInterface; public class ActorParamWrap { public static void Register(LuaState L) { L.BeginClass(typeof(ActorParam), typeof(System.Object)); L.RegFunction("New", _CreateActorParam); L.RegFunction("__tostring", ToLua.op_ToString); L.RegVar("uid", get_uid, set_uid); L.RegVar("baseId", get_baseId, set_baseId); L.RegVar("level", get_level, set_level); L.RegVar("jobId", get_jobId, set_jobId); L.RegVar("petId", get_petId, set_petId); L.RegVar("isMainRole", get_isMainRole, set_isMainRole); L.RegVar("isRole", get_isRole, set_isRole); L.RegVar("headFrameId", get_headFrameId, set_headFrameId); L.RegVar("strengthLevel", get_strengthLevel, set_strengthLevel); L.RegVar("skills", get_skills, set_skills); L.RegVar("buffs", get_buffs, set_buffs); L.RegVar("fashion", get_fashion, set_fashion); L.EndClass(); } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _CreateActorParam(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); if (count == 0) { ActorParam obj = new ActorParam(); ToLua.PushObject(L, obj); return 1; } else { return LuaDLL.luaL_throw(L, "invalid arguments to ctor method: ActorParam.New"); } } catch (Exception e) { return LuaDLL.toluaL_exception(L, e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int get_uid(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); ActorParam obj = (ActorParam)o; int ret = obj.uid; LuaDLL.lua_pushinteger(L, ret); return 1; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index uid on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int get_baseId(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); ActorParam obj = (ActorParam)o; int ret = obj.baseId; LuaDLL.lua_pushinteger(L, ret); return 1; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index baseId on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int get_level(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); ActorParam obj = (ActorParam)o; int ret = obj.level; LuaDLL.lua_pushinteger(L, ret); return 1; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index level on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int get_jobId(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); ActorParam obj = (ActorParam)o; int ret = obj.jobId; LuaDLL.lua_pushinteger(L, ret); return 1; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index jobId on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int get_petId(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); ActorParam obj = (ActorParam)o; int ret = obj.petId; LuaDLL.lua_pushinteger(L, ret); return 1; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index petId on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int get_isMainRole(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); ActorParam obj = (ActorParam)o; bool ret = obj.isMainRole; LuaDLL.lua_pushboolean(L, ret); return 1; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index isMainRole on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int get_isRole(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); ActorParam obj = (ActorParam)o; bool ret = obj.isRole; LuaDLL.lua_pushboolean(L, ret); return 1; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index isRole on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int get_headFrameId(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); ActorParam obj = (ActorParam)o; int ret = obj.headFrameId; LuaDLL.lua_pushinteger(L, ret); return 1; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index headFrameId on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int get_strengthLevel(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); ActorParam obj = (ActorParam)o; int ret = obj.strengthLevel; LuaDLL.lua_pushinteger(L, ret); return 1; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index strengthLevel on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int get_skills(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); ActorParam obj = (ActorParam)o; SkillParam[] ret = obj.skills; ToLua.Push(L, ret); return 1; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index skills on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int get_buffs(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); ActorParam obj = (ActorParam)o; BuffParam[] ret = obj.buffs; ToLua.Push(L, ret); return 1; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index buffs on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int get_fashion(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); ActorParam obj = (ActorParam)o; FashionParam ret = obj.fashion; ToLua.PushValue(L, ret); return 1; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index fashion on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int set_uid(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); ActorParam obj = (ActorParam)o; int arg0 = (int)LuaDLL.luaL_checknumber(L, 2); obj.uid = arg0; return 0; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index uid on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int set_baseId(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); ActorParam obj = (ActorParam)o; int arg0 = (int)LuaDLL.luaL_checknumber(L, 2); obj.baseId = arg0; return 0; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index baseId on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int set_level(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); ActorParam obj = (ActorParam)o; int arg0 = (int)LuaDLL.luaL_checknumber(L, 2); obj.level = arg0; return 0; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index level on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int set_jobId(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); ActorParam obj = (ActorParam)o; int arg0 = (int)LuaDLL.luaL_checknumber(L, 2); obj.jobId = arg0; return 0; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index jobId on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int set_petId(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); ActorParam obj = (ActorParam)o; int arg0 = (int)LuaDLL.luaL_checknumber(L, 2); obj.petId = arg0; return 0; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index petId on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int set_isMainRole(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); ActorParam obj = (ActorParam)o; bool arg0 = LuaDLL.luaL_checkboolean(L, 2); obj.isMainRole = arg0; return 0; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index isMainRole on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int set_isRole(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); ActorParam obj = (ActorParam)o; bool arg0 = LuaDLL.luaL_checkboolean(L, 2); obj.isRole = arg0; return 0; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index isRole on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int set_headFrameId(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); ActorParam obj = (ActorParam)o; int arg0 = (int)LuaDLL.luaL_checknumber(L, 2); obj.headFrameId = arg0; return 0; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index headFrameId on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int set_strengthLevel(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); ActorParam obj = (ActorParam)o; int arg0 = (int)LuaDLL.luaL_checknumber(L, 2); obj.strengthLevel = arg0; return 0; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index strengthLevel on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int set_skills(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); ActorParam obj = (ActorParam)o; SkillParam[] arg0 = ToLua.CheckStructArray(L, 2); obj.skills = arg0; return 0; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index skills on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int set_buffs(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); ActorParam obj = (ActorParam)o; BuffParam[] arg0 = ToLua.CheckStructArray(L, 2); obj.buffs = arg0; return 0; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index buffs on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int set_fashion(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); ActorParam obj = (ActorParam)o; FashionParam arg0 = StackTraits.Check(L, 2); obj.fashion = arg0; return 0; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index fashion on a nil value"); } } }