static int set_test_skillLevel2(IntPtr L)
    {
        object o = LuaScriptMgr.GetLuaObject(L, 1);

        Games.Module.Wars.FormationPosition obj = (Games.Module.Wars.FormationPosition)o;

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

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

        obj.test_skillLevel2 = (int)LuaScriptMgr.GetNumber(L, 3);
        return(0);
    }
    static int get_index(IntPtr L)
    {
        object o = LuaScriptMgr.GetLuaObject(L, 1);

        Games.Module.Wars.FormationPosition obj = (Games.Module.Wars.FormationPosition)o;

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

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

        LuaScriptMgr.Push(L, obj.index);
        return(1);
    }
    static int _CreateGames_Module_Wars_FormationPosition(IntPtr L)
    {
        int count = LuaDLL.lua_gettop(L);

        if (count == 0)
        {
            Games.Module.Wars.FormationPosition obj = new Games.Module.Wars.FormationPosition();
            LuaScriptMgr.PushObject(L, obj);
            return(1);
        }
        else if (count == 2)
        {
            int arg0 = (int)LuaScriptMgr.GetNumber(L, 1);
            int arg1 = (int)LuaScriptMgr.GetNumber(L, 2);
            Games.Module.Wars.FormationPosition obj = new Games.Module.Wars.FormationPosition(arg0, arg1);
            LuaScriptMgr.PushObject(L, obj);
            return(1);
        }
        else if (count == 6)
        {
            int arg0 = (int)LuaScriptMgr.GetNumber(L, 1);
            int arg1 = (int)LuaScriptMgr.GetNumber(L, 2);
            int arg2 = (int)LuaScriptMgr.GetNumber(L, 3);
            int arg3 = (int)LuaScriptMgr.GetNumber(L, 4);
            int arg4 = (int)LuaScriptMgr.GetNumber(L, 5);
            int arg5 = (int)LuaScriptMgr.GetNumber(L, 6);
            Games.Module.Wars.FormationPosition obj = new Games.Module.Wars.FormationPosition(arg0, arg1, arg2, arg3, arg4, arg5);
            LuaScriptMgr.PushObject(L, obj);
            return(1);
        }
        else
        {
            LuaDLL.luaL_error(L, "invalid arguments to method: Games.Module.Wars.FormationPosition.New");
        }

        return(0);
    }