//this source code was auto-generated by tolua#, do not modify it using System; using LuaInterface; public class GameRoleInfoWrap { public static void Register(LuaState L) { L.BeginClass(typeof(GameRoleInfo), typeof(System.Object)); L.RegFunction("Valid", Valid); L.RegFunction("New", _CreateGameRoleInfo); L.RegFunction("__tostring", ToLua.op_ToString); L.RegVar("openId", get_openId, set_openId); L.RegVar("serverId", get_serverId, set_serverId); L.RegVar("serverName", get_serverName, set_serverName); L.RegVar("roleId", get_roleId, set_roleId); L.RegVar("roleLv", get_roleLv, set_roleLv); L.RegVar("roleCreateTime", get_roleCreateTime, set_roleCreateTime); L.RegVar("roleUpLvTime", get_roleUpLvTime, set_roleUpLvTime); L.RegVar("vipLv", get_vipLv, set_vipLv); L.RegVar("gender", get_gender, set_gender); L.RegVar("jobId", get_jobId, set_jobId); L.RegVar("jobName", get_jobName, set_jobName); L.RegVar("guildId", get_guildId, set_guildId); L.RegVar("guildName", get_guildName, set_guildName); L.RegVar("fightPower", get_fightPower, set_fightPower); L.RegVar("balance", get_balance, set_balance); L.RegVar("lastLogoutTime", get_lastLogoutTime, set_lastLogoutTime); L.RegVar("loginTime", get_loginTime, set_loginTime); L.RegVar("openServerTime", get_openServerTime, set_openServerTime); L.RegVar("roleName", get_roleName, set_roleName); L.EndClass(); } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _CreateGameRoleInfo(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); if (count == 0) { GameRoleInfo obj = new GameRoleInfo(); ToLua.PushObject(L, obj); return 1; } else { return LuaDLL.luaL_throw(L, "invalid arguments to ctor method: GameRoleInfo.New"); } } catch (Exception e) { return LuaDLL.toluaL_exception(L, e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int Valid(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); GameRoleInfo obj = (GameRoleInfo)ToLua.CheckObject(L, 1); bool o = obj.Valid(); LuaDLL.lua_pushboolean(L, o); return 1; } catch (Exception e) { return LuaDLL.toluaL_exception(L, e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int get_openId(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); GameRoleInfo obj = (GameRoleInfo)o; string ret = obj.openId; LuaDLL.lua_pushstring(L, ret); return 1; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index openId on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int get_serverId(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); GameRoleInfo obj = (GameRoleInfo)o; int ret = obj.serverId; LuaDLL.lua_pushinteger(L, ret); return 1; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index serverId on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int get_serverName(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); GameRoleInfo obj = (GameRoleInfo)o; string ret = obj.serverName; LuaDLL.lua_pushstring(L, ret); return 1; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index serverName on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int get_roleId(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); GameRoleInfo obj = (GameRoleInfo)o; string ret = obj.roleId; LuaDLL.lua_pushstring(L, ret); return 1; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index roleId on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int get_roleLv(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); GameRoleInfo obj = (GameRoleInfo)o; int ret = obj.roleLv; LuaDLL.lua_pushinteger(L, ret); return 1; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index roleLv on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int get_roleCreateTime(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); GameRoleInfo obj = (GameRoleInfo)o; long ret = obj.roleCreateTime; LuaDLL.tolua_pushint64(L, ret); return 1; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index roleCreateTime on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int get_roleUpLvTime(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); GameRoleInfo obj = (GameRoleInfo)o; long ret = obj.roleUpLvTime; LuaDLL.tolua_pushint64(L, ret); return 1; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index roleUpLvTime on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int get_vipLv(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); GameRoleInfo obj = (GameRoleInfo)o; int ret = obj.vipLv; LuaDLL.lua_pushinteger(L, ret); return 1; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index vipLv on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int get_gender(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); GameRoleInfo obj = (GameRoleInfo)o; int ret = obj.gender; LuaDLL.lua_pushinteger(L, ret); return 1; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index gender on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int get_jobId(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); GameRoleInfo obj = (GameRoleInfo)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_jobName(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); GameRoleInfo obj = (GameRoleInfo)o; string ret = obj.jobName; LuaDLL.lua_pushstring(L, ret); return 1; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index jobName on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int get_guildId(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); GameRoleInfo obj = (GameRoleInfo)o; long ret = obj.guildId; LuaDLL.tolua_pushint64(L, ret); return 1; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index guildId on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int get_guildName(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); GameRoleInfo obj = (GameRoleInfo)o; string ret = obj.guildName; LuaDLL.lua_pushstring(L, ret); return 1; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index guildName on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int get_fightPower(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); GameRoleInfo obj = (GameRoleInfo)o; int ret = obj.fightPower; LuaDLL.lua_pushinteger(L, ret); return 1; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index fightPower on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int get_balance(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); GameRoleInfo obj = (GameRoleInfo)o; string ret = obj.balance; LuaDLL.lua_pushstring(L, ret); return 1; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index balance on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int get_lastLogoutTime(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); GameRoleInfo obj = (GameRoleInfo)o; long ret = obj.lastLogoutTime; LuaDLL.tolua_pushint64(L, ret); return 1; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index lastLogoutTime on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int get_loginTime(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); GameRoleInfo obj = (GameRoleInfo)o; long ret = obj.loginTime; LuaDLL.tolua_pushint64(L, ret); return 1; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index loginTime on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int get_openServerTime(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); GameRoleInfo obj = (GameRoleInfo)o; long ret = obj.openServerTime; LuaDLL.tolua_pushint64(L, ret); return 1; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index openServerTime on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int get_roleName(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); GameRoleInfo obj = (GameRoleInfo)o; string ret = obj.roleName; LuaDLL.lua_pushstring(L, ret); return 1; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index roleName on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int set_openId(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); GameRoleInfo obj = (GameRoleInfo)o; string arg0 = ToLua.CheckString(L, 2); obj.openId = arg0; return 0; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index openId on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int set_serverId(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); GameRoleInfo obj = (GameRoleInfo)o; int arg0 = (int)LuaDLL.luaL_checknumber(L, 2); obj.serverId = arg0; return 0; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index serverId on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int set_serverName(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); GameRoleInfo obj = (GameRoleInfo)o; string arg0 = ToLua.CheckString(L, 2); obj.serverName = arg0; return 0; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index serverName on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int set_roleId(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); GameRoleInfo obj = (GameRoleInfo)o; string arg0 = ToLua.CheckString(L, 2); obj.roleId = arg0; return 0; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index roleId on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int set_roleLv(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); GameRoleInfo obj = (GameRoleInfo)o; int arg0 = (int)LuaDLL.luaL_checknumber(L, 2); obj.roleLv = arg0; return 0; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index roleLv on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int set_roleCreateTime(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); GameRoleInfo obj = (GameRoleInfo)o; long arg0 = LuaDLL.tolua_checkint64(L, 2); obj.roleCreateTime = arg0; return 0; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index roleCreateTime on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int set_roleUpLvTime(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); GameRoleInfo obj = (GameRoleInfo)o; long arg0 = LuaDLL.tolua_checkint64(L, 2); obj.roleUpLvTime = arg0; return 0; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index roleUpLvTime on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int set_vipLv(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); GameRoleInfo obj = (GameRoleInfo)o; int arg0 = (int)LuaDLL.luaL_checknumber(L, 2); obj.vipLv = arg0; return 0; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index vipLv on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int set_gender(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); GameRoleInfo obj = (GameRoleInfo)o; int arg0 = (int)LuaDLL.luaL_checknumber(L, 2); obj.gender = arg0; return 0; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index gender on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int set_jobId(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); GameRoleInfo obj = (GameRoleInfo)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_jobName(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); GameRoleInfo obj = (GameRoleInfo)o; string arg0 = ToLua.CheckString(L, 2); obj.jobName = arg0; return 0; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index jobName on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int set_guildId(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); GameRoleInfo obj = (GameRoleInfo)o; long arg0 = LuaDLL.tolua_checkint64(L, 2); obj.guildId = arg0; return 0; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index guildId on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int set_guildName(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); GameRoleInfo obj = (GameRoleInfo)o; string arg0 = ToLua.CheckString(L, 2); obj.guildName = arg0; return 0; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index guildName on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int set_fightPower(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); GameRoleInfo obj = (GameRoleInfo)o; int arg0 = (int)LuaDLL.luaL_checknumber(L, 2); obj.fightPower = arg0; return 0; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index fightPower on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int set_balance(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); GameRoleInfo obj = (GameRoleInfo)o; string arg0 = ToLua.CheckString(L, 2); obj.balance = arg0; return 0; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index balance on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int set_lastLogoutTime(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); GameRoleInfo obj = (GameRoleInfo)o; long arg0 = LuaDLL.tolua_checkint64(L, 2); obj.lastLogoutTime = arg0; return 0; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index lastLogoutTime on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int set_loginTime(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); GameRoleInfo obj = (GameRoleInfo)o; long arg0 = LuaDLL.tolua_checkint64(L, 2); obj.loginTime = arg0; return 0; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index loginTime on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int set_openServerTime(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); GameRoleInfo obj = (GameRoleInfo)o; long arg0 = LuaDLL.tolua_checkint64(L, 2); obj.openServerTime = arg0; return 0; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index openServerTime on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int set_roleName(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); GameRoleInfo obj = (GameRoleInfo)o; string arg0 = ToLua.CheckString(L, 2); obj.roleName = arg0; return 0; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index roleName on a nil value"); } } }