| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507 |
- //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), "ActorParam");
- 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<SkillParam>(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<BuffParam>(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<FashionParam>.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");
- }
- }
- }
|