static int _CreateOneByOne_SelectModel(IntPtr L)
    {
        int count = LuaDLL.lua_gettop(L);

        if (count == 0)
        {
            OneByOne.SelectModel obj = new OneByOne.SelectModel();
            LuaScriptMgr.PushObject(L, obj);
            return(1);
        }
        else
        {
            LuaDLL.luaL_error(L, "invalid arguments to method: OneByOne.SelectModel.New");
        }

        return(0);
    }
    static int get_name(IntPtr L)
    {
        object o = LuaScriptMgr.GetLuaObject(L, 1);

        OneByOne.SelectModel obj = (OneByOne.SelectModel)o;

        if (obj == null)
        {
            LuaTypes types = LuaDLL.lua_type(L, 1);

            if (types == LuaTypes.LUA_TTABLE)
            {
                LuaDLL.luaL_error(L, "unknown member name name");
            }
            else
            {
                LuaDLL.luaL_error(L, "attempt to index name on a nil value");
            }
        }

        LuaScriptMgr.Push(L, obj.name);
        return(1);
    }
    static int set_isAI(IntPtr L)
    {
        object o = LuaScriptMgr.GetLuaObject(L, 1);

        OneByOne.SelectModel obj = (OneByOne.SelectModel)o;

        if (obj == null)
        {
            LuaTypes types = LuaDLL.lua_type(L, 1);

            if (types == LuaTypes.LUA_TTABLE)
            {
                LuaDLL.luaL_error(L, "unknown member name isAI");
            }
            else
            {
                LuaDLL.luaL_error(L, "attempt to index isAI on a nil value");
            }
        }

        obj.isAI = LuaScriptMgr.GetBoolean(L, 3);
        return(0);
    }
    static int set_heroId(IntPtr L)
    {
        object o = LuaScriptMgr.GetLuaObject(L, 1);

        OneByOne.SelectModel obj = (OneByOne.SelectModel)o;

        if (obj == null)
        {
            LuaTypes types = LuaDLL.lua_type(L, 1);

            if (types == LuaTypes.LUA_TTABLE)
            {
                LuaDLL.luaL_error(L, "unknown member name heroId");
            }
            else
            {
                LuaDLL.luaL_error(L, "attempt to index heroId on a nil value");
            }
        }

        obj.heroId = (int)LuaScriptMgr.GetNumber(L, 3);
        return(0);
    }