static int _CreateOneByOne_AccountDTO(IntPtr L) { int count = LuaDLL.lua_gettop(L); if (count == 0) { OneByOne.AccountDTO obj = new OneByOne.AccountDTO(); LuaScriptMgr.PushObject(L, obj); return(1); } else { LuaDLL.luaL_error(L, "invalid arguments to method: OneByOne.AccountDTO.New"); } return(0); }
static int get_password(IntPtr L) { object o = LuaScriptMgr.GetLuaObject(L, 1); OneByOne.AccountDTO obj = (OneByOne.AccountDTO)o; if (obj == null) { LuaTypes types = LuaDLL.lua_type(L, 1); if (types == LuaTypes.LUA_TTABLE) { LuaDLL.luaL_error(L, "unknown member name password"); } else { LuaDLL.luaL_error(L, "attempt to index password on a nil value"); } } LuaScriptMgr.Push(L, obj.password); return(1); }
static int set_account(IntPtr L) { object o = LuaScriptMgr.GetLuaObject(L, 1); OneByOne.AccountDTO obj = (OneByOne.AccountDTO)o; if (obj == null) { LuaTypes types = LuaDLL.lua_type(L, 1); if (types == LuaTypes.LUA_TTABLE) { LuaDLL.luaL_error(L, "unknown member name account"); } else { LuaDLL.luaL_error(L, "attempt to index account on a nil value"); } } obj.account = LuaScriptMgr.GetString(L, 3); return(0); }