[
  {
    "path": ".github/ISSUE_TEMPLATE/bug_report.md",
    "content": "---\nname: Bug report\nabout: Create a report to help us improve\ntitle: ''\nlabels: ''\nassignees: ''\n\n---\n\n**Describe the bug**\nA clear and concise description of what the bug is.\n\n**To Reproduce**\nSteps to reproduce the behavior:\n1. Go to '...'\n2. Click on '....'\n3. Scroll down to '....'\n4. See error\n\n**Expected behavior**\nA clear and concise description of what you expected to happen.\n\n**Screenshots**\nIf applicable, add screenshots to help explain your problem.\n\n**Desktop (please complete the following information):**\n - OS: [e.g. iOS]\n - Browser [e.g. chrome, safari]\n - Version [e.g. 22]\n\n**Smartphone (please complete the following information):**\n - Device: [e.g. iPhone6]\n - OS: [e.g. iOS8.1]\n - Browser [e.g. stock browser, safari]\n - Version [e.g. 22]\n\n**Additional context**\nAdd any other context about the problem here.\n"
  },
  {
    "path": ".github/ISSUE_TEMPLATE/feature_request.md",
    "content": "---\nname: Feature request\nabout: Suggest an idea for this project\ntitle: ''\nlabels: ''\nassignees: ''\n\n---\n\n**Is your feature request related to a problem? Please describe.**\nA clear and concise description of what the problem is. Ex. I'm always frustrated when [...]\n\n**Describe the solution you'd like**\nA clear and concise description of what you want to happen.\n\n**Describe alternatives you've considered**\nA clear and concise description of any alternative solutions or features you've considered.\n\n**Additional context**\nAdd any other context or screenshots about the feature request here.\n"
  },
  {
    "path": ".github/workflows/contributors-readme-action.yml",
    "content": "# This is a basic workflow to help you get started with Actions\n\n# https://github.com/akhilmhdh/contributors-readme-action\n\nname: contributors\n\n# Controls when the workflow will run\non:\n  # Triggers the workflow on push or pull request events but only for the \"main\" branch\n  push:\n    branches: [ \"main\" ]\n  pull_request:\n    branches: [ \"main\" ]\n\njobs:\n    contrib-readme-job:\n        runs-on: ubuntu-latest\n        name: A job to automate contrib in readme\n        permissions:\n          contents: write\n          pull-requests: write\n        steps:\n            - name: Contribute List\n              uses: akhilmhdh/contributors-readme-action@v2.3.10\n              env:\n                  GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n"
  },
  {
    "path": ".github/workflows/sync.yml",
    "content": "name: Sync Github To Image\n\non:\n  push:\n    branches: [main]\n  #schedule:\n    # 定时任务，每天 UTC 时间 0 点运行\n    #- cron: \"0 0 * * *\"\n  #workflow_dispatch:\n\njobs:\n  sync-gitlink:\n    runs-on: ubuntu-latest\n\n    steps:\n      - name: Checkout code\n        uses: actions/checkout@v4\n        with:\n          fetch-depth: 0 # 为了 git pull --unshallow，我们需要获取所有的提交历史\n\n      - name: Set up Git user\n        run: |\n          git config --global user.email \"wangfj11@foxmail.com\"\n          git config --global user.name \"AlianBlank\"\n\n      - name: Set SSH\n        run: |\n          mkdir -p ~/.ssh\n          echo \"${{ secrets.GITLINK_ID_RSA }}\" >> ~/.ssh/id_rsa\n          chmod 600 ~/.ssh/id_rsa\n          eval $(ssh-agent -s) && ssh-add ~/.ssh/id_rsa\n          # 信任域名\n          ssh-keyscan -H code.gitlink.org.cn >> ~/.ssh/known_hosts\n\n      # 查看当前分支\n      - name: Check current branch\n        run: echo 当前分支：${{ github.ref_name }} ${{ github.Repository }}\n\n      # 查看远端 地址\n      - name: echo git url\n        run: echo git@code.gitlink.org.cn:${{ github.Repository }}.git\n\n      # 添加远端\n      - name: add remote url\n        run: git remote add gitlink \"git@code.gitlink.org.cn:${{ github.Repository }}.git\"\n\n      # 获取\n      - name: fetch\n        run: git fetch --prune gitlink --tags --verbose\n\n      # 拉取\n      - name: pull and push\n        run: | \n          if [ \"${{ github.ref_name }}\" ]; then\n          git checkout ${{ github.ref_name }}\n          git pull --progress -v --no-rebase gitlink ${{ github.ref_name }} --tags --verbose || echo 远端不存在${{ github.ref_name }}分支;\n          git push -u gitlink ${{ github.ref_name }} --tags --verbose\n          fi\n\n  sync-gitlab:\n    runs-on: ubuntu-latest\n\n    steps:\n      - name: Checkout code\n        uses: actions/checkout@v4\n        with:\n          fetch-depth: 0 # 为了 git pull --unshallow，我们需要获取所有的提交历史\n\n      - name: Set up Git user\n        run: |\n          git config --global user.email \"wangfj11@foxmail.com\"\n          git config --global user.name \"AlianBlank\"\n\n      - name: Set SSH\n        run: |\n          mkdir -p ~/.ssh\n          echo \"${{ secrets.GITLAB_ID_RSA }}\" >> ~/.ssh/id_rsa\n          chmod 600 ~/.ssh/id_rsa\n          eval $(ssh-agent -s) && ssh-add ~/.ssh/id_rsa\n          # 信任域名\n          ssh-keyscan -H gitlab.com >> ~/.ssh/known_hosts\n      # 查看当前分支\n      - name: Check current branch\n        run: echo 当前分支：${{ github.ref_name }} ${{ github.Repository }}\n      # 查看远端 地址\n      - name: echo git url\n        run: echo git@gitlab.com:${{ github.Repository }}.git\n\n      # 添加远端\n      - name: add remote url\n        run: git remote add gitlab \"git@gitlab.com:${{ github.Repository }}.git\"\n\n      # 获取\n      - name: fetch\n        run: git fetch --prune gitlab --tags --verbose\n\n      # 拉取\n      - name: pull and push\n        run: | \n          if [ \"${{ github.ref_name }}\" ]; then\n          git checkout ${{ github.ref_name }}\n          git pull --progress -v --no-rebase gitlab ${{ github.ref_name }} --tags --verbose || echo 远端不存在${{ github.ref_name }}分支;\n          git push -u gitlab ${{ github.ref_name }} --tags --verbose\n          fi\n\n  sync-gitee:\n    runs-on: ubuntu-latest\n\n    steps:\n      - name: Checkout code\n        uses: actions/checkout@v4\n        with:\n          fetch-depth: 0 # 为了 git pull --unshallow，我们需要获取所有的提交历史\n\n      - name: Set up Git user\n        run: |\n          git config --global user.email \"wangfj11@foxmail.com\"\n          git config --global user.name \"AlianBlank\"\n\n      - name: Set SSH\n        run: |\n          mkdir -p ~/.ssh\n          echo \"${{ secrets.GITEE_ID_RSA }}\" >> ~/.ssh/id_rsa\n          chmod 600 ~/.ssh/id_rsa\n          eval $(ssh-agent -s) && ssh-add ~/.ssh/id_rsa\n          # 信任域名\n          ssh-keyscan -H gitee.com >> ~/.ssh/known_hosts\n      # 查看当前分支\n      - name: Check current branch\n        run: echo 当前分支：${{ github.ref_name }} ${{ github.Repository }}\n      # 查看远端 地址\n      - name: echo git url\n        run: echo git@gitee.com:${{ github.Repository }}.git\n\n      # 添加远端\n      - name: add remote url\n        run: git remote add gitee \"git@gitee.com:${{ github.Repository }}.git\"\n\n      # 获取\n      - name: fetch\n        run: git fetch --prune gitee --tags --verbose\n\n      # 拉取\n      - name: pull and push\n        run: | \n          if [ \"${{ github.ref_name }}\" ]; then\n          git checkout ${{ github.ref_name }}\n          git pull --progress -v --no-rebase gitee ${{ github.ref_name }} --tags --verbose || echo 远端不存在${{ github.ref_name }}分支;\n          git push -u gitee ${{ github.ref_name }} --tags --verbose\n          fi\n\n  sync-atomgit:\n    runs-on: ubuntu-latest\n\n    steps:\n      - name: Checkout code\n        uses: actions/checkout@v4\n        with:\n          fetch-depth: 0 # 为了 git pull --unshallow，我们需要获取所有的提交历史\n\n      - name: Set up Git user\n        run: |\n          git config --global user.email \"wangfj11@foxmail.com\"\n          git config --global user.name \"AlianBlank\"\n\n      - name: Set SSH\n        run: |\n          mkdir -p ~/.ssh\n          echo \"${{ secrets.ATOMGIT_ID_RSA }}\" >> ~/.ssh/id_rsa\n          chmod 600 ~/.ssh/id_rsa\n          eval $(ssh-agent -s) && ssh-add ~/.ssh/id_rsa\n          # 信任域名\n          ssh-keyscan -H atomgit.com >> ~/.ssh/known_hosts\n      # 查看当前分支\n      - name: Check current branch\n        run: echo 当前分支：${{ github.ref_name }} ${{ github.Repository }}\n      # 查看远端 地址\n      - name: echo git url\n        run: echo git@atomgit.com:${{ github.Repository }}.git\n\n      # 添加远端\n      - name: add remote url\n        run: git remote add atomgit \"git@atomgit.com:${{ github.Repository }}.git\"\n\n      # 获取\n      - name: fetch\n        run: git fetch --prune atomgit --tags --verbose\n\n      # 拉取\n      - name: pull and push\n        run: | \n          if [ \"${{ github.ref_name }}\" ]; then\n          git checkout ${{ github.ref_name }}\n          git pull --progress -v --no-rebase atomgit ${{ github.ref_name }} --tags --verbose || echo 远端不存在${{ github.ref_name }}分支;\n          git push -u atomgit ${{ github.ref_name }} --tags --verbose\n          fi\n\n  sync-gitcode:\n    runs-on: ubuntu-latest\n\n    steps:\n      - name: Checkout code\n        uses: actions/checkout@v4\n        with:\n          fetch-depth: 0 # 为了 git pull --unshallow，我们需要获取所有的提交历史\n\n      - name: Set up Git user\n        run: |\n          git config --global user.email \"wangfj11@foxmail.com\"\n          git config --global user.name \"AlianBlank\"\n\n      - name: Set SSH\n        run: |\n          mkdir -p ~/.ssh\n          echo \"${{ secrets.GITCODE_ID_RSA }}\" >> ~/.ssh/id_rsa\n          chmod 600 ~/.ssh/id_rsa\n          eval $(ssh-agent -s) && ssh-add ~/.ssh/id_rsa\n          # 信任域名\n          ssh-keyscan -H gitcode.net >> ~/.ssh/known_hosts\n      # 查看当前分支\n      - name: Check current branch\n        run: echo 当前分支：${{ github.ref_name }} ${{ github.Repository }}\n      # 查看远端 地址\n      - name: echo git url\n        run: echo git@gitcode.net:${{ github.Repository }}.git\n\n      # 添加远端\n      - name: add remote url\n        run: git remote add gitcode \"git@gitcode.net:${{ github.Repository }}.git\"\n\n      # 获取\n      - name: fetch\n        run: git fetch --prune gitcode --tags --verbose\n\n      # 拉取\n      - name: pull and push\n        run: | \n          if [ \"${{ github.ref_name }}\" ]; then\n          git checkout ${{ github.ref_name }}\n          git pull --progress -v --no-rebase gitcode ${{ github.ref_name }} --tags --verbose || echo 远端不存在${{ github.ref_name }}分支;\n          git push -u gitcode ${{ github.ref_name }} --tags --verbose\n          fi\n  \n  sync-framagit:\n    runs-on: ubuntu-latest\n\n    steps:\n      - name: Checkout code\n        uses: actions/checkout@v4\n        with:\n          fetch-depth: 0 # 为了 git pull --unshallow，我们需要获取所有的提交历史\n\n      - name: Set up Git user\n        run: |\n          git config --global user.email \"wangfj11@foxmail.com\"\n          git config --global user.name \"AlianBlank\"\n\n      - name: Set SSH\n        run: |\n          mkdir -p ~/.ssh\n          echo \"${{ secrets.FRAMAGIT_ID_RSA }}\" >> ~/.ssh/id_rsa\n          chmod 600 ~/.ssh/id_rsa\n          eval $(ssh-agent -s) && ssh-add ~/.ssh/id_rsa\n          # 信任域名\n          ssh-keyscan -H framagit.org >> ~/.ssh/known_hosts\n      # 查看当前分支\n      - name: Check current branch\n        run: echo 当前分支：${{ github.ref_name }} ${{ github.Repository }}\n      # 查看远端 地址\n      - name: echo git url\n        run: echo git@framagit.org:${{ github.Repository }}.git\n\n      # 添加远端\n      - name: add remote url\n        run: git remote add framagit \"git@framagit.org:${{ github.Repository }}.git\"\n\n      # 获取\n      - name: fetch\n        run: git fetch --prune framagit --tags --verbose\n\n      # 拉取\n      - name: pull and push\n        run: | \n          if [ \"${{ github.ref_name }}\" ]; then\n          git checkout ${{ github.ref_name }}\n          git pull --progress -v --no-rebase framagit ${{ github.ref_name }} --tags --verbose || echo 远端不存在${{ github.ref_name }}分支;\n          git push -u framagit ${{ github.ref_name }} --tags --verbose\n          fi\n"
  },
  {
    "path": ".gitignore",
    "content": "﻿Unity/.idea\nUnity/Bundles\nUnity/Library\nUnity/obj\nGeekConfig/.idea\nGeekConfig/Test\nServer/.idea\nServer/database\nServer/bin\nServer/**/obj\nUnity/*.csproj\nFairyGUIProject/.objs\nFairyGUIProject/plugins/.idea\nUnity/Sandbox\nUnity/Temp\nUnity/Assets/Bundles/Code\nUnity/HybridCLRData/HotUpdateDlls\nUnity/HybridCLRData/LocalIl2CppData-WindowsEditor\nUnity/HybridCLRData/hybridclr_repo\nUnity/HybridCLRData/il2cpp_plus_repo\nTools/Geek.MsgPackTool-src/.idea\nServer/**/bin\nUnity/.cache.meta\ndocker/mongo/database\nUnity/Packages/packages-lock.json\nUnity/Unity.sln.DotSettings.user\nUnity/Unity.sln\ndocker/redis/apps/datadir\n.DS_Store\nUnity/HybridCLRData\nUnity/Builds\nUnity/Logs\nUnity/Android_Symbols\nProto2CSApp/.idea\nProto2CSApp/obj\nProto2CSApp/bin\n"
  },
  {
    "path": "Config/Defines/builtin.xml",
    "content": "<module name=\"\">\r\n    <bean name=\"vec2\" valueType=\"1\" sep=\",\" group=\"*\">\r\n        <var name=\"x\" type=\"float\"/>\r\n        <var name=\"y\" type=\"float\"/>\r\n        <mapper target=\"client\" codeTarget=\"cs-bin,cs-simple-json\">\r\n            <option name=\"type\" value=\"UnityEngine.Vector2\"/>\r\n            <option name=\"constructor\" value=\"ExternalTypeUtil.NewVector2\"/>\r\n        </mapper>\r\n        <mapper target=\"server\" codeTarget=\"cs-bin,cs-dotnet-json\">\r\n            <option name=\"type\" value=\"System.Numerics.Vector2\"/>\r\n            <option name=\"constructor\" value=\"ExternalTypeUtil.NewVector2\"/>\r\n        </mapper>\r\n    </bean>\r\n    <bean name=\"vec3\" valueType=\"1\" sep=\",\" group=\"*\">\r\n        <var name=\"x\" type=\"float\"/>\r\n        <var name=\"y\" type=\"float\"/>\r\n        <var name=\"z\" type=\"float\"/>\r\n        <mapper target=\"client\" codeTarget=\"cs-bin,cs-simple-json\">\r\n            <option name=\"type\" value=\"UnityEngine.Vector3\"/>\r\n            <option name=\"constructor\" value=\"ExternalTypeUtil.NewVector3\"/>\r\n        </mapper>\r\n        <mapper target=\"server\" codeTarget=\"cs-bin,cs-dotnet-json\">\r\n            <option name=\"type\" value=\"System.Numerics.Vector3\"/>\r\n            <option name=\"constructor\" value=\"ExternalTypeUtil.NewVector3\"/>\r\n        </mapper>\r\n    </bean>\r\n    <bean name=\"vec4\" valueType=\"1\" sep=\",\" group=\"*\">\r\n        <var name=\"x\" type=\"float\"/>\r\n        <var name=\"y\" type=\"float\"/>\r\n        <var name=\"z\" type=\"float\"/>\r\n        <var name=\"w\" type=\"float\"/>\r\n        <mapper target=\"client\" codeTarget=\"cs-bin,cs-simple-json\">\r\n            <option name=\"type\" value=\"UnityEngine.Vector4\"/>\r\n            <option name=\"constructor\" value=\"ExternalTypeUtil.NewVector4\"/>\r\n        </mapper>\r\n        <mapper target=\"server\" codeTarget=\"cs-bin,cs-dotnet-json\">\r\n            <option name=\"type\" value=\"System.Numerics.Vector4\"/>\r\n            <option name=\"constructor\" value=\"ExternalTypeUtil.NewVector4\"/>\r\n        </mapper>\r\n    </bean>\r\n</module>"
  },
  {
    "path": "Config/Tools/Luban.deps.json",
    "content": "{\r\n  \"runtimeTarget\": {\r\n    \"name\": \".NETCoreApp,Version=v8.0\",\r\n    \"signature\": \"\"\r\n  },\r\n  \"compilationOptions\": {},\r\n  \"targets\": {\r\n    \".NETCoreApp,Version=v8.0\": {\r\n      \"Luban/3.12.0\": {\r\n        \"dependencies\": {\r\n          \"CommandLineParser\": \"2.9.1\",\r\n          \"Luban.Bson\": \"1.0.0\",\r\n          \"Luban.CSharp\": \"1.0.0\",\r\n          \"Luban.Core\": \"1.0.0\",\r\n          \"Luban.Cpp\": \"1.0.0\",\r\n          \"Luban.DataLoader.Builtin\": \"1.0.0\",\r\n          \"Luban.DataTarget.Builtin\": \"1.0.0\",\r\n          \"Luban.DataValidator.Builtin\": \"1.0.0\",\r\n          \"Luban.FlatBuffers\": \"1.0.0\",\r\n          \"Luban.Gdscript\": \"1.0.0\",\r\n          \"Luban.Golang\": \"1.0.0\",\r\n          \"Luban.Java\": \"1.0.0\",\r\n          \"Luban.L10N\": \"1.0.0\",\r\n          \"Luban.Lua\": \"1.0.0\",\r\n          \"Luban.MsgPack\": \"1.0.0\",\r\n          \"Luban.PHP\": \"1.0.0\",\r\n          \"Luban.Protobuf\": \"1.0.0\",\r\n          \"Luban.Python\": \"1.0.0\",\r\n          \"Luban.Rust\": \"1.0.0\",\r\n          \"Luban.Schema.Builtin\": \"1.0.0\",\r\n          \"Luban.Typescript\": \"1.0.0\",\r\n          \"YamlDotNet.NetCore\": \"1.0.0\"\r\n        },\r\n        \"runtime\": {\r\n          \"Luban.dll\": {}\r\n        }\r\n      },\r\n      \"CommandLineParser/2.9.1\": {\r\n        \"runtime\": {\r\n          \"lib/netstandard2.0/CommandLine.dll\": {\r\n            \"assemblyVersion\": \"2.9.1.0\",\r\n            \"fileVersion\": \"2.9.1.0\"\r\n          }\r\n        }\r\n      },\r\n      \"ExcelDataReader/3.7.0\": {\r\n        \"runtime\": {\r\n          \"lib/netstandard2.1/ExcelDataReader.dll\": {\r\n            \"assemblyVersion\": \"3.7.0.0\",\r\n            \"fileVersion\": \"3.7.0.0\"\r\n          }\r\n        }\r\n      },\r\n      \"Google.Protobuf/3.29.0\": {\r\n        \"runtime\": {\r\n          \"lib/net5.0/Google.Protobuf.dll\": {\r\n            \"assemblyVersion\": \"3.29.0.0\",\r\n            \"fileVersion\": \"3.29.0.0\"\r\n          }\r\n        }\r\n      },\r\n      \"MessagePack/2.5.192\": {\r\n        \"dependencies\": {\r\n          \"MessagePack.Annotations\": \"2.5.192\",\r\n          \"Microsoft.NET.StringTools\": \"17.6.3\"\r\n        },\r\n        \"runtime\": {\r\n          \"lib/net6.0/MessagePack.dll\": {\r\n            \"assemblyVersion\": \"2.5.0.0\",\r\n            \"fileVersion\": \"2.5.192.54228\"\r\n          }\r\n        }\r\n      },\r\n      \"MessagePack.Annotations/2.5.192\": {\r\n        \"runtime\": {\r\n          \"lib/netstandard2.0/MessagePack.Annotations.dll\": {\r\n            \"assemblyVersion\": \"2.5.0.0\",\r\n            \"fileVersion\": \"2.5.192.54228\"\r\n          }\r\n        }\r\n      },\r\n      \"Microsoft.CSharp/4.5.0\": {},\r\n      \"Microsoft.NET.StringTools/17.6.3\": {\r\n        \"runtime\": {\r\n          \"lib/net7.0/Microsoft.NET.StringTools.dll\": {\r\n            \"assemblyVersion\": \"1.0.0.0\",\r\n            \"fileVersion\": \"17.6.3.22601\"\r\n          }\r\n        }\r\n      },\r\n      \"Microsoft.NETCore.Platforms/1.0.1\": {},\r\n      \"Microsoft.NETCore.Targets/1.0.1\": {},\r\n      \"NeoLua/1.3.14\": {\r\n        \"dependencies\": {\r\n          \"Microsoft.CSharp\": \"4.5.0\"\r\n        },\r\n        \"runtime\": {\r\n          \"lib/net5.0/Neo.Lua.dll\": {\r\n            \"assemblyVersion\": \"5.3.0.0\",\r\n            \"fileVersion\": \"1.3.14.0\"\r\n          }\r\n        },\r\n        \"resources\": {\r\n          \"lib/net5.0/de/Neo.Lua.resources.dll\": {\r\n            \"locale\": \"de\"\r\n          }\r\n        }\r\n      },\r\n      \"Newtonsoft.Json/13.0.1\": {\r\n        \"runtime\": {\r\n          \"lib/netstandard2.0/Newtonsoft.Json.dll\": {\r\n            \"assemblyVersion\": \"13.0.0.0\",\r\n            \"fileVersion\": \"13.0.1.25517\"\r\n          }\r\n        }\r\n      },\r\n      \"Newtonsoft.Json.Bson/1.0.3\": {\r\n        \"dependencies\": {\r\n          \"Newtonsoft.Json\": \"13.0.1\"\r\n        },\r\n        \"runtime\": {\r\n          \"lib/netstandard2.0/Newtonsoft.Json.Bson.dll\": {\r\n            \"assemblyVersion\": \"1.0.0.0\",\r\n            \"fileVersion\": \"1.0.3.29904\"\r\n          }\r\n        }\r\n      },\r\n      \"NLog/5.3.4\": {\r\n        \"runtime\": {\r\n          \"lib/netstandard2.0/NLog.dll\": {\r\n            \"assemblyVersion\": \"5.0.0.0\",\r\n            \"fileVersion\": \"5.3.4.2778\"\r\n          }\r\n        }\r\n      },\r\n      \"Scriban/5.12.0\": {\r\n        \"runtime\": {\r\n          \"lib/net7.0/Scriban.dll\": {\r\n            \"assemblyVersion\": \"5.0.0.0\",\r\n            \"fileVersion\": \"5.12.0.0\"\r\n          }\r\n        }\r\n      },\r\n      \"System.Collections/4.0.11\": {\r\n        \"dependencies\": {\r\n          \"Microsoft.NETCore.Platforms\": \"1.0.1\",\r\n          \"Microsoft.NETCore.Targets\": \"1.0.1\",\r\n          \"System.Runtime\": \"4.1.0\"\r\n        }\r\n      },\r\n      \"System.Diagnostics.Debug/4.0.11\": {\r\n        \"dependencies\": {\r\n          \"Microsoft.NETCore.Platforms\": \"1.0.1\",\r\n          \"Microsoft.NETCore.Targets\": \"1.0.1\",\r\n          \"System.Runtime\": \"4.1.0\"\r\n        }\r\n      },\r\n      \"System.Diagnostics.Tools/4.0.1\": {\r\n        \"dependencies\": {\r\n          \"Microsoft.NETCore.Platforms\": \"1.0.1\",\r\n          \"Microsoft.NETCore.Targets\": \"1.0.1\",\r\n          \"System.Runtime\": \"4.1.0\"\r\n        }\r\n      },\r\n      \"System.Globalization/4.0.11\": {\r\n        \"dependencies\": {\r\n          \"Microsoft.NETCore.Platforms\": \"1.0.1\",\r\n          \"Microsoft.NETCore.Targets\": \"1.0.1\",\r\n          \"System.Runtime\": \"4.1.0\"\r\n        }\r\n      },\r\n      \"System.IO/4.1.0\": {\r\n        \"dependencies\": {\r\n          \"Microsoft.NETCore.Platforms\": \"1.0.1\",\r\n          \"Microsoft.NETCore.Targets\": \"1.0.1\",\r\n          \"System.Runtime\": \"4.1.0\",\r\n          \"System.Text.Encoding\": \"4.0.11\",\r\n          \"System.Threading.Tasks\": \"4.0.11\"\r\n        }\r\n      },\r\n      \"System.Linq/4.1.0\": {\r\n        \"dependencies\": {\r\n          \"System.Collections\": \"4.0.11\",\r\n          \"System.Diagnostics.Debug\": \"4.0.11\",\r\n          \"System.Resources.ResourceManager\": \"4.0.1\",\r\n          \"System.Runtime\": \"4.1.0\",\r\n          \"System.Runtime.Extensions\": \"4.1.0\"\r\n        }\r\n      },\r\n      \"System.Linq.Expressions/4.1.0\": {\r\n        \"dependencies\": {\r\n          \"System.Collections\": \"4.0.11\",\r\n          \"System.Diagnostics.Debug\": \"4.0.11\",\r\n          \"System.Globalization\": \"4.0.11\",\r\n          \"System.IO\": \"4.1.0\",\r\n          \"System.Linq\": \"4.1.0\",\r\n          \"System.ObjectModel\": \"4.0.12\",\r\n          \"System.Reflection\": \"4.1.0\",\r\n          \"System.Reflection.Emit\": \"4.0.1\",\r\n          \"System.Reflection.Emit.ILGeneration\": \"4.0.1\",\r\n          \"System.Reflection.Emit.Lightweight\": \"4.0.1\",\r\n          \"System.Reflection.Extensions\": \"4.0.1\",\r\n          \"System.Reflection.Primitives\": \"4.0.1\",\r\n          \"System.Reflection.TypeExtensions\": \"4.1.0\",\r\n          \"System.Resources.ResourceManager\": \"4.0.1\",\r\n          \"System.Runtime\": \"4.1.0\",\r\n          \"System.Runtime.Extensions\": \"4.1.0\",\r\n          \"System.Threading\": \"4.0.11\"\r\n        }\r\n      },\r\n      \"System.ObjectModel/4.0.12\": {\r\n        \"dependencies\": {\r\n          \"System.Collections\": \"4.0.11\",\r\n          \"System.Diagnostics.Debug\": \"4.0.11\",\r\n          \"System.Resources.ResourceManager\": \"4.0.1\",\r\n          \"System.Runtime\": \"4.1.0\",\r\n          \"System.Threading\": \"4.0.11\"\r\n        }\r\n      },\r\n      \"System.Reflection/4.1.0\": {\r\n        \"dependencies\": {\r\n          \"Microsoft.NETCore.Platforms\": \"1.0.1\",\r\n          \"Microsoft.NETCore.Targets\": \"1.0.1\",\r\n          \"System.IO\": \"4.1.0\",\r\n          \"System.Reflection.Primitives\": \"4.0.1\",\r\n          \"System.Runtime\": \"4.1.0\"\r\n        }\r\n      },\r\n      \"System.Reflection.Emit/4.0.1\": {\r\n        \"dependencies\": {\r\n          \"System.IO\": \"4.1.0\",\r\n          \"System.Reflection\": \"4.1.0\",\r\n          \"System.Reflection.Emit.ILGeneration\": \"4.0.1\",\r\n          \"System.Reflection.Primitives\": \"4.0.1\",\r\n          \"System.Runtime\": \"4.1.0\"\r\n        }\r\n      },\r\n      \"System.Reflection.Emit.ILGeneration/4.0.1\": {\r\n        \"dependencies\": {\r\n          \"System.Reflection\": \"4.1.0\",\r\n          \"System.Reflection.Primitives\": \"4.0.1\",\r\n          \"System.Runtime\": \"4.1.0\"\r\n        }\r\n      },\r\n      \"System.Reflection.Emit.Lightweight/4.0.1\": {\r\n        \"dependencies\": {\r\n          \"System.Reflection\": \"4.1.0\",\r\n          \"System.Reflection.Emit.ILGeneration\": \"4.0.1\",\r\n          \"System.Reflection.Primitives\": \"4.0.1\",\r\n          \"System.Runtime\": \"4.1.0\"\r\n        }\r\n      },\r\n      \"System.Reflection.Extensions/4.0.1\": {\r\n        \"dependencies\": {\r\n          \"Microsoft.NETCore.Platforms\": \"1.0.1\",\r\n          \"Microsoft.NETCore.Targets\": \"1.0.1\",\r\n          \"System.Reflection\": \"4.1.0\",\r\n          \"System.Runtime\": \"4.1.0\"\r\n        }\r\n      },\r\n      \"System.Reflection.Primitives/4.0.1\": {\r\n        \"dependencies\": {\r\n          \"Microsoft.NETCore.Platforms\": \"1.0.1\",\r\n          \"Microsoft.NETCore.Targets\": \"1.0.1\",\r\n          \"System.Runtime\": \"4.1.0\"\r\n        }\r\n      },\r\n      \"System.Reflection.TypeExtensions/4.1.0\": {\r\n        \"dependencies\": {\r\n          \"System.Reflection\": \"4.1.0\",\r\n          \"System.Runtime\": \"4.1.0\"\r\n        }\r\n      },\r\n      \"System.Resources.ResourceManager/4.0.1\": {\r\n        \"dependencies\": {\r\n          \"Microsoft.NETCore.Platforms\": \"1.0.1\",\r\n          \"Microsoft.NETCore.Targets\": \"1.0.1\",\r\n          \"System.Globalization\": \"4.0.11\",\r\n          \"System.Reflection\": \"4.1.0\",\r\n          \"System.Runtime\": \"4.1.0\"\r\n        }\r\n      },\r\n      \"System.Runtime/4.1.0\": {\r\n        \"dependencies\": {\r\n          \"Microsoft.NETCore.Platforms\": \"1.0.1\",\r\n          \"Microsoft.NETCore.Targets\": \"1.0.1\"\r\n        }\r\n      },\r\n      \"System.Runtime.Extensions/4.1.0\": {\r\n        \"dependencies\": {\r\n          \"Microsoft.NETCore.Platforms\": \"1.0.1\",\r\n          \"Microsoft.NETCore.Targets\": \"1.0.1\",\r\n          \"System.Runtime\": \"4.1.0\"\r\n        }\r\n      },\r\n      \"System.Runtime.Serialization.Primitives/4.1.1\": {\r\n        \"dependencies\": {\r\n          \"System.Resources.ResourceManager\": \"4.0.1\",\r\n          \"System.Runtime\": \"4.1.0\"\r\n        }\r\n      },\r\n      \"System.Text.Encoding/4.0.11\": {\r\n        \"dependencies\": {\r\n          \"Microsoft.NETCore.Platforms\": \"1.0.1\",\r\n          \"Microsoft.NETCore.Targets\": \"1.0.1\",\r\n          \"System.Runtime\": \"4.1.0\"\r\n        }\r\n      },\r\n      \"System.Text.Encoding.Extensions/4.0.11\": {\r\n        \"dependencies\": {\r\n          \"Microsoft.NETCore.Platforms\": \"1.0.1\",\r\n          \"Microsoft.NETCore.Targets\": \"1.0.1\",\r\n          \"System.Runtime\": \"4.1.0\",\r\n          \"System.Text.Encoding\": \"4.0.11\"\r\n        }\r\n      },\r\n      \"System.Text.RegularExpressions/4.1.0\": {\r\n        \"dependencies\": {\r\n          \"System.Collections\": \"4.0.11\",\r\n          \"System.Globalization\": \"4.0.11\",\r\n          \"System.Resources.ResourceManager\": \"4.0.1\",\r\n          \"System.Runtime\": \"4.1.0\",\r\n          \"System.Runtime.Extensions\": \"4.1.0\",\r\n          \"System.Threading\": \"4.0.11\"\r\n        }\r\n      },\r\n      \"System.Threading/4.0.11\": {\r\n        \"dependencies\": {\r\n          \"System.Runtime\": \"4.1.0\",\r\n          \"System.Threading.Tasks\": \"4.0.11\"\r\n        }\r\n      },\r\n      \"System.Threading.Tasks/4.0.11\": {\r\n        \"dependencies\": {\r\n          \"Microsoft.NETCore.Platforms\": \"1.0.1\",\r\n          \"Microsoft.NETCore.Targets\": \"1.0.1\",\r\n          \"System.Runtime\": \"4.1.0\"\r\n        }\r\n      },\r\n      \"Ude.NetStandard/1.2.0\": {\r\n        \"runtime\": {\r\n          \"lib/netstandard2.0/Ude.NetStandard.dll\": {\r\n            \"assemblyVersion\": \"1.0.2.0\",\r\n            \"fileVersion\": \"1.0.2.0\"\r\n          }\r\n        }\r\n      },\r\n      \"YamlDotNet.NetCore/1.0.0\": {\r\n        \"dependencies\": {\r\n          \"System.Collections\": \"4.0.11\",\r\n          \"System.Diagnostics.Debug\": \"4.0.11\",\r\n          \"System.Diagnostics.Tools\": \"4.0.1\",\r\n          \"System.Globalization\": \"4.0.11\",\r\n          \"System.Linq\": \"4.1.0\",\r\n          \"System.Linq.Expressions\": \"4.1.0\",\r\n          \"System.ObjectModel\": \"4.0.12\",\r\n          \"System.Reflection.Extensions\": \"4.0.1\",\r\n          \"System.Runtime.Extensions\": \"4.1.0\",\r\n          \"System.Runtime.Serialization.Primitives\": \"4.1.1\",\r\n          \"System.Text.Encoding.Extensions\": \"4.0.11\",\r\n          \"System.Text.RegularExpressions\": \"4.1.0\"\r\n        },\r\n        \"runtime\": {\r\n          \"lib/netstandard1.0/YamlDotNet.NetCore.dll\": {\r\n            \"assemblyVersion\": \"0.0.1.0\",\r\n            \"fileVersion\": \"0.0.0.0\"\r\n          }\r\n        }\r\n      },\r\n      \"Luban.Bson/1.0.0\": {\r\n        \"dependencies\": {\r\n          \"Luban.Core\": \"1.0.0\",\r\n          \"Newtonsoft.Json.Bson\": \"1.0.3\"\r\n        },\r\n        \"runtime\": {\r\n          \"Luban.Bson.dll\": {\r\n            \"assemblyVersion\": \"1.0.0.0\",\r\n            \"fileVersion\": \"1.0.0.0\"\r\n          }\r\n        }\r\n      },\r\n      \"Luban.Core/1.0.0\": {\r\n        \"dependencies\": {\r\n          \"NLog\": \"5.3.4\",\r\n          \"Scriban\": \"5.12.0\"\r\n        },\r\n        \"runtime\": {\r\n          \"Luban.Core.dll\": {\r\n            \"assemblyVersion\": \"1.0.0.0\",\r\n            \"fileVersion\": \"1.0.0.0\"\r\n          }\r\n        }\r\n      },\r\n      \"Luban.Cpp/1.0.0\": {\r\n        \"dependencies\": {\r\n          \"Luban.Core\": \"1.0.0\"\r\n        },\r\n        \"runtime\": {\r\n          \"Luban.Cpp.dll\": {\r\n            \"assemblyVersion\": \"1.0.0.0\",\r\n            \"fileVersion\": \"1.0.0.0\"\r\n          }\r\n        }\r\n      },\r\n      \"Luban.CSharp/1.0.0\": {\r\n        \"dependencies\": {\r\n          \"Luban.Core\": \"1.0.0\",\r\n          \"Luban.DataValidator.Builtin\": \"1.0.0\"\r\n        },\r\n        \"runtime\": {\r\n          \"Luban.CSharp.dll\": {\r\n            \"assemblyVersion\": \"1.0.0.0\",\r\n            \"fileVersion\": \"1.0.0.0\"\r\n          }\r\n        }\r\n      },\r\n      \"Luban.DataLoader.Builtin/1.0.0\": {\r\n        \"dependencies\": {\r\n          \"ExcelDataReader\": \"3.7.0\",\r\n          \"Luban.Core\": \"1.0.0\",\r\n          \"NeoLua\": \"1.3.14\",\r\n          \"Ude.NetStandard\": \"1.2.0\",\r\n          \"YamlDotNet.NetCore\": \"1.0.0\"\r\n        },\r\n        \"runtime\": {\r\n          \"Luban.DataLoader.Builtin.dll\": {\r\n            \"assemblyVersion\": \"1.0.0.0\",\r\n            \"fileVersion\": \"1.0.0.0\"\r\n          }\r\n        }\r\n      },\r\n      \"Luban.DataTarget.Builtin/1.0.0\": {\r\n        \"dependencies\": {\r\n          \"Luban.Core\": \"1.0.0\",\r\n          \"Luban.DataLoader.Builtin\": \"1.0.0\"\r\n        },\r\n        \"runtime\": {\r\n          \"Luban.DataTarget.Builtin.dll\": {\r\n            \"assemblyVersion\": \"1.0.0.0\",\r\n            \"fileVersion\": \"1.0.0.0\"\r\n          }\r\n        }\r\n      },\r\n      \"Luban.DataValidator.Builtin/1.0.0\": {\r\n        \"dependencies\": {\r\n          \"Luban.Core\": \"1.0.0\"\r\n        },\r\n        \"runtime\": {\r\n          \"Luban.DataValidator.Builtin.dll\": {\r\n            \"assemblyVersion\": \"1.0.0.0\",\r\n            \"fileVersion\": \"1.0.0.0\"\r\n          }\r\n        }\r\n      },\r\n      \"Luban.FlatBuffers/1.0.0\": {\r\n        \"dependencies\": {\r\n          \"Luban.Core\": \"1.0.0\",\r\n          \"Luban.DataTarget.Builtin\": \"1.0.0\"\r\n        },\r\n        \"runtime\": {\r\n          \"Luban.FlatBuffers.dll\": {\r\n            \"assemblyVersion\": \"1.0.0.0\",\r\n            \"fileVersion\": \"1.0.0.0\"\r\n          }\r\n        }\r\n      },\r\n      \"Luban.Gdscript/1.0.0\": {\r\n        \"dependencies\": {\r\n          \"Luban.Core\": \"1.0.0\",\r\n          \"Luban.DataTarget.Builtin\": \"1.0.0\"\r\n        },\r\n        \"runtime\": {\r\n          \"Luban.Gdscript.dll\": {\r\n            \"assemblyVersion\": \"1.0.0.0\",\r\n            \"fileVersion\": \"1.0.0.0\"\r\n          }\r\n        }\r\n      },\r\n      \"Luban.Golang/1.0.0\": {\r\n        \"dependencies\": {\r\n          \"Luban.Core\": \"1.0.0\"\r\n        },\r\n        \"runtime\": {\r\n          \"Luban.Golang.dll\": {\r\n            \"assemblyVersion\": \"1.0.0.0\",\r\n            \"fileVersion\": \"1.0.0.0\"\r\n          }\r\n        }\r\n      },\r\n      \"Luban.Java/1.0.0\": {\r\n        \"dependencies\": {\r\n          \"Luban.Core\": \"1.0.0\"\r\n        },\r\n        \"runtime\": {\r\n          \"Luban.Java.dll\": {\r\n            \"assemblyVersion\": \"1.0.0.0\",\r\n            \"fileVersion\": \"1.0.0.0\"\r\n          }\r\n        }\r\n      },\r\n      \"Luban.L10N/1.0.0\": {\r\n        \"dependencies\": {\r\n          \"Luban.Core\": \"1.0.0\",\r\n          \"Luban.DataLoader.Builtin\": \"1.0.0\"\r\n        },\r\n        \"runtime\": {\r\n          \"Luban.L10N.dll\": {\r\n            \"assemblyVersion\": \"1.0.0.0\",\r\n            \"fileVersion\": \"1.0.0.0\"\r\n          }\r\n        }\r\n      },\r\n      \"Luban.Lua/1.0.0\": {\r\n        \"dependencies\": {\r\n          \"Luban.Core\": \"1.0.0\"\r\n        },\r\n        \"runtime\": {\r\n          \"Luban.Lua.dll\": {\r\n            \"assemblyVersion\": \"1.0.0.0\",\r\n            \"fileVersion\": \"1.0.0.0\"\r\n          }\r\n        }\r\n      },\r\n      \"Luban.MsgPack/1.0.0\": {\r\n        \"dependencies\": {\r\n          \"Luban.Core\": \"1.0.0\",\r\n          \"MessagePack\": \"2.5.192\"\r\n        },\r\n        \"runtime\": {\r\n          \"Luban.MsgPack.dll\": {\r\n            \"assemblyVersion\": \"1.0.0.0\",\r\n            \"fileVersion\": \"1.0.0.0\"\r\n          }\r\n        }\r\n      },\r\n      \"Luban.PHP/1.0.0\": {\r\n        \"dependencies\": {\r\n          \"Luban.Core\": \"1.0.0\",\r\n          \"Luban.DataTarget.Builtin\": \"1.0.0\"\r\n        },\r\n        \"runtime\": {\r\n          \"Luban.PHP.dll\": {\r\n            \"assemblyVersion\": \"1.0.0.0\",\r\n            \"fileVersion\": \"1.0.0.0\"\r\n          }\r\n        }\r\n      },\r\n      \"Luban.Protobuf/1.0.0\": {\r\n        \"dependencies\": {\r\n          \"Google.Protobuf\": \"3.29.0\",\r\n          \"Luban.Core\": \"1.0.0\",\r\n          \"Luban.DataTarget.Builtin\": \"1.0.0\"\r\n        },\r\n        \"runtime\": {\r\n          \"Luban.Protobuf.dll\": {\r\n            \"assemblyVersion\": \"1.0.0.0\",\r\n            \"fileVersion\": \"1.0.0.0\"\r\n          }\r\n        }\r\n      },\r\n      \"Luban.Python/1.0.0\": {\r\n        \"dependencies\": {\r\n          \"Luban.Core\": \"1.0.0\",\r\n          \"Luban.DataTarget.Builtin\": \"1.0.0\"\r\n        },\r\n        \"runtime\": {\r\n          \"Luban.Python.dll\": {\r\n            \"assemblyVersion\": \"1.0.0.0\",\r\n            \"fileVersion\": \"1.0.0.0\"\r\n          }\r\n        }\r\n      },\r\n      \"Luban.Rust/1.0.0\": {\r\n        \"dependencies\": {\r\n          \"Luban.Core\": \"1.0.0\"\r\n        },\r\n        \"runtime\": {\r\n          \"Luban.Rust.dll\": {\r\n            \"assemblyVersion\": \"1.0.0.0\",\r\n            \"fileVersion\": \"1.0.0.0\"\r\n          }\r\n        }\r\n      },\r\n      \"Luban.Schema.Builtin/1.0.0\": {\r\n        \"dependencies\": {\r\n          \"Luban.Core\": \"1.0.0\",\r\n          \"Luban.DataLoader.Builtin\": \"1.0.0\"\r\n        },\r\n        \"runtime\": {\r\n          \"Luban.Schema.Builtin.dll\": {\r\n            \"assemblyVersion\": \"1.0.0.0\",\r\n            \"fileVersion\": \"1.0.0.0\"\r\n          }\r\n        }\r\n      },\r\n      \"Luban.Typescript/1.0.0\": {\r\n        \"dependencies\": {\r\n          \"Luban.CSharp\": \"1.0.0\",\r\n          \"Luban.Core\": \"1.0.0\",\r\n          \"Luban.DataTarget.Builtin\": \"1.0.0\"\r\n        },\r\n        \"runtime\": {\r\n          \"Luban.Typescript.dll\": {\r\n            \"assemblyVersion\": \"1.0.0.0\",\r\n            \"fileVersion\": \"1.0.0.0\"\r\n          }\r\n        }\r\n      }\r\n    }\r\n  },\r\n  \"libraries\": {\r\n    \"Luban/3.12.0\": {\r\n      \"type\": \"project\",\r\n      \"serviceable\": false,\r\n      \"sha512\": \"\"\r\n    },\r\n    \"CommandLineParser/2.9.1\": {\r\n      \"type\": \"package\",\r\n      \"serviceable\": true,\r\n      \"sha512\": \"sha512-OE0sl1/sQ37bjVsPKKtwQlWDgqaxWgtme3xZz7JssWUzg5JpMIyHgCTY9MVMxOg48fJ1AgGT3tgdH5m/kQ5xhA==\",\r\n      \"path\": \"commandlineparser/2.9.1\",\r\n      \"hashPath\": \"commandlineparser.2.9.1.nupkg.sha512\"\r\n    },\r\n    \"ExcelDataReader/3.7.0\": {\r\n      \"type\": \"package\",\r\n      \"serviceable\": true,\r\n      \"sha512\": \"sha512-AMv3oDETRHSRyXC17rBtKH45qIfFyo433LMeaMB3u4RNr/c9Luuc0Z+JMP6+3Cx9n4wXqFqcrEIVxrf/GgYnZg==\",\r\n      \"path\": \"exceldatareader/3.7.0\",\r\n      \"hashPath\": \"exceldatareader.3.7.0.nupkg.sha512\"\r\n    },\r\n    \"Google.Protobuf/3.29.0\": {\r\n      \"type\": \"package\",\r\n      \"serviceable\": true,\r\n      \"sha512\": \"sha512-l1012jd1Y2XsLQ+h9cXE7Bo3WruXql3Xc3KP/z+yZDJMSkfb2guslHCxwFsqd2ScHB0h2J7Yuy255RrBD/DGBw==\",\r\n      \"path\": \"google.protobuf/3.29.0\",\r\n      \"hashPath\": \"google.protobuf.3.29.0.nupkg.sha512\"\r\n    },\r\n    \"MessagePack/2.5.192\": {\r\n      \"type\": \"package\",\r\n      \"serviceable\": true,\r\n      \"sha512\": \"sha512-Jtle5MaFeIFkdXtxQeL9Tu2Y3HsAQGoSntOzrn6Br/jrl6c8QmG22GEioT5HBtZJR0zw0s46OnKU8ei2M3QifA==\",\r\n      \"path\": \"messagepack/2.5.192\",\r\n      \"hashPath\": \"messagepack.2.5.192.nupkg.sha512\"\r\n    },\r\n    \"MessagePack.Annotations/2.5.192\": {\r\n      \"type\": \"package\",\r\n      \"serviceable\": true,\r\n      \"sha512\": \"sha512-jaJuwcgovWIZ8Zysdyf3b7b34/BrADw4v82GaEZymUhDd3ScMPrYd/cttekeDteJJPXseJxp04yTIcxiVUjTWg==\",\r\n      \"path\": \"messagepack.annotations/2.5.192\",\r\n      \"hashPath\": \"messagepack.annotations.2.5.192.nupkg.sha512\"\r\n    },\r\n    \"Microsoft.CSharp/4.5.0\": {\r\n      \"type\": \"package\",\r\n      \"serviceable\": true,\r\n      \"sha512\": \"sha512-kaj6Wb4qoMuH3HySFJhxwQfe8R/sJsNJnANrvv8WdFPMoNbKY5htfNscv+LHCu5ipz+49m2e+WQXpLXr9XYemQ==\",\r\n      \"path\": \"microsoft.csharp/4.5.0\",\r\n      \"hashPath\": \"microsoft.csharp.4.5.0.nupkg.sha512\"\r\n    },\r\n    \"Microsoft.NET.StringTools/17.6.3\": {\r\n      \"type\": \"package\",\r\n      \"serviceable\": true,\r\n      \"sha512\": \"sha512-N0ZIanl1QCgvUumEL1laasU0a7sOE5ZwLZVTn0pAePnfhq8P7SvTjF8Axq+CnavuQkmdQpGNXQ1efZtu5kDFbA==\",\r\n      \"path\": \"microsoft.net.stringtools/17.6.3\",\r\n      \"hashPath\": \"microsoft.net.stringtools.17.6.3.nupkg.sha512\"\r\n    },\r\n    \"Microsoft.NETCore.Platforms/1.0.1\": {\r\n      \"type\": \"package\",\r\n      \"serviceable\": true,\r\n      \"sha512\": \"sha512-2G6OjjJzwBfNOO8myRV/nFrbTw5iA+DEm0N+qUqhrOmaVtn4pC77h38I1jsXGw5VH55+dPfQsqHD0We9sCl9FQ==\",\r\n      \"path\": \"microsoft.netcore.platforms/1.0.1\",\r\n      \"hashPath\": \"microsoft.netcore.platforms.1.0.1.nupkg.sha512\"\r\n    },\r\n    \"Microsoft.NETCore.Targets/1.0.1\": {\r\n      \"type\": \"package\",\r\n      \"serviceable\": true,\r\n      \"sha512\": \"sha512-rkn+fKobF/cbWfnnfBOQHKVKIOpxMZBvlSHkqDWgBpwGDcLRduvs3D9OLGeV6GWGvVwNlVi2CBbTjuPmtHvyNw==\",\r\n      \"path\": \"microsoft.netcore.targets/1.0.1\",\r\n      \"hashPath\": \"microsoft.netcore.targets.1.0.1.nupkg.sha512\"\r\n    },\r\n    \"NeoLua/1.3.14\": {\r\n      \"type\": \"package\",\r\n      \"serviceable\": true,\r\n      \"sha512\": \"sha512-BXIUN+ePY2wx3ZGiSmR8KZKD85s01pXI690orrB3u/biB8R0nalziGw+iGbPBq1Cuz8Upggpw2ERF84POXWTCQ==\",\r\n      \"path\": \"neolua/1.3.14\",\r\n      \"hashPath\": \"neolua.1.3.14.nupkg.sha512\"\r\n    },\r\n    \"Newtonsoft.Json/13.0.1\": {\r\n      \"type\": \"package\",\r\n      \"serviceable\": true,\r\n      \"sha512\": \"sha512-ppPFpBcvxdsfUonNcvITKqLl3bqxWbDCZIzDWHzjpdAHRFfZe0Dw9HmA0+za13IdyrgJwpkDTDA9fHaxOrt20A==\",\r\n      \"path\": \"newtonsoft.json/13.0.1\",\r\n      \"hashPath\": \"newtonsoft.json.13.0.1.nupkg.sha512\"\r\n    },\r\n    \"Newtonsoft.Json.Bson/1.0.3\": {\r\n      \"type\": \"package\",\r\n      \"serviceable\": true,\r\n      \"sha512\": \"sha512-bCcwagnHfYnhwQfY1criEcn6Hy9PtBuVnZu0pA8hmRhuR3jI/8WxVgoVAdNw9BJ3JHkxmWJzpj/AQy+PMMLqxg==\",\r\n      \"path\": \"newtonsoft.json.bson/1.0.3\",\r\n      \"hashPath\": \"newtonsoft.json.bson.1.0.3.nupkg.sha512\"\r\n    },\r\n    \"NLog/5.3.4\": {\r\n      \"type\": \"package\",\r\n      \"serviceable\": true,\r\n      \"sha512\": \"sha512-gLy7+O1hEYJXIlcTr1/VWjGXrZTQFZzYNO18IWasD64pNwz0BreV+nHLxWKXWZzERRzoKnsk2XYtwLkTVk7J1A==\",\r\n      \"path\": \"nlog/5.3.4\",\r\n      \"hashPath\": \"nlog.5.3.4.nupkg.sha512\"\r\n    },\r\n    \"Scriban/5.12.0\": {\r\n      \"type\": \"package\",\r\n      \"serviceable\": true,\r\n      \"sha512\": \"sha512-/YTTCxjBIpfwX3MKMT4JMFVl1jX4IHW7zih+Bg3cTIkzGnbFt+B3l/k90ILDw6DRiFE7T+VxEyls7zk4p029ng==\",\r\n      \"path\": \"scriban/5.12.0\",\r\n      \"hashPath\": \"scriban.5.12.0.nupkg.sha512\"\r\n    },\r\n    \"System.Collections/4.0.11\": {\r\n      \"type\": \"package\",\r\n      \"serviceable\": true,\r\n      \"sha512\": \"sha512-YUJGz6eFKqS0V//mLt25vFGrrCvOnsXjlvFQs+KimpwNxug9x0Pzy4PlFMU3Q2IzqAa9G2L4LsK3+9vCBK7oTg==\",\r\n      \"path\": \"system.collections/4.0.11\",\r\n      \"hashPath\": \"system.collections.4.0.11.nupkg.sha512\"\r\n    },\r\n    \"System.Diagnostics.Debug/4.0.11\": {\r\n      \"type\": \"package\",\r\n      \"serviceable\": true,\r\n      \"sha512\": \"sha512-w5U95fVKHY4G8ASs/K5iK3J5LY+/dLFd4vKejsnI/ZhBsWS9hQakfx3Zr7lRWKg4tAw9r4iktyvsTagWkqYCiw==\",\r\n      \"path\": \"system.diagnostics.debug/4.0.11\",\r\n      \"hashPath\": \"system.diagnostics.debug.4.0.11.nupkg.sha512\"\r\n    },\r\n    \"System.Diagnostics.Tools/4.0.1\": {\r\n      \"type\": \"package\",\r\n      \"serviceable\": true,\r\n      \"sha512\": \"sha512-xBfJ8pnd4C17dWaC9FM6aShzbJcRNMChUMD42I6772KGGrqaFdumwhn9OdM68erj1ueNo3xdQ1EwiFjK5k8p0g==\",\r\n      \"path\": \"system.diagnostics.tools/4.0.1\",\r\n      \"hashPath\": \"system.diagnostics.tools.4.0.1.nupkg.sha512\"\r\n    },\r\n    \"System.Globalization/4.0.11\": {\r\n      \"type\": \"package\",\r\n      \"serviceable\": true,\r\n      \"sha512\": \"sha512-B95h0YLEL2oSnwF/XjqSWKnwKOy/01VWkNlsCeMTFJLLabflpGV26nK164eRs5GiaRSBGpOxQ3pKoSnnyZN5pg==\",\r\n      \"path\": \"system.globalization/4.0.11\",\r\n      \"hashPath\": \"system.globalization.4.0.11.nupkg.sha512\"\r\n    },\r\n    \"System.IO/4.1.0\": {\r\n      \"type\": \"package\",\r\n      \"serviceable\": true,\r\n      \"sha512\": \"sha512-3KlTJceQc3gnGIaHZ7UBZO26SHL1SHE4ddrmiwumFnId+CEHP+O8r386tZKaE6zlk5/mF8vifMBzHj9SaXN+mQ==\",\r\n      \"path\": \"system.io/4.1.0\",\r\n      \"hashPath\": \"system.io.4.1.0.nupkg.sha512\"\r\n    },\r\n    \"System.Linq/4.1.0\": {\r\n      \"type\": \"package\",\r\n      \"serviceable\": true,\r\n      \"sha512\": \"sha512-bQ0iYFOQI0nuTnt+NQADns6ucV4DUvMdwN6CbkB1yj8i7arTGiTN5eok1kQwdnnNWSDZfIUySQY+J3d5KjWn0g==\",\r\n      \"path\": \"system.linq/4.1.0\",\r\n      \"hashPath\": \"system.linq.4.1.0.nupkg.sha512\"\r\n    },\r\n    \"System.Linq.Expressions/4.1.0\": {\r\n      \"type\": \"package\",\r\n      \"serviceable\": true,\r\n      \"sha512\": \"sha512-I+y02iqkgmCAyfbqOmSDOgqdZQ5tTj80Akm5BPSS8EeB0VGWdy6X1KCoYe8Pk6pwDoAKZUOdLVxnTJcExiv5zw==\",\r\n      \"path\": \"system.linq.expressions/4.1.0\",\r\n      \"hashPath\": \"system.linq.expressions.4.1.0.nupkg.sha512\"\r\n    },\r\n    \"System.ObjectModel/4.0.12\": {\r\n      \"type\": \"package\",\r\n      \"serviceable\": true,\r\n      \"sha512\": \"sha512-tAgJM1xt3ytyMoW4qn4wIqgJYm7L7TShRZG4+Q4Qsi2PCcj96pXN7nRywS9KkB3p/xDUjc2HSwP9SROyPYDYKQ==\",\r\n      \"path\": \"system.objectmodel/4.0.12\",\r\n      \"hashPath\": \"system.objectmodel.4.0.12.nupkg.sha512\"\r\n    },\r\n    \"System.Reflection/4.1.0\": {\r\n      \"type\": \"package\",\r\n      \"serviceable\": true,\r\n      \"sha512\": \"sha512-JCKANJ0TI7kzoQzuwB/OoJANy1Lg338B6+JVacPl4TpUwi3cReg3nMLplMq2uqYfHFQpKIlHAUVAJlImZz/4ng==\",\r\n      \"path\": \"system.reflection/4.1.0\",\r\n      \"hashPath\": \"system.reflection.4.1.0.nupkg.sha512\"\r\n    },\r\n    \"System.Reflection.Emit/4.0.1\": {\r\n      \"type\": \"package\",\r\n      \"serviceable\": true,\r\n      \"sha512\": \"sha512-P2wqAj72fFjpP6wb9nSfDqNBMab+2ovzSDzUZK7MVIm54tBJEPr9jWfSjjoTpPwj1LeKcmX3vr0ttyjSSFM47g==\",\r\n      \"path\": \"system.reflection.emit/4.0.1\",\r\n      \"hashPath\": \"system.reflection.emit.4.0.1.nupkg.sha512\"\r\n    },\r\n    \"System.Reflection.Emit.ILGeneration/4.0.1\": {\r\n      \"type\": \"package\",\r\n      \"serviceable\": true,\r\n      \"sha512\": \"sha512-Ov6dU8Bu15Bc7zuqttgHF12J5lwSWyTf1S+FJouUXVMSqImLZzYaQ+vRr1rQ0OZ0HqsrwWl4dsKHELckQkVpgA==\",\r\n      \"path\": \"system.reflection.emit.ilgeneration/4.0.1\",\r\n      \"hashPath\": \"system.reflection.emit.ilgeneration.4.0.1.nupkg.sha512\"\r\n    },\r\n    \"System.Reflection.Emit.Lightweight/4.0.1\": {\r\n      \"type\": \"package\",\r\n      \"serviceable\": true,\r\n      \"sha512\": \"sha512-sSzHHXueZ5Uh0OLpUQprhr+ZYJrLPA2Cmr4gn0wj9+FftNKXx8RIMKvO9qnjk2ebPYUjZ+F2ulGdPOsvj+MEjA==\",\r\n      \"path\": \"system.reflection.emit.lightweight/4.0.1\",\r\n      \"hashPath\": \"system.reflection.emit.lightweight.4.0.1.nupkg.sha512\"\r\n    },\r\n    \"System.Reflection.Extensions/4.0.1\": {\r\n      \"type\": \"package\",\r\n      \"serviceable\": true,\r\n      \"sha512\": \"sha512-GYrtRsZcMuHF3sbmRHfMYpvxZoIN2bQGrYGerUiWLEkqdEUQZhH3TRSaC/oI4wO0II1RKBPlpIa1TOMxIcOOzQ==\",\r\n      \"path\": \"system.reflection.extensions/4.0.1\",\r\n      \"hashPath\": \"system.reflection.extensions.4.0.1.nupkg.sha512\"\r\n    },\r\n    \"System.Reflection.Primitives/4.0.1\": {\r\n      \"type\": \"package\",\r\n      \"serviceable\": true,\r\n      \"sha512\": \"sha512-4inTox4wTBaDhB7V3mPvp9XlCbeGYWVEM9/fXALd52vNEAVisc1BoVWQPuUuD0Ga//dNbA/WeMy9u9mzLxGTHQ==\",\r\n      \"path\": \"system.reflection.primitives/4.0.1\",\r\n      \"hashPath\": \"system.reflection.primitives.4.0.1.nupkg.sha512\"\r\n    },\r\n    \"System.Reflection.TypeExtensions/4.1.0\": {\r\n      \"type\": \"package\",\r\n      \"serviceable\": true,\r\n      \"sha512\": \"sha512-tsQ/ptQ3H5FYfON8lL4MxRk/8kFyE0A+tGPXmVP967cT/gzLHYxIejIYSxp4JmIeFHVP78g/F2FE1mUUTbDtrg==\",\r\n      \"path\": \"system.reflection.typeextensions/4.1.0\",\r\n      \"hashPath\": \"system.reflection.typeextensions.4.1.0.nupkg.sha512\"\r\n    },\r\n    \"System.Resources.ResourceManager/4.0.1\": {\r\n      \"type\": \"package\",\r\n      \"serviceable\": true,\r\n      \"sha512\": \"sha512-TxwVeUNoTgUOdQ09gfTjvW411MF+w9MBYL7AtNVc+HtBCFlutPLhUCdZjNkjbhj3bNQWMdHboF0KIWEOjJssbA==\",\r\n      \"path\": \"system.resources.resourcemanager/4.0.1\",\r\n      \"hashPath\": \"system.resources.resourcemanager.4.0.1.nupkg.sha512\"\r\n    },\r\n    \"System.Runtime/4.1.0\": {\r\n      \"type\": \"package\",\r\n      \"serviceable\": true,\r\n      \"sha512\": \"sha512-v6c/4Yaa9uWsq+JMhnOFewrYkgdNHNG2eMKuNqRn8P733rNXeRCGvV5FkkjBXn2dbVkPXOsO0xjsEeM1q2zC0g==\",\r\n      \"path\": \"system.runtime/4.1.0\",\r\n      \"hashPath\": \"system.runtime.4.1.0.nupkg.sha512\"\r\n    },\r\n    \"System.Runtime.Extensions/4.1.0\": {\r\n      \"type\": \"package\",\r\n      \"serviceable\": true,\r\n      \"sha512\": \"sha512-CUOHjTT/vgP0qGW22U4/hDlOqXmcPq5YicBaXdUR2UiUoLwBT+olO6we4DVbq57jeX5uXH2uerVZhf0qGj+sVQ==\",\r\n      \"path\": \"system.runtime.extensions/4.1.0\",\r\n      \"hashPath\": \"system.runtime.extensions.4.1.0.nupkg.sha512\"\r\n    },\r\n    \"System.Runtime.Serialization.Primitives/4.1.1\": {\r\n      \"type\": \"package\",\r\n      \"serviceable\": true,\r\n      \"sha512\": \"sha512-HZ6Du5QrTG8MNJbf4e4qMO3JRAkIboGT5Fk804uZtg3Gq516S7hAqTm2UZKUHa7/6HUGdVy3AqMQKbns06G/cg==\",\r\n      \"path\": \"system.runtime.serialization.primitives/4.1.1\",\r\n      \"hashPath\": \"system.runtime.serialization.primitives.4.1.1.nupkg.sha512\"\r\n    },\r\n    \"System.Text.Encoding/4.0.11\": {\r\n      \"type\": \"package\",\r\n      \"serviceable\": true,\r\n      \"sha512\": \"sha512-U3gGeMlDZXxCEiY4DwVLSacg+DFWCvoiX+JThA/rvw37Sqrku7sEFeVBBBMBnfB6FeZHsyDx85HlKL19x0HtZA==\",\r\n      \"path\": \"system.text.encoding/4.0.11\",\r\n      \"hashPath\": \"system.text.encoding.4.0.11.nupkg.sha512\"\r\n    },\r\n    \"System.Text.Encoding.Extensions/4.0.11\": {\r\n      \"type\": \"package\",\r\n      \"serviceable\": true,\r\n      \"sha512\": \"sha512-jtbiTDtvfLYgXn8PTfWI+SiBs51rrmO4AAckx4KR6vFK9Wzf6tI8kcRdsYQNwriUeQ1+CtQbM1W4cMbLXnj/OQ==\",\r\n      \"path\": \"system.text.encoding.extensions/4.0.11\",\r\n      \"hashPath\": \"system.text.encoding.extensions.4.0.11.nupkg.sha512\"\r\n    },\r\n    \"System.Text.RegularExpressions/4.1.0\": {\r\n      \"type\": \"package\",\r\n      \"serviceable\": true,\r\n      \"sha512\": \"sha512-i88YCXpRTjCnoSQZtdlHkAOx4KNNik4hMy83n0+Ftlb7jvV6ZiZWMpnEZHhjBp6hQVh8gWd/iKNPzlPF7iyA2g==\",\r\n      \"path\": \"system.text.regularexpressions/4.1.0\",\r\n      \"hashPath\": \"system.text.regularexpressions.4.1.0.nupkg.sha512\"\r\n    },\r\n    \"System.Threading/4.0.11\": {\r\n      \"type\": \"package\",\r\n      \"serviceable\": true,\r\n      \"sha512\": \"sha512-N+3xqIcg3VDKyjwwCGaZ9HawG9aC6cSDI+s7ROma310GQo8vilFZa86hqKppwTHleR/G0sfOzhvgnUxWCR/DrQ==\",\r\n      \"path\": \"system.threading/4.0.11\",\r\n      \"hashPath\": \"system.threading.4.0.11.nupkg.sha512\"\r\n    },\r\n    \"System.Threading.Tasks/4.0.11\": {\r\n      \"type\": \"package\",\r\n      \"serviceable\": true,\r\n      \"sha512\": \"sha512-k1S4Gc6IGwtHGT8188RSeGaX86Qw/wnrgNLshJvsdNUOPP9etMmo8S07c+UlOAx4K/xLuN9ivA1bD0LVurtIxQ==\",\r\n      \"path\": \"system.threading.tasks/4.0.11\",\r\n      \"hashPath\": \"system.threading.tasks.4.0.11.nupkg.sha512\"\r\n    },\r\n    \"Ude.NetStandard/1.2.0\": {\r\n      \"type\": \"package\",\r\n      \"serviceable\": true,\r\n      \"sha512\": \"sha512-zRWpPAxBg3lNdm4UiKixTe+DFPoNid9CILggTCy/0WR2WKETe17kTWhiiIpLB2k5IEgnvA0QLfKlvd6Tvu0pzA==\",\r\n      \"path\": \"ude.netstandard/1.2.0\",\r\n      \"hashPath\": \"ude.netstandard.1.2.0.nupkg.sha512\"\r\n    },\r\n    \"YamlDotNet.NetCore/1.0.0\": {\r\n      \"type\": \"package\",\r\n      \"serviceable\": true,\r\n      \"sha512\": \"sha512-vPiKF4Yf02MS96Nzwcr8+WrvlhTx+camOgUzxhazU0hCzs2ESetWDCxaIT/MYdAw2oONYem1ow9PXWJjHkRUDw==\",\r\n      \"path\": \"yamldotnet.netcore/1.0.0\",\r\n      \"hashPath\": \"yamldotnet.netcore.1.0.0.nupkg.sha512\"\r\n    },\r\n    \"Luban.Bson/1.0.0\": {\r\n      \"type\": \"project\",\r\n      \"serviceable\": false,\r\n      \"sha512\": \"\"\r\n    },\r\n    \"Luban.Core/1.0.0\": {\r\n      \"type\": \"project\",\r\n      \"serviceable\": false,\r\n      \"sha512\": \"\"\r\n    },\r\n    \"Luban.Cpp/1.0.0\": {\r\n      \"type\": \"project\",\r\n      \"serviceable\": false,\r\n      \"sha512\": \"\"\r\n    },\r\n    \"Luban.CSharp/1.0.0\": {\r\n      \"type\": \"project\",\r\n      \"serviceable\": false,\r\n      \"sha512\": \"\"\r\n    },\r\n    \"Luban.DataLoader.Builtin/1.0.0\": {\r\n      \"type\": \"project\",\r\n      \"serviceable\": false,\r\n      \"sha512\": \"\"\r\n    },\r\n    \"Luban.DataTarget.Builtin/1.0.0\": {\r\n      \"type\": \"project\",\r\n      \"serviceable\": false,\r\n      \"sha512\": \"\"\r\n    },\r\n    \"Luban.DataValidator.Builtin/1.0.0\": {\r\n      \"type\": \"project\",\r\n      \"serviceable\": false,\r\n      \"sha512\": \"\"\r\n    },\r\n    \"Luban.FlatBuffers/1.0.0\": {\r\n      \"type\": \"project\",\r\n      \"serviceable\": false,\r\n      \"sha512\": \"\"\r\n    },\r\n    \"Luban.Gdscript/1.0.0\": {\r\n      \"type\": \"project\",\r\n      \"serviceable\": false,\r\n      \"sha512\": \"\"\r\n    },\r\n    \"Luban.Golang/1.0.0\": {\r\n      \"type\": \"project\",\r\n      \"serviceable\": false,\r\n      \"sha512\": \"\"\r\n    },\r\n    \"Luban.Java/1.0.0\": {\r\n      \"type\": \"project\",\r\n      \"serviceable\": false,\r\n      \"sha512\": \"\"\r\n    },\r\n    \"Luban.L10N/1.0.0\": {\r\n      \"type\": \"project\",\r\n      \"serviceable\": false,\r\n      \"sha512\": \"\"\r\n    },\r\n    \"Luban.Lua/1.0.0\": {\r\n      \"type\": \"project\",\r\n      \"serviceable\": false,\r\n      \"sha512\": \"\"\r\n    },\r\n    \"Luban.MsgPack/1.0.0\": {\r\n      \"type\": \"project\",\r\n      \"serviceable\": false,\r\n      \"sha512\": \"\"\r\n    },\r\n    \"Luban.PHP/1.0.0\": {\r\n      \"type\": \"project\",\r\n      \"serviceable\": false,\r\n      \"sha512\": \"\"\r\n    },\r\n    \"Luban.Protobuf/1.0.0\": {\r\n      \"type\": \"project\",\r\n      \"serviceable\": false,\r\n      \"sha512\": \"\"\r\n    },\r\n    \"Luban.Python/1.0.0\": {\r\n      \"type\": \"project\",\r\n      \"serviceable\": false,\r\n      \"sha512\": \"\"\r\n    },\r\n    \"Luban.Rust/1.0.0\": {\r\n      \"type\": \"project\",\r\n      \"serviceable\": false,\r\n      \"sha512\": \"\"\r\n    },\r\n    \"Luban.Schema.Builtin/1.0.0\": {\r\n      \"type\": \"project\",\r\n      \"serviceable\": false,\r\n      \"sha512\": \"\"\r\n    },\r\n    \"Luban.Typescript/1.0.0\": {\r\n      \"type\": \"project\",\r\n      \"serviceable\": false,\r\n      \"sha512\": \"\"\r\n    }\r\n  }\r\n}"
  },
  {
    "path": "Config/Tools/Luban.runtimeconfig.json",
    "content": "{\r\n  \"runtimeOptions\": {\r\n    \"tfm\": \"net8.0\",\r\n    \"framework\": {\r\n      \"name\": \"Microsoft.NETCore.App\",\r\n      \"version\": \"8.0.0\"\r\n    },\r\n    \"configProperties\": {\r\n      \"System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization\": false\r\n    }\r\n  }\r\n}"
  },
  {
    "path": "Config/Tools/Templates/common/cs/enum.sbn",
    "content": "{{~\r\n    comment = __enum.comment\r\n    items = __enum.items\r\n~}}\r\n\r\n\r\n{{namespace_with_grace_begin __namespace_with_top_module}} \r\n{{~if comment != '' ~}}\r\n    /// <summary>\r\n    /// {{escape_comment comment}}\r\n    /// </summary>\r\n{{~end~}}\r\n    {{~if __enum.is_flags~}}\r\n    [System.Flags]\r\n    {{~end~}}\r\n    public enum {{__name}}\r\n    {\r\n        {{~ for item in items ~}}\r\n{{~if item.comment != '' ~}}\r\n        /// <summary>\r\n        /// {{escape_comment item.comment_or_alias}}\r\n        /// </summary>\r\n{{~end~}}\r\n        {{format_enum_item_name __code_style item.name}} = {{item.value}},\r\n        {{~end~}}\r\n    }\r\n\r\n{{namespace_with_grace_end __namespace_with_top_module}} \r\n"
  },
  {
    "path": "Config/Tools/Templates/common/ts/enum.sbn",
    "content": "\r\n\r\n"
  },
  {
    "path": "Config/Tools/Templates/cs-bin/bean.sbn",
    "content": "﻿using LuBan.Runtime;\r\nusing GameFrameX.Config;\r\n{{\r\n    parent_def_type = __bean.parent_def_type\r\n    export_fields = __bean.export_fields\r\n    hierarchy_export_fields = __bean.hierarchy_export_fields\r\n}}\r\n{{namespace_with_grace_begin __namespace_with_top_module}}\r\n{{~if __bean.comment != '' ~}}\r\n/// <summary>\r\n/// {{escape_comment __bean.comment}}\r\n/// </summary>\r\n{{~end~}}\r\n{{~\r\nfunc get_ref_name\r\n    ret (format_property_name __code_style $0.name) + '_Ref'\r\nend\r\n\r\nfunc get_index_var_name\r\n    ret (format_property_name __code_style $0.name) + '_Index'\r\nend\r\n\r\nfunc generate_resolve_field_ref\r\n    field = $0\r\n    fieldName = format_property_name __code_style field.name\r\n    refTable = get_ref_table field\r\n    if can_generate_ref field\r\n        tableName = format_property_name __code_style refTable.name\r\n        if field.is_nullable\r\n            ret (get_ref_name field) + ' = ' + fieldName + '!= null ? tables.' + tableName + '.Get(' + (get_value_of_nullable_type field.ctype fieldName) + ') : null;'\r\n        else\r\n            ret (get_ref_name field) + ' = tables.' + tableName + '.Get(' + fieldName + ');'\r\n        end\r\n    else if can_generate_collection_ref field\r\n        collection_ref_table = get_collection_ref_table field\r\n        tableName = format_property_name __code_style collection_ref_table.name\r\n        if field.ctype.type_name == 'list' || field.ctype.type_name == 'set'\r\n            line1 = (get_ref_name field) + ' = new ' + (declaring_collection_ref_name field.ctype) + '();' + '\\n'\r\n            line2 = 'foreach (var _v in ' + fieldName + ') { ' + (get_ref_name field) + '.Add(tables.' + tableName + '.Get(_v)); }' + '\\n'\r\n            ret line1 + line2\r\n        else if field.ctype.type_name == 'array'\r\n            line1 = (get_ref_name field) + ' = new ' + (declaring_type_name collection_ref_table.value_ttype) + '[' + fieldName + '.Length];' + '\\n'\r\n            line2 = 'for (int _i = 0; _i < ' + fieldName + '.Length; _i++) { ' + (get_ref_name field) + '[_i] = tables.' + tableName + '.Get(' + fieldName + '[_i]); }' + '\\n'\r\n            ret line1 + line2\r\n        else if field.ctype.type_name == 'map'\r\n            line1 = (get_ref_name field) + ' = new ' + (declaring_collection_ref_name field.ctype) + '();' + '\\n'\r\n            line2 = 'foreach (var (_k,_v) in ' + fieldName + ') { ' + (get_ref_name field) + '.Add(_k, tables.' + tableName + '.GetOrDefault(_v)); }' + '\\n'\r\n            ret line1 + line2\r\n        else\r\n            ret ''\r\n        end\r\n    else\r\n        if (is_field_bean_need_resolve_ref field)\r\n            ret fieldName + '?.ResolveRef(tables);'\r\n        else if (is_field_array_like_need_resolve_ref field)\r\n            ret 'foreach (var _e in ' + fieldName + ') { _e?.ResolveRef(tables); }'\r\n        else if (is_field_map_need_resolve_ref field)\r\n            ret 'foreach (var _e in ' + fieldName + '.Values) { _e?.ResolveRef(tables); }'\r\n        else\r\n            ret ''\r\n        end\r\n    end\r\nend\r\n\r\nfunc get_param_def_list(bean)\r\n    paramList = []\r\n    while bean\r\n        tempList = bean.export_fields |array.each do; ret (declaring_type_name $0.ctype) + ' ' + (format_property_name __code_style $0.name); end\r\n        paramList = tempList + paramList\r\n        bean = bean.parent_def_type\r\n    end\r\n    ret array.join paramList ', '\r\nend\r\n\r\nfunc get_param_name_list(bean)\r\n    paramList = []\r\n    index = 0\r\n    while bean\r\n        tempList = bean.export_fields |array.each do; ret (format_property_name __code_style $0.name); end\r\n        paramList = tempList + paramList\r\n        bean = bean.parent_def_type\r\n    end\r\n    ret array.join paramList ', '\r\nend\r\n~}}\r\n    {{~if __bean.is_value_type~}}\r\n    public partial struct {{__name}}\r\n    {{~else~}}\r\n    public {{class_modifier __bean}} partial class {{__name}} : {{if parent_def_type}}{{__bean.parent}}{{else}}LuBan.Runtime.BeanBase{{end}}\r\n    {{~end~}}\r\n    {\r\n        public {{__name}}({{get_param_def_list(__bean)}}) {{if parent_def_type}} : base({{get_param_name_list(__bean.parent_def_type)}}) {{end}}\r\n        {\r\n            {{~ for field in export_fields\r\n            fieldName = format_property_name __code_style field.name\r\n            ~}}\r\n            this.{{fieldName}} = {{fieldName}};\r\n            {{~if can_generate_ref field~}}\r\n            this.{{get_ref_name field}} = null;\r\n            {{~end~}}\r\n            {{~if has_index field~}}\r\n            this.{{get_index_var_name field}} = new {{declaring_type_name (get_index_map_type field)}}({{field.size}});\r\n            foreach(var _v in {{fieldName}})\r\n            { \r\n                this.{{get_index_var_name field}}.Add(_v.{{format_property_name __code_style (get_index_field field).name}}, _v);\r\n            }\r\n            {{~end~}}\r\n            {{~end~}}\r\n            PostInit();\r\n        }\r\n\r\n        public {{__name}}(ByteBuf _buf) {{if parent_def_type}} : base(_buf) {{end}}\r\n        {\r\n            {{~ for field in export_fields\r\n            this.fieldName = format_property_name __code_style field.name\r\n            ~}}\r\n            {{deserialize '_buf' fieldName field.ctype}}\r\n            {{~if can_generate_ref field~}}\r\n            {{get_ref_name field}} = null;\r\n            {{~end~}}\r\n            {{~if has_index field~}}\r\n            foreach(var _v in {{fieldName}})\r\n            { \r\n                {{get_index_var_name field}}.Add(_v.{{format_property_name __code_style (get_index_field field).name}}, _v);\r\n            }\r\n            {{~end~}}\r\n            {{~end~}}\r\n            // Localization Key Begin\r\n            {{~ for field in export_fields ~}}\r\n            {{~if field.type =='text'~}}\r\n            {{format_property_name __code_style field.name}}_Localization_Key = {{format_property_name __code_style field.name}};\r\n            {{~end~}}\r\n            {{~end~}}\r\n            // Localization Key End\r\n            PostInit();\r\n        }\r\n\r\n        public static {{__name}} Deserialize{{__name}}(ByteBuf _buf)\r\n        {\r\n            {{~if __bean.is_abstract_type~}}\r\n            switch (_buf.ReadInt())\r\n            {\r\n                {{~for child in __bean.hierarchy_not_abstract_children~}}\r\n                case {{child.full_name}}.__ID__: return new {{child.full_name}}(_buf);\r\n                {{~end~}}\r\n                default: throw new SerializationException();\r\n            }\r\n            {{~else~}}\r\n            return new {{__bean.full_name}}(_buf);\r\n            {{~end~}}\r\n        }\r\n\r\n        {{~ for field in export_fields ~}}\r\n        {{~if field.comment != '' ~}}\r\n        /// <summary>\r\n        /// {{escape_comment field.comment}}\r\n        /// </summary>\r\n        {{~end~}}\r\n        public {{declaring_type_name field.ctype}} {{format_property_name __code_style field.name}} { private set; get; }\r\n        {{~if field.type =='text'~}}\r\n        {{~if field.comment != '' ~}}\r\n        /// <summary>\r\n        /// {{escape_comment field.comment}} 的多语言Key\r\n        /// </summary>\r\n        {{~end~}}\r\n        public readonly string {{format_property_name __code_style field.name}}_Localization_Key;\r\n        {{~end~}}\r\n        {{~if can_generate_ref field~}}\r\n        public {{declaring_type_name (get_ref_type field)}} {{get_ref_name field}} { private set; get; }\r\n        {{~else if can_generate_collection_ref field~}}\r\n        public {{declaring_collection_ref_name field.ctype}} {{get_ref_name field}} { private set; get; }\r\n        {{~end~}}\r\n        {{~if has_index field\r\n        indexMapType = get_index_map_type field\r\n        ~}}\r\n        public readonly {{declaring_type_name indexMapType}} {{get_index_var_name field}} = new {{declaring_type_name indexMapType}}();\r\n        {{~end~}}\r\n        {{~end~}}\r\n        {{~if !__bean.is_abstract_type && !__bean.is_value_type~}}\r\n        public const int __ID__ = {{__bean.id}};\r\n        public override int GetTypeId() => __ID__;\r\n        {{~end~}}\r\n\r\n        public {{method_modifier __bean}} void ResolveRef({{__manager_name}} tables)\r\n        {\r\n            {{~if parent_def_type~}}\r\n            base.ResolveRef(tables);\r\n            {{~end~}}\r\n            {{~for field in export_fields~}}\r\n            {{generate_resolve_field_ref field}}\r\n            {{~end~}}\r\n            PostResolveRef();\r\n        }\r\n\r\n        public void TranslateText(System.Func<string, string, string> translator)\r\n        {\r\n            {{~if parent_def_type~}}\r\n            base.TranslateText(translator);\r\n            {{~end~}}\r\n            {{~ for field in export_fields ~}}\r\n            {{~if field.type =='text'~}}\r\n            {{format_property_name __code_style field.name}} = translator({{format_property_name __code_style field.name}}_Localization_Key, {{format_property_name __code_style field.name}});\r\n            {{~end~}}\r\n            {{~end~}}\r\n        }\r\n\r\n        public override string ToString()\r\n        {\r\n            return \"{{full_name}}{ \"\r\n            {{~for field in hierarchy_export_fields ~}}\r\n            + \"{{format_field_name __code_style field.name}}:\" + {{to_pretty_string (format_property_name __code_style field.name) field.ctype}} + \",\"\r\n            {{~end~}}\r\n            + \"}\";\r\n        }\r\n\r\n        partial void PostInit();\r\n        partial void PostResolveRef();\r\n    }\r\n{{namespace_with_grace_end __namespace_with_top_module}}"
  },
  {
    "path": "Config/Tools/Templates/cs-bin/table.sbn",
    "content": "using LuBan.Runtime;\r\nusing GameFrameX.Config.Runtime;\r\n{{\r\n    key_type = __table.key_ttype\r\n    value_type =  __table.value_ttype\r\n\r\n    func index_type_name\r\n        ret (declaring_type_name $0.type)\r\n    end\r\n\r\n    func table_union_map_type_name\r\n        ret 'System.Collections.Generic.Dictionary<(' + (array.each __table.index_list @index_type_name | array.join ', ') + '), ' + (declaring_type_name value_type)  + '>'\r\n    end\r\n\r\n    func table_key_list\r\n        varName = $0\r\n        indexList = __table.index_list |array.each do; ret varName + '.' + (format_property_name __code_style $0.index_field.name); end;\r\n        ret array.join indexList ', '\r\n    end\r\n\r\n    func table_param_def_list\r\n        paramList = __table.index_list |array.each do; ret (declaring_type_name $0.type) + ' ' + $0.index_field.name; end\r\n        ret array.join paramList ', '\r\n    end\r\n\r\n    func table_param_name_list\r\n        paramList = __table.index_list |array.each do; ret $0.index_field.name; end\r\n        ret array.join paramList ', '\r\n    end\r\n}}\r\n{{namespace_with_grace_begin __namespace_with_top_module}}\r\n    {{~if __table.comment != '' ~}}\r\n    /// <summary>\r\n    /// {{escape_comment __table.comment}}\r\n    /// </summary>\r\n    {{~end~}}\r\n    public partial class {{__name}} : BaseDataTable<{{declaring_type_name __value_type}}>\r\n    {\r\n        {{~if __table.is_map_table ~}}\r\n        private readonly System.Func<System.Threading.Tasks.Task<ByteBuf>> _loadFunc;\r\n\r\n        public {{__name}}(System.Func<System.Threading.Tasks.Task<ByteBuf>> loadFunc)\r\n        {\r\n            _loadFunc = loadFunc;\r\n        }\r\n\r\n        public override async System.Threading.Tasks.Task LoadAsync()\r\n        {\r\n            ByteBuf _buf = await _loadFunc();\r\n            StringDataMaps.Clear();\r\n            DataList.Clear();\r\n            for(int n = _buf.ReadSize() ; n > 0 ; --n)\r\n            {\r\n                {{declaring_type_name value_type}} _v;\r\n                {{deserialize '_buf' '_v' value_type}}\r\n                DataList.Add(_v);\r\n                {{~if __key_type.type_name != 'string' ~}}\r\n                LongDataMaps.Add(_v.{{format_property_name __code_style __table.index_field.name}}, _v);\r\n                {{~end~}}\r\n                StringDataMaps.Add(_v.{{format_property_name __code_style __table.index_field.name}}.ToString(), _v);\r\n            }\r\n            PostInit();\r\n        }\r\n\r\n        {{~if value_type.is_dynamic~}}\r\n        //public T GetOrDefaultAs<T>({{declaring_type_name key_type}} key) where T : {{declaring_type_name value_type}} => _dataMap.TryGetValue(key, out var v) ? (T)v : null;\r\n        //public T GetAs<T>({{declaring_type_name key_type}} key) where T : {{declaring_type_name value_type}} => (T)_dataMap[key];\r\n        {{~end~}}\r\n\r\n        public void ResolveRef({{__manager_name}} tables)\r\n        {\r\n            foreach(var value in DataList)\r\n            {\r\n                value.ResolveRef(tables);\r\n            }\r\n            PostResolveRef();\r\n        }\r\n\r\n        public void TranslateText(System.Func<string, string, string> translator)\r\n        {\r\n            foreach(var v in DataList)\r\n            {\r\n                v.TranslateText(translator);\r\n            }\r\n        }\r\n\r\n        {{~else if __table.is_list_table ~}}\r\n        {{~if __table.is_union_index~}}\r\n        private {{table_union_map_type_name}} _dataMapUnion;\r\n        {{~else if !__table.index_list.empty?~}}\r\n        {{~for idx in __table.index_list~}}\r\n        private System.Collections.Generic.Dictionary<{{declaring_type_name idx.type}}, {{declaring_type_name value_type}}> _dataMap_{{idx.index_field.name}};\r\n        {{~end~}}\r\n        {{~end~}}\r\n        private readonly System.Func<System.Threading.Tasks.Task<ByteBuf>> _loadFunc;\r\n\r\n        public {{__name}}(System.Func<System.Threading.Tasks.Task<ByteBuf>> loadFunc)\r\n        {\r\n            _loadFunc = loadFunc;\r\n            {{~if __table.is_union_index~}}\r\n            _dataMapUnion = new {{table_union_map_type_name}}();\r\n            {{~else if !__table.index_list.empty?~}}\r\n            {{~for idx in __table.index_list~}}\r\n            _dataMap_{{idx.index_field.name}} = new System.Collections.Generic.Dictionary<{{declaring_type_name idx.type}}, {{declaring_type_name value_type}}>();\r\n            {{~end~}}\r\n            {{~end~}}\r\n        }\r\n\r\n        public override async System.Threading.Tasks.Task LoadAsync()\r\n        {\r\n            ByteBuf _buf = await _loadFunc();\r\n            DataList.Clear();\r\n            for(int n = _buf.ReadSize() ; n > 0 ; --n)\r\n            {\r\n                {{declaring_type_name value_type}} _v;\r\n                {{deserialize '_buf' '_v' value_type}}\r\n                DataList.Add(_v);\r\n            }\r\n            {{~if __table.is_union_index~}}\r\n            _dataMapUnion.Clear();\r\n            foreach(var _v in DataList)\r\n            {\r\n                _dataMapUnion.Add(({{table_key_list \"_v\"}}), _v);\r\n            }\r\n            {{~else if !__table.index_list.empty?~}}\r\n            {{~for idx in __table.index_list~}}\r\n            _dataMap_{{idx.index_field.name}}.Clear();\r\n            {{~end~}}\r\n            foreach(var _v in DataList)\r\n            {\r\n                {{~for idx in __table.index_list~}}\r\n                _dataMap_{{idx.index_field.name}}.Add(_v.{{format_property_name __code_style idx.index_field.name}}, _v);\r\n                {{~end~}}\r\n            }\r\n            {{~end~}}\r\n            PostInit();\r\n        }\r\n\r\n        {{~if __table.is_union_index~}}\r\n        public {{declaring_type_name value_type}} Get({{table_param_def_list}}) => _dataMapUnion.TryGetValue(({{table_param_name_list}}), out {{declaring_type_name value_type}} __v) ? __v : null;\r\n        {{~else if !__table.index_list.empty? ~}}\r\n        {{~for idx in __table.index_list~}}\r\n        public {{declaring_type_name value_type}} GetBy{{format_property_name __code_style idx.index_field.name}}({{declaring_type_name idx.type}} key) => _dataMap_{{idx.index_field.name}}.TryGetValue(key, out {{declaring_type_name value_type}} __v) ? __v : null;\r\n        {{~end~}}\r\n        {{~end~}}\r\n\r\n        public void ResolveRef({{__manager_name}} tables)\r\n        {\r\n            foreach(var _v in DataList)\r\n            {\r\n                _v.ResolveRef(tables);\r\n            }\r\n            PostResolveRef();\r\n        }\r\n\r\n        public void TranslateText(System.Func<string, string, string> translator)\r\n        {\r\n            foreach(var v in DataList)\r\n            {\r\n                v.TranslateText(translator);\r\n            }\r\n        }\r\n\r\n        {{~else~}}\r\n\r\n        private {{declaring_type_name value_type}} _data;\r\n        public {{declaring_type_name value_type}} Data => _data;\r\n        private readonly System.Func<System.Threading.Tasks.Task<ByteBuf>> _loadFunc;\r\n\r\n        public {{__name}}(System.Func<System.Threading.Tasks.Task<ByteBuf>> loadFunc)\r\n        {\r\n            _loadFunc = loadFunc;\r\n        }\r\n\r\n        public async System.Threading.Tasks.Task LoadAsync()\r\n        {\r\n            ByteBuf _buf = await _loadFunc();\r\n            int n = _buf.ReadSize();\r\n            if (n != 1) throw new SerializationException(\"table mode=one, but size != 1\");\r\n            {{deserialize '_buf' '_data' value_type}}\r\n            PostInit();\r\n        }\r\n\r\n        {{~ for field in value_type.def_bean.hierarchy_export_fields ~}}\r\n        {{~if field.comment != '' ~}}\r\n        /// <summary>\r\n        /// {{escape_comment field.comment}}\r\n        /// </summary>\r\n        {{~end~}}\r\n        public {{declaring_type_name field.ctype}} {{format_property_name __code_style field.name}} => _data.{{format_property_name __code_style field.name}};\r\n        {{~end~}}\r\n\r\n        public void ResolveRef({{__manager_name}} tables)\r\n        {\r\n            _data.ResolveRef(tables);\r\n            PostResolveRef();\r\n        }\r\n\r\n        public void TranslateText(System.Func<string, string, string> translator)\r\n        {\r\n            _data.TranslateText(translator);\r\n        }\r\n        {{~end~}}\r\n\r\n        partial void PostInit();\r\n        partial void PostResolveRef();\r\n    }\r\n{{namespace_with_grace_end __namespace_with_top_module}}"
  },
  {
    "path": "Config/Tools/Templates/cs-bin/tables.sbn",
    "content": "using System;\r\nusing LuBan.Runtime;\r\nusing GameFrameX.Config.Runtime;\r\n\r\n{{namespace_with_grace_begin __namespace}}\r\n    public partial class {{__name}}\r\n    {\r\n        {{~for table in __tables ~}}\r\n        {{~if table.comment != '' ~}}\r\n        /// <summary>\r\n        /// {{escape_comment table.comment}}\r\n        /// </summary>\r\n        {{~end~}}\r\n        internal {{table.full_name}} {{format_property_name __code_style table.name}} { private set; get; }\r\n        {{~end~}}\r\n        private ConfigComponent m_ConfigComponent;\r\n\r\n        public void Init(ConfigComponent configComponent)\r\n        {\r\n            m_ConfigComponent = configComponent;\r\n            configComponent.RemoveAllConfigs();\r\n        }\r\n\r\n        /// <summary>\r\n        /// 是否加载完成\r\n        /// </summary>\r\n        public bool IsLoaded { get; private set; }\r\n\r\n        /// <summary>\r\n        /// 异步加载配置文件\r\n        /// </summary>\r\n        /// <param name=\"loader\">加载器</param>\r\n        public async System.Threading.Tasks.Task LoadAsync(System.Func<string, System.Threading.Tasks.Task<ByteBuf>> loader)\r\n        {\r\n            if (IsLoaded)\r\n            {\r\n                return;\r\n            }\r\n            IsLoaded = false;\r\n            m_ConfigComponent.RemoveAllConfigs();\r\n            var loadTasks = new System.Collections.Generic.List<System.Threading.Tasks.Task>();\r\n\r\n            {{~for table in __tables ~}}\r\n            {{format_property_name __code_style table.name}} = new {{table.full_name}}(() => loader(\"{{table.output_data_file}}\"));\r\n            loadTasks.Add({{format_property_name __code_style table.name}}.LoadAsync());\r\n            m_ConfigComponent.Add(nameof({{table.full_name}}), {{format_property_name __code_style table.name}});\r\n\r\n            {{~end~}}\r\n\r\n            await System.Threading.Tasks.Task.WhenAll(loadTasks);\r\n\r\n            Refresh();\r\n            IsLoaded = true;\r\n        }\r\n\r\n        /// <summary>\r\n        /// 设置本地化的适配器\r\n        /// </summary>\r\n        /// <param name=\"translator\">适配器对象</param>\r\n        /// <exception cref=\"InvalidOperationException\">如果未加载完成将抛出此异常</exception>\r\n        public void SetTranslateText(System.Func<string, string, string> translator)\r\n        {\r\n            if (IsLoaded == false)\r\n            {\r\n                throw new InvalidOperationException(\"Table is not loaded!\");\r\n            }\r\n            {{~for table in __tables ~}}\r\n            {{format_property_name __code_style table.name}}.TranslateText(translator);\r\n            {{~end~}}\r\n        }\r\n\r\n        private void ResolveRef()\r\n        {\r\n            {{~for table in __tables ~}}\r\n            {{format_property_name __code_style table.name}}.ResolveRef(this);\r\n            {{~end~}}\r\n            PostResolveRef();\r\n        }\r\n\r\n        public void Refresh()\r\n        {\r\n            PostInit();\r\n            ResolveRef();\r\n        }\r\n\r\n        partial void PostInit();\r\n        partial void PostResolveRef();\r\n    }\r\n{{namespace_with_grace_end __namespace}}"
  },
  {
    "path": "Config/Tools/Templates/cs-code/bean.sbn",
    "content": "﻿using Luban;\r\n{{\r\n    parent_def_type = __bean.parent_def_type\r\n    export_fields = __bean.export_fields\r\n    hierarchy_export_fields = __bean.hierarchy_export_fields\r\n}}\r\n{{namespace_with_grace_begin __namespace_with_top_module}}\r\n{{~if __bean.comment != '' ~}}\r\n/// <summary>\r\n/// {{escape_comment __bean.comment}}\r\n/// </summary>\r\n{{~end~}}\r\n{{~\r\nfunc get_ref_name\r\n    ret (format_property_name __code_style $0.name) + '_Ref'\r\nend\r\n\r\nfunc get_index_var_name\r\n    ret (format_property_name __code_style $0.name) + '_Index'\r\nend\r\n\r\nfunc generate_resolve_field_ref\r\n    field = $0\r\n    fieldName = format_property_name __code_style field.name\r\n    refTable = get_ref_table field\r\n    if can_generate_ref field\r\n        tableName = format_property_name __code_style refTable.name\r\n        if field.is_nullable\r\n            ret (get_ref_name field) + ' = ' + fieldName + '!= null ? tables.' + tableName + '.Get(' + (get_value_of_nullable_type field.ctype fieldName) + ') : null;'\r\n        else\r\n            ret (get_ref_name field) + ' = tables.' + tableName + '.Get(' + fieldName + ');'\r\n        end\r\n    else if can_generate_collection_ref field\r\n        collection_ref_table = get_collection_ref_table field\r\n        tableName = format_property_name __code_style collection_ref_table.name\r\n        if field.ctype.type_name == 'list' || field.ctype.type_name == 'set'\r\n            line1 = (get_ref_name field) + ' = new ' + (declaring_collection_ref_name field.ctype) + '();' + '\\n'\r\n            line2 = 'foreach (var _v in ' + fieldName + ') { ' + (get_ref_name field) + '.Add(tables.' + tableName + '.Get(_v)); }' + '\\n'\r\n            ret line1 + line2\r\n        else if field.ctype.type_name == 'array'\r\n            line1 = (get_ref_name field) + ' = new ' + (declaring_type_name collection_ref_table.value_ttype) + '[' + fieldName + '.Length];' + '\\n'\r\n            line2 = 'for (int _i = 0; _i < ' + fieldName + '.Length; _i++) { ' + (get_ref_name field) + '[_i] = tables.' + tableName + '.Get(' + fieldName + '[_i]); }' + '\\n'\r\n            ret line1 + line2\r\n        else if field.ctype.type_name == 'map'\r\n            line1 = (get_ref_name field) + ' = new ' + (declaring_collection_ref_name field.ctype) + '();' + '\\n'\r\n            line2 = 'foreach (var (_k,_v) in ' + fieldName + ') { ' + (get_ref_name field) + '.Add(_k, tables.' + tableName + '.Get(_v)); }' + '\\n'\r\n            ret line1 + line2\r\n        else\r\n            ret ''\r\n        end\r\n    else\r\n        if (is_field_bean_need_resolve_ref field)\r\n            ret fieldName + '?.ResolveRef(tables);'\r\n        else if (is_field_array_like_need_resolve_ref field)\r\n            ret 'foreach (var _e in ' + fieldName + ') { _e?.ResolveRef(tables); }'\r\n        else if (is_field_map_need_resolve_ref field)\r\n            ret 'foreach (var _e in ' + fieldName + '.Values) { _e?.ResolveRef(tables); }'\r\n        else\r\n            ret ''\r\n        end\r\n    end\r\nend\r\n\r\nfunc get_param_def_list(bean)\r\n    paramList = []\r\n    while bean\r\n        tempList = bean.export_fields |array.each do; ret (declaring_type_name $0.ctype) + ' ' + (format_property_name __code_style $0.name); end\r\n        paramList = tempList + paramList\r\n        bean = bean.parent_def_type\r\n    end\r\n    ret array.join paramList ', '\r\nend\r\n\r\nfunc get_param_name_list(bean)\r\n    paramList = []\r\n    index = 0\r\n    while bean\r\n        tempList = bean.export_fields |array.each do; ret (format_property_name __code_style $0.name); end\r\n        paramList = tempList + paramList\r\n        bean = bean.parent_def_type\r\n    end\r\n    ret array.join paramList ', '\r\nend\r\n~}}\r\n{{~if __bean.is_value_type~}}\r\npublic partial struct {{__name}}\r\n{{~else~}}\r\npublic {{class_modifier __bean}} partial class {{__name}} : {{if parent_def_type}}{{__bean.parent}}{{else}}Luban.BeanBase{{end}}\r\n{{~end~}}\r\n{\r\n    public {{__name}}({{get_param_def_list(__bean)}}) {{if parent_def_type}} : base({{get_param_name_list(__bean.parent_def_type)}}) {{end}}\r\n    {\r\n        {{~ for field in export_fields\r\n        fieldName = format_property_name __code_style field.name\r\n        ~}}\r\n        this.{{fieldName}} = {{fieldName}};\r\n        {{~if can_generate_ref field~}}\r\n        this.{{get_ref_name field}} = null;\r\n        {{~end~}}\r\n        {{~if has_index field~}}\r\n        this.{{get_index_var_name field}} = new {{declaring_type_name (get_index_map_type field)}}({{field.size}});\r\n        foreach(var _v in {{fieldName}})\r\n        { \r\n            this.{{get_index_var_name field}}.Add(_v.{{format_property_name __code_style (get_index_field field).name}}, _v);\r\n        }\r\n        {{~end~}}\r\n        {{~end~}}\r\n        PostInit();\r\n    }\r\n\r\n    {{~ for field in export_fields ~}}\r\n    {{~if field.comment != '' ~}}\r\n    /// <summary>\r\n    /// {{escape_comment field.comment}}\r\n    /// </summary>\r\n    {{~end~}}\r\n    public readonly {{declaring_type_name field.ctype}} {{format_property_name __code_style field.name}};\r\n    {{~if can_generate_ref field~}}\r\n    public {{declaring_type_name (get_ref_type field)}} {{get_ref_name field}} { private set; get; }\r\n    {{~else if can_generate_collection_ref field~}}\r\n    public {{declaring_collection_ref_name field.ctype}} {{get_ref_name field}} { private set; get; }\r\n    {{~end~}}\r\n    {{~if has_index field\r\n    indexMapType = get_index_map_type field\r\n    ~}}\r\n    public readonly {{declaring_type_name indexMapType}} {{get_index_var_name field}};\r\n    {{~end~}}\r\n    {{~end~}}\r\n    {{~if !__bean.is_abstract_type && !__bean.is_value_type~}}\r\n    public const int __ID__ = {{__bean.id}};\r\n    public override int GetTypeId() => __ID__;\r\n    {{~end~}}\r\n\r\n    public {{method_modifier __bean}} void ResolveRef({{__manager_name}} tables)\r\n    {\r\n        {{~if parent_def_type~}}\r\n        base.ResolveRef(tables);\r\n        {{~end~}}\r\n        {{~for field in export_fields~}}\r\n        {{generate_resolve_field_ref field}}\r\n        {{~end~}}\r\n    }\r\n\r\n    public override string ToString()\r\n    {\r\n        return \"{{full_name}}{ \"\r\n        {{~for field in hierarchy_export_fields ~}}\r\n        + \"{{format_field_name __code_style field.name}}:\" + {{to_pretty_string (format_property_name __code_style field.name) field.ctype}} + \",\"\r\n        {{~end~}}\r\n        + \"}\";\r\n    }\r\n\r\n    partial void PostInit();\r\n}\r\n{{namespace_with_grace_end __namespace_with_top_module}}"
  },
  {
    "path": "Config/Tools/Templates/cs-code/table.sbn",
    "content": "using Luban;\r\n{{\r\n    key_type = __table.key_ttype\r\n    value_type =  __table.value_ttype\r\n\r\n    func index_type_name\r\n        ret (declaring_type_name $0.type)\r\n    end\r\n\r\n    func table_union_map_type_name\r\n        ret 'System.Collections.Generic.Dictionary<(' + (array.each __table.index_list @index_type_name | array.join ', ') + '), ' + (declaring_type_name value_type)  + '>'\r\n    end\r\n\r\n    func table_key_list\r\n        varName = $0\r\n        indexList = __table.index_list |array.each do; ret varName + '.' + (format_property_name __code_style $0.index_field.name); end;\r\n        ret array.join indexList ', '\r\n    end\r\n\r\n    func table_param_def_list\r\n        paramList = __table.index_list |array.each do; ret (declaring_type_name $0.type) + ' ' + $0.index_field.name; end\r\n        ret array.join paramList ', '\r\n    end\r\n\r\n    func table_param_name_list\r\n        paramList = __table.index_list |array.each do; ret $0.index_field.name; end\r\n        ret array.join paramList ', '\r\n    end\r\n\r\n    func table_param_type_list\r\n        paramList = __table.index_list |array.each do; ret (declaring_type_name $0.type); end\r\n        ret array.join paramList ', '\r\n    end\r\n}}\r\n{{namespace_with_grace_begin __namespace_with_top_module}}\r\n{{~if __table.comment != '' ~}}\r\n/// <summary>\r\n/// {{escape_comment __table.comment}}\r\n/// </summary>\r\n{{~end~}}\r\npublic partial class {{__name}}\r\n{\r\n    {{~if __table.is_map_table ~}}\r\n    private readonly System.Collections.Generic.Dictionary<{{declaring_type_name key_type}}, {{declaring_type_name value_type}}> _dataMap;\r\n    private readonly System.Collections.Generic.List<{{declaring_type_name value_type}}> _dataList;\r\n\r\n    public System.Collections.Generic.Dictionary<{{declaring_type_name key_type}}, {{declaring_type_name value_type}}> DataMap => _dataMap;\r\n    public System.Collections.Generic.List<{{declaring_type_name value_type}}> DataList => _dataList;\r\n    {{~if value_type.is_dynamic~}}\r\n    public T GetOrDefaultAs<T>({{declaring_type_name key_type}} key) where T : {{declaring_type_name value_type}} => _dataMap.TryGetValue(key, out var v) ? (T)v : null;\r\n    public T GetAs<T>({{declaring_type_name key_type}} key) where T : {{declaring_type_name value_type}} => (T)_dataMap[key];\r\n    {{~end~}}\r\n    public {{declaring_type_name value_type}} GetOrDefault({{declaring_type_name key_type}} key) => _dataMap.TryGetValue(key, out var v) ? v : null;\r\n    public {{declaring_type_name value_type}} Get({{declaring_type_name key_type}} key) => _dataMap[key];\r\n    public {{declaring_type_name value_type}} this[{{declaring_type_name key_type}} key] => _dataMap[key];\r\n\r\n    public void ResolveRef({{__manager_name}} tables)\r\n    {\r\n        foreach(var _v in _dataList)\r\n        {\r\n            _v.ResolveRef(tables);\r\n        }\r\n    }\r\n\r\n    {{~else if __table.is_list_table ~}}\r\n    private readonly System.Collections.Generic.List<{{declaring_type_name value_type}}> _dataList;\r\n    {{~if __table.is_union_index~}}\r\n    private {{table_union_map_type_name}} _dataMapUnion;\r\n    {{~else if !__table.index_list.empty?~}}\r\n    {{~for idx in __table.index_list~}}\r\n    private System.Collections.Generic.Dictionary<{{declaring_type_name idx.type}}, {{declaring_type_name value_type}}> _dataMap_{{idx.index_field.name}};\r\n    {{~end~}}\r\n    {{~end~}}\r\n\r\n    public System.Collections.Generic.List<{{declaring_type_name value_type}}> DataList => _dataList;\r\n    {{~if __table.is_union_index~}}\r\n    public {{declaring_type_name value_type}} Get({{table_param_def_list}}) => _dataMapUnion.TryGetValue(({{table_param_name_list}}), out {{declaring_type_name value_type}} __v) ? __v : null;\r\n    {{~else if !__table.index_list.empty? ~}}\r\n    {{~for idx in __table.index_list~}}\r\n    public {{declaring_type_name value_type}} GetBy{{format_property_name __code_style idx.index_field.name}}({{declaring_type_name idx.type}} key) => _dataMap_{{idx.index_field.name}}.TryGetValue(key, out {{declaring_type_name value_type}} __v) ? __v : null;\r\n    {{~end~}}\r\n    {{~end~}}\r\n\r\n    public void ResolveRef({{__manager_name}} tables)\r\n    {\r\n        foreach(var _v in _dataList)\r\n        {\r\n            _v.ResolveRef(tables);\r\n        }\r\n    }\r\n    {{~else~}}\r\n\r\n    private readonly {{declaring_type_name value_type}} _data;\r\n    public {{declaring_type_name value_type}} Data => _data;\r\n\r\n    {{~ for field in value_type.def_bean.hierarchy_export_fields ~}}\r\n    {{~if field.comment != '' ~}}\r\n    /// <summary>\r\n    /// {{escape_comment field.comment}}\r\n    /// </summary>\r\n    {{~end~}}\r\n    public {{declaring_type_name field.ctype}} {{format_property_name __code_style field.name}} => _data.{{format_property_name __code_style field.name}};\r\n    {{~end~}}\r\n\r\n    public void ResolveRef({{__manager_name}} tables)\r\n    {\r\n        _data.ResolveRef(tables);\r\n    }\r\n    {{~end~}}\r\n\r\n    partial void PostInit();\r\n}\r\n{{namespace_with_grace_end __namespace_with_top_module}}"
  },
  {
    "path": "Config/Tools/Templates/cs-code/tabledata.sbn",
    "content": "using Luban;\r\n{{\r\n    key_type = __table.key_ttype\r\n    value_type =  __table.value_ttype\r\n\r\n    func index_type_name\r\n        ret (declaring_type_name $0.type)\r\n    end\r\n\r\n    func table_union_map_type_name\r\n        ret 'System.Collections.Generic.Dictionary<(' + (array.each __table.index_list @index_type_name | array.join ', ') + '), ' + (declaring_type_name value_type)  + '>'\r\n    end\r\n\r\n    func table_key_list\r\n        varName = $0\r\n        indexList = __table.index_list |array.each do; ret varName + '.' + (format_property_name __code_style $0.index_field.name); end;\r\n        ret array.join indexList ', '\r\n    end\r\n\r\n    func table_data_list\r\n        dataList = __records |array.each do; ret (apply_value $0); end\r\n        ret array.join dataList ',\\n'\r\n    end\r\n}}\r\n{{namespace_with_grace_begin __namespace_with_top_module}}\r\n{{~if __table.comment != '' ~}}\r\n/// <summary>\r\n/// {{escape_comment __table.comment}}\r\n/// </summary>\r\n{{~end~}}\r\npublic partial class {{__name}}\r\n{\r\n    {{~if __table.is_map_table ~}}\r\n    public {{__name}}()\r\n    {\r\n        _dataList = new System.Collections.Generic.List<{{declaring_type_name value_type}}> ()\r\n        {\r\n            {{table_data_list}}\r\n        };\r\n        _dataMap = new System.Collections.Generic.Dictionary<{{declaring_type_name key_type}}, {{declaring_type_name value_type}}> (_dataList.Count);\r\n        foreach(var _v in _dataList)\r\n        {\r\n            _dataMap.Add(_v.{{format_property_name __code_style __table.index_field.name}}, _v);\r\n        }\r\n        PostInit();\r\n    }\r\n\r\n    {{~else if __table.is_list_table ~}}\r\n    public {{__name}}()\r\n    {\r\n        _dataList = new System.Collections.Generic.List<{{declaring_type_name value_type}}> ()\r\n        {\r\n            {{table_data_list}}\r\n        };\r\n        {{~if __table.is_union_index~}}\r\n        _dataMapUnion = new {{table_union_map_type_name}} (_dataList.Count);\r\n        foreach(var _v in _dataList)\r\n        {\r\n            _dataMapUnion.Add(({{table_key_list \"_v\"}}), _v);\r\n        }\r\n        {{~else if !__table.index_list.empty?~}}\r\n        {{~for idx in __table.index_list~}}\r\n        _dataMap_{{idx.index_field.name}} = new System.Collections.Generic.Dictionary<{{declaring_type_name idx.type}}, {{declaring_type_name value_type}}> (_dataList.Count);\r\n        {{~end~}}\r\n        foreach(var _v in _dataList)\r\n        {\r\n            {{~for idx in __table.index_list~}}\r\n            _dataMap_{{idx.index_field.name}}.Add(_v.{{format_property_name __code_style idx.index_field.name}}, _v);\r\n            {{~end~}}\r\n        }\r\n        {{~end~}}\r\n        PostInit();\r\n    }\r\n    {{~else~}}\r\n\r\n    public {{__name}}()\r\n    {\r\n        _data = {{table_data_list}};\r\n        PostInit();\r\n    }\r\n    {{~end~}}\r\n}\r\n{{namespace_with_grace_end __namespace_with_top_module}}"
  },
  {
    "path": "Config/Tools/Templates/cs-code/tables.sbn",
    "content": "using Luban;\r\n\r\n{{namespace_with_grace_begin __namespace}}\r\npublic partial class {{__name}}\r\n{\r\n    {{~for table in __tables ~}}\r\n    {{~if table.comment != '' ~}}\r\n    /// <summary>\r\n    /// {{escape_comment table.comment}}\r\n    /// </summary>\r\n    {{~end~}}\r\n    internal {{table.full_name}} {{format_property_name __code_style table.name}} { private set; get; }\r\n    {{~end~}}\r\n\r\n    public {{__name}}()\r\n    {\r\n        TablesMemory.BeginRecord();\r\n\r\n        {{~for table in __tables ~}}\r\n        {{format_property_name __code_style table.name}} = new {{table.full_name}}();\r\n        {{~end~}}\r\n\r\n        PostInit();\r\n        ResolveRef();\r\n\r\n        TablesMemory.EndRecord();\r\n    }\r\n\r\n    private void ResolveRef()\r\n    {\r\n        {{~for table in __tables ~}}\r\n        {{format_property_name __code_style table.name}}.ResolveRef(this);\r\n        {{~end~}}\r\n    }\r\n\r\n    partial void PostInit();\r\n}\r\n{{namespace_with_grace_end __namespace}}"
  },
  {
    "path": "Config/Tools/Templates/cs-dotnet-bin/bean.sbn",
    "content": "﻿using GameFrameX.Core.Config;\n{{\n    parent_def_type = __bean.parent_def_type\n    export_fields = __bean.export_fields\n    hierarchy_export_fields = __bean.hierarchy_export_fields\n}}\n{{namespace_with_grace_begin __namespace_with_top_module}}\n{{~if __bean.comment != '' ~}}\n    /// <summary>\n    /// {{escape_comment __bean.comment}}\n    /// </summary>\n{{~end~}}\n{{~\nfunc get_ref_name\n    ret (format_property_name __code_style $0.name) + '_Ref'\nend\n\nfunc get_index_var_name\n    ret (format_property_name __code_style $0.name) + '_Index'\nend\n\nfunc generate_resolve_field_ref\n    field = $0\n    fieldName = format_property_name __code_style field.name\n    refTable = get_ref_table field\n    if can_generate_ref field\n        tableName = format_property_name __code_style refTable.name\n        if field.is_nullable\n            ret (get_ref_name field) + ' = ' + fieldName + '!= null ? tables.' + tableName + '.Get(' + (get_value_of_nullable_type field.ctype fieldName) + ') : null;'\n        else\n            ret (get_ref_name field) + ' = tables.' + tableName + '.Get(' + fieldName + ');'\n        end\n    else if can_generate_collection_ref field\n        collection_ref_table = get_collection_ref_table field\n        tableName = format_property_name __code_style collection_ref_table.name\n        if field.ctype.type_name == 'list' || field.ctype.type_name == 'set'\n            line1 = (get_ref_name field) + ' = new ' + (declaring_collection_ref_name field.ctype) + '();' + '\\n'\n            line2 = 'foreach (var _v in ' + fieldName + ') { ' + (get_ref_name field) + '.Add(tables.' + tableName + '.Get(_v)); }' + '\\n'\n            ret line1 + line2\n        else if field.ctype.type_name == 'array'\n            line1 = (get_ref_name field) + ' = new ' + (declaring_type_name collection_ref_table.value_ttype) + '[' + fieldName + '.Length];' + '\\n'\n            line2 = 'for (int _i = 0; _i < ' + fieldName + '.Length; _i++) { ' + (get_ref_name field) + '[_i] = tables.' + tableName + '.Get(' + fieldName + '[_i]); }' + '\\n'\n            ret line1 + line2\n        else if field.ctype.type_name == 'map'\n            line1 = (get_ref_name field) + ' = new ' + (declaring_collection_ref_name field.ctype) + '();' + '\\n'\n            line2 = 'foreach (var (_k,_v) in ' + fieldName + ') { ' + (get_ref_name field) + '.Add(_k, tables.' + tableName + '.GetOrDefault(_v)); }' + '\\n'\n            ret line1 + line2\n        else\n            ret ''\n        end\n    else\n        if (is_field_bean_need_resolve_ref field)\n            ret fieldName + '?.ResolveRef(tables);'\n        else if (is_field_array_like_need_resolve_ref field)\n            ret 'foreach (var _e in ' + fieldName + ') { _e?.ResolveRef(tables); }'\n        else if (is_field_map_need_resolve_ref field)\n            ret 'foreach (var _e in ' + fieldName + '.Values) { _e?.ResolveRef(tables); }'\n        else\n            ret ''\n        end\n    end\nend\n\nfunc get_param_def_list(bean)\n    paramList = []\n    while bean\n        tempList = bean.export_fields |array.each do; ret (declaring_type_name $0.ctype) + ' ' + (format_property_name __code_style $0.name); end\n        paramList = tempList + paramList\n        bean = bean.parent_def_type\n    end\n    ret array.join paramList ', '\nend\n\nfunc get_param_name_list(bean)\n    paramList = []\n    index = 0\n    while bean\n        tempList = bean.export_fields |array.each do; ret (format_property_name __code_style $0.name); end\n        paramList = tempList + paramList\n        bean = bean.parent_def_type\n    end\n    ret array.join paramList ', '\nend\n~}}\n    {{~if __bean.is_value_type~}}\n    public partial struct {{__name}}\n    {{~else~}}\n    public {{class_modifier __bean}} partial class {{__name}} : {{if parent_def_type}}{{__bean.parent}}{{else}}BeanBase{{end}}\n    {{~end~}}\n    {\n        public {{__name}}({{get_param_def_list(__bean)}}) {{if parent_def_type}} : base({{get_param_name_list(__bean.parent_def_type)}}) {{end}}\n        {\n            {{~ for field in export_fields\n            fieldName = format_property_name __code_style field.name\n            ~}}\n            this.{{fieldName}} = {{fieldName}};\n            {{~if can_generate_ref field~}}\n            this.{{get_ref_name field}} = null;\n            {{~end~}}\n            {{~if has_index field~}}\n            this.{{get_index_var_name field}} = new {{declaring_type_name (get_index_map_type field)}}({{field.size}});\n            foreach(var _v in {{fieldName}})\n            { \n                this.{{get_index_var_name field}}.Add(_v.{{format_property_name __code_style (get_index_field field).name}}, _v);\n            }\n            {{~end~}}\n            {{~end~}}\n            PostInit();\n        }\n\n        public {{__name}}(ByteBuf _buf) {{if parent_def_type}} : base(_buf) {{end}}\n        {\n            {{~ for field in export_fields\n            this.fieldName = format_property_name __code_style field.name\n            ~}}\n            {{deserialize '_buf' fieldName field.ctype}}\n            {{~if can_generate_ref field~}}\n            {{get_ref_name field}} = null;\n            {{~end~}}\n            {{~if has_index field~}}\n            foreach(var _v in {{fieldName}})\n            { \n                {{get_index_var_name field}}.Add(_v.{{format_property_name __code_style (get_index_field field).name}}, _v);\n            }\n            {{~end~}}\n            {{~end~}}\n            // Localization Key Begin\n            {{~ for field in export_fields ~}}\n            {{~if field.type =='text'~}}\n            {{format_property_name __code_style field.name}}_Localization_Key = {{format_property_name __code_style field.name}};\n            {{~end~}}\n            {{~end~}}\n            // Localization Key End\n            PostInit();\n        }\n\n        public static {{__name}} Deserialize{{__name}}(ByteBuf _buf)\n        {\n            {{~if __bean.is_abstract_type~}}\n            switch (_buf.ReadInt())\n            {\n                {{~for child in __bean.hierarchy_not_abstract_children~}}\n                case {{child.full_name}}.__ID__: return new {{child.full_name}}(_buf);\n                {{~end~}}\n                default: throw new SerializationException();\n            }\n            {{~else~}}\n            return new {{__bean.full_name}}(_buf);\n            {{~end~}}\n        }\n\n        {{~ for field in export_fields ~}}\n        {{~if field.comment != '' ~}}\n        /// <summary>\n        /// {{escape_comment field.comment}}\n        /// </summary>\n        {{~end~}}\n        public {{declaring_type_name field.ctype}} {{format_property_name __code_style field.name}} { private set; get; }\n        {{~if field.type =='text'~}}\n        {{~if field.comment != '' ~}}\n        /// <summary>\n        /// {{escape_comment field.comment}} 的多语言Key\n        /// </summary>\n        {{~end~}}\n        public readonly string {{format_property_name __code_style field.name}}_Localization_Key;\n        {{~end~}}\n        {{~if can_generate_ref field~}}\n        public {{declaring_type_name (get_ref_type field)}} {{get_ref_name field}} { private set; get; }\n        {{~else if can_generate_collection_ref field~}}\n        public {{declaring_collection_ref_name field.ctype}} {{get_ref_name field}} { private set; get; }\n        {{~end~}}\n        {{~if has_index field\n        indexMapType = get_index_map_type field\n        ~}}\n        public readonly {{declaring_type_name indexMapType}} {{get_index_var_name field}} = new {{declaring_type_name indexMapType}}();\n        {{~end~}}\n        {{~end~}}\n        {{~if !__bean.is_abstract_type && !__bean.is_value_type~}}\n        public const int __ID__ = {{__bean.id}};\n        public override int GetTypeId() => __ID__;\n        {{~end~}}\n\n        public {{method_modifier __bean}} void ResolveRef({{__manager_name}} tables)\n        {\n            {{~if parent_def_type~}}\n            base.ResolveRef(tables);\n            {{~end~}}\n            {{~for field in export_fields~}}\n            {{generate_resolve_field_ref field}}\n            {{~end~}}\n            PostResolveRef();\n        }\n\n        public void TranslateText(System.Func<string, string, string> translator)\n        {\n            {{~if parent_def_type~}}\n            base.TranslateText(translator);\n            {{~end~}}\n            {{~ for field in export_fields ~}}\n            {{~if field.type =='text'~}}\n            {{format_property_name __code_style field.name}} = translator({{format_property_name __code_style field.name}}_Localization_Key, {{format_property_name __code_style field.name}});\n            {{~end~}}\n            {{~end~}}\n        }\n\n        public override string ToString()\n        {\n            return \"{{full_name}}{ \"\n            {{~for field in hierarchy_export_fields ~}}\n            + \"{{format_field_name __code_style field.name}}:\" + {{to_pretty_string (format_property_name __code_style field.name) field.ctype}} + \",\"\n            {{~end~}}\n            + \"}\";\n        }\n\n        partial void PostInit();\n        partial void PostResolveRef();\n    }\n{{namespace_with_grace_end __namespace_with_top_module}}"
  },
  {
    "path": "Config/Tools/Templates/cs-dotnet-bin/table.sbn",
    "content": "using GameFrameX.Core.Config;\n{{\n    key_type = __table.key_ttype\n    value_type =  __table.value_ttype\n\n    func index_type_name\n        ret (declaring_type_name $0.type)\n    end\n\n    func table_union_map_type_name\n        ret 'System.Collections.Generic.Dictionary<(' + (array.each __table.index_list @index_type_name | array.join ', ') + '), ' + (declaring_type_name value_type)  + '>'\n    end\n\n    func table_key_list\n        varName = $0\n        indexList = __table.index_list |array.each do; ret varName + '.' + (format_property_name __code_style $0.index_field.name); end;\n        ret array.join indexList ', '\n    end\n\n    func table_param_def_list\n        paramList = __table.index_list |array.each do; ret (declaring_type_name $0.type) + ' ' + $0.index_field.name; end\n        ret array.join paramList ', '\n    end\n\n    func table_param_name_list\n        paramList = __table.index_list |array.each do; ret $0.index_field.name; end\n        ret array.join paramList ', '\n    end\n}}\n{{namespace_with_grace_begin __namespace_with_top_module}}\n    {{~if __table.comment != '' ~}}\n    /// <summary>\n    /// {{escape_comment __table.comment}}\n    /// </summary>\n    {{~end~}}\n    public partial class {{__name}} : BaseDataTable<{{declaring_type_name __value_type}}>\n    {\n        {{~if __table.is_map_table ~}}\n        private readonly System.Func<System.Threading.Tasks.Task<ByteBuf>> _loadFunc;\n\n        public {{__name}}(System.Func<System.Threading.Tasks.Task<ByteBuf>> loadFunc)\n        {\n            _loadFunc = loadFunc;\n        }\n\n        public override async System.Threading.Tasks.Task LoadAsync()\n        {\n            ByteBuf _buf = await _loadFunc();\n            StringDataMaps.Clear();\n            DataList.Clear();\n            for(int n = _buf.ReadSize() ; n > 0 ; --n)\n            {\n                {{declaring_type_name value_type}} _v;\n                {{deserialize '_buf' '_v' value_type}}\n                DataList.Add(_v);\n                {{~if __key_type.type_name != 'string' ~}}\n                LongDataMaps.Add(_v.{{format_property_name __code_style __table.index_field.name}}, _v);\n                {{~end~}}\n                StringDataMaps.Add(_v.{{format_property_name __code_style __table.index_field.name}}.ToString(), _v);\n            }\n            PostInit();\n        }\n\n        {{~if value_type.is_dynamic~}}\n        //public T GetOrDefaultAs<T>({{declaring_type_name key_type}} key) where T : {{declaring_type_name value_type}} => _dataMap.TryGetValue(key, out var v) ? (T)v : null;\n        //public T GetAs<T>({{declaring_type_name key_type}} key) where T : {{declaring_type_name value_type}} => (T)_dataMap[key];\n        {{~end~}}\n\n        public void ResolveRef({{__manager_name}} tables)\n        {\n            foreach(var value in DataList)\n            {\n                value.ResolveRef(tables);\n            }\n            PostResolveRef();\n        }\n\n        public void TranslateText(System.Func<string, string, string> translator)\n        {\n            foreach(var v in DataList)\n            {\n                v.TranslateText(translator);\n            }\n        }\n\n        {{~else if __table.is_list_table ~}}\n        private readonly System.Collections.Generic.List<{{declaring_type_name value_type}}> _dataList;\n        {{~if __table.is_union_index~}}\n        private {{table_union_map_type_name}} _dataMapUnion;\n        {{~else if !__table.index_list.empty?~}}\n        {{~for idx in __table.index_list~}}\n        private System.Collections.Generic.Dictionary<{{declaring_type_name idx.type}}, {{declaring_type_name value_type}}> _dataMap_{{idx.index_field.name}};\n        {{~end~}}\n        {{~end~}}\n        private readonly System.Func<System.Threading.Tasks.Task<ByteBuf>> _loadFunc;\n\n        public {{__name}}(System.Func<System.Threading.Tasks.Task<ByteBuf>> loadFunc)\n        {\n            _loadFunc = loadFunc;\n            _dataList = new System.Collections.Generic.List<{{declaring_type_name value_type}}>();\n            {{~if __table.is_union_index~}}\n            _dataMapUnion = new {{table_union_map_type_name}}();\n            {{~else if !__table.index_list.empty?~}}\n            {{~for idx in __table.index_list~}}\n            _dataMap_{{idx.index_field.name}} = new System.Collections.Generic.Dictionary<{{declaring_type_name idx.type}}, {{declaring_type_name value_type}}>();\n            {{~end~}}\n            {{~end~}}\n        }\n\n        public async System.Threading.Tasks.Task LoadAsync()\n        {\n            ByteBuf _buf = await _loadFunc();\n            _dataList.Clear();\n            for(int n = _buf.ReadSize() ; n > 0 ; --n)\n            {\n                {{declaring_type_name value_type}} _v;\n                {{deserialize '_buf' '_v' value_type}}\n                _dataList.Add(_v);\n            }\n            {{~if __table.is_union_index~}}\n            _dataMapUnion.Clear();\n            foreach(var _v in _dataList)\n            {\n                _dataMapUnion.Add(({{table_key_list \"_v\"}}), _v);\n            }\n            {{~else if !__table.index_list.empty?~}}\n            {{~for idx in __table.index_list~}}\n            _dataMap_{{idx.index_field.name}}.Clear();\n            {{~end~}}\n            foreach(var _v in _dataList)\n            {\n                {{~for idx in __table.index_list~}}\n                _dataMap_{{idx.index_field.name}}.Add(_v.{{format_property_name __code_style idx.index_field.name}}, _v);\n                {{~end~}}\n            }\n            {{~end~}}\n            PostInit();\n        }\n\n        public System.Collections.Generic.List<{{declaring_type_name value_type}}> DataList => _dataList;\n        {{~if __table.is_union_index~}}\n        public {{declaring_type_name value_type}} Get({{table_param_def_list}}) => _dataMapUnion.TryGetValue(({{table_param_name_list}}), out {{declaring_type_name value_type}} __v) ? __v : null;\n        {{~else if !__table.index_list.empty? ~}}\n        {{~for idx in __table.index_list~}}\n        public {{declaring_type_name value_type}} GetBy{{format_property_name __code_style idx.index_field.name}}({{declaring_type_name idx.type}} key) => _dataMap_{{idx.index_field.name}}.TryGetValue(key, out {{declaring_type_name value_type}} __v) ? __v : null;\n        {{~end~}}\n        {{~end~}}\n\n        public void ResolveRef({{__manager_name}} tables)\n        {\n            foreach(var _v in _dataList)\n            {\n                _v.ResolveRef(tables);\n            }\n            PostResolveRef();\n        }\n\n        public void TranslateText(System.Func<string, string, string> translator)\n        {\n            foreach(var v in DataList)\n            {\n                v.TranslateText(translator);\n            }\n        }\n\n        {{~else~}}\n\n        private {{declaring_type_name value_type}} _data;\n        public {{declaring_type_name value_type}} Data => _data;\n        private readonly System.Func<System.Threading.Tasks.Task<ByteBuf>> _loadFunc;\n\n        public {{__name}}(System.Func<System.Threading.Tasks.Task<ByteBuf>> loadFunc)\n        {\n            _loadFunc = loadFunc;\n        }\n\n        public async System.Threading.Tasks.Task LoadAsync()\n        {\n            ByteBuf _buf = await _loadFunc();\n            int n = _buf.ReadSize();\n            if (n != 1) throw new SerializationException(\"table mode=one, but size != 1\");\n            {{deserialize '_buf' '_data' value_type}}\n            PostInit();\n        }\n\n        {{~ for field in value_type.def_bean.hierarchy_export_fields ~}}\n        {{~if field.comment != '' ~}}\n        /// <summary>\n        /// {{escape_comment field.comment}}\n        /// </summary>\n        {{~end~}}\n        public {{declaring_type_name field.ctype}} {{format_property_name __code_style field.name}} => _data.{{format_property_name __code_style field.name}};\n        {{~end~}}\n\n        public void ResolveRef({{__manager_name}} tables)\n        {\n            _data.ResolveRef(tables);\n            PostResolveRef();\n        }\n\n        public void TranslateText(System.Func<string, string, string> translator)\n        {\n            _data.TranslateText(translator);\n        }\n        {{~end~}}\n\n        partial void PostInit();\n        partial void PostResolveRef();\n    }\n{{namespace_with_grace_end __namespace_with_top_module}}"
  },
  {
    "path": "Config/Tools/Templates/cs-dotnet-bin/tables.sbn",
    "content": "using System;\nusing GameFrameX.Core.Config;\n\n{{namespace_with_grace_begin __namespace}}\n    public partial class {{__name}}\n    {\n        {{~for table in __tables ~}}\n        {{~if table.comment != '' ~}}\n        /// <summary>\n        /// {{escape_comment table.comment}}\n        /// </summary>\n        {{~end~}}\n        internal {{table.full_name}} {{format_property_name __code_style table.name}} { private set; get; }\n        {{~end~}}\n        private ConfigComponent m_ConfigComponent;\n\n        public void Init(ConfigComponent configComponent)\n        {\n            m_ConfigComponent = configComponent;\n            configComponent.RemoveAllConfigs();\n        }\n\n        /// <summary>\n        /// 是否加载完成\n        /// </summary>\n        public bool IsLoaded { get; private set; }\n\n        /// <summary>\n        /// 异步加载配置文件\n        /// </summary>\n        /// <param name=\"loader\">加载器</param>\n        public async System.Threading.Tasks.Task LoadAsync(System.Func<string, bool, System.Threading.Tasks.Task<ByteBuf>> loader)\n        {\n            if (IsLoaded)\n            {\n                return;\n            }\n            IsLoaded = false;\n            m_ConfigComponent.RemoveAllConfigs();\n            var loadTasks = new System.Collections.Generic.List<System.Threading.Tasks.Task>();\n\n            {{~for table in __tables ~}}\n            {{format_property_name __code_style table.name}} = new {{table.full_name}}(() => loader(\"{{table.output_data_file}}\", true));\n            loadTasks.Add({{format_property_name __code_style table.name}}.LoadAsync());\n            m_ConfigComponent.Add(nameof({{table.full_name}}), {{format_property_name __code_style table.name}});\n\n            {{~end~}}\n\n            await System.Threading.Tasks.Task.WhenAll(loadTasks);\n\n            Refresh();\n            IsLoaded = true;\n        }\n\n        /// <summary>\n        /// 设置本地化的适配器\n        /// </summary>\n        /// <param name=\"translator\">适配器对象</param>\n        /// <exception cref=\"InvalidOperationException\">如果未加载完成将抛出此异常</exception>\n        public void SetTranslateText(System.Func<string, string, string> translator)\n        {\n            if (IsLoaded == false)\n            {\n                throw new InvalidOperationException(\"Table is not loaded!\");\n            }\n            {{~for table in __tables ~}}\n            {{format_property_name __code_style table.name}}.TranslateText(translator);\n            {{~end~}}\n        }\n\n        private void ResolveRef()\n        {\n            {{~for table in __tables ~}}\n            {{format_property_name __code_style table.name}}.ResolveRef(this);\n            {{~end~}}\n            PostResolveRef();\n        }\n\n        public void Refresh()\n        {\n            PostInit();\n            ResolveRef();\n        }\n\n        partial void PostInit();\n        partial void PostResolveRef();\n    }\n{{namespace_with_grace_end __namespace}}"
  },
  {
    "path": "Config/Tools/Templates/cs-dotnet-json/bean.sbn",
    "content": "﻿using System.Text.Json;\r\nusing GameFrameX.Core.Config;\r\n{{\r\n    parent_def_type = __bean.parent_def_type\r\n    export_fields = __bean.export_fields\r\n    hierarchy_export_fields = __bean.hierarchy_export_fields\r\n}}\r\n{{namespace_with_grace_begin __namespace_with_top_module}}\r\n{{~if __bean.comment != '' ~}}\r\n    /// <summary>\r\n    /// {{escape_comment __bean.comment}}\r\n    /// </summary>\r\n{{~end~}}\r\n{{~\r\nfunc get_ref_name\r\n    ret (format_property_name __code_style $0.name) + '_Ref'\r\nend\r\n\r\nfunc get_index_var_name\r\n    ret (format_property_name __code_style $0.name) + '_Index'\r\nend\r\n\r\nfunc generate_resolve_field_ref\r\n    field = $0\r\n    fieldName = format_property_name __code_style field.name\r\n    refTable = get_ref_table field\r\n    if can_generate_ref field\r\n        tableName = format_property_name __code_style refTable.name\r\n        if field.is_nullable\r\n            ret (get_ref_name field) + ' = ' + fieldName + '!= null ? tables.' + tableName + '.Get(' + (get_value_of_nullable_type field.ctype fieldName) + ') : null;'\r\n        else\r\n            ret (get_ref_name field) + ' = tables.' + tableName + '.Get(' + fieldName + ');'\r\n        end\r\n    else if can_generate_collection_ref field\r\n        collection_ref_table = get_collection_ref_table field\r\n        tableName = format_property_name __code_style collection_ref_table.name\r\n        if field.ctype.type_name == 'list' || field.ctype.type_name == 'set'\r\n            line1 = (get_ref_name field) + ' = new ' + (declaring_collection_ref_name field.ctype) + '();' + '\\n'\r\n            line2 = 'foreach (var _v in ' + fieldName + ') { ' + (get_ref_name field) + '.Add(tables.' + tableName + '.Get(_v)); }' + '\\n'\r\n            ret line1 + line2\r\n        else if field.ctype.type_name == 'array'\r\n            line1 = (get_ref_name field) + ' = new ' + (declaring_type_name collection_ref_table.value_ttype) + '[' + fieldName + '.Length];' + '\\n'\r\n            line2 = 'for (int _i = 0; _i < ' + fieldName + '.Length; _i++) { ' + (get_ref_name field) + '[_i] = tables.' + tableName + '.Get(' + fieldName + '[_i]); }' + '\\n'\r\n            ret line1 + line2\r\n        else if field.ctype.type_name == 'map'\r\n            line1 = (get_ref_name field) + ' = new ' + (declaring_collection_ref_name field.ctype) + '();' + '\\n'\r\n            line2 = 'foreach (var (_k,_v) in ' + fieldName + ') { ' + (get_ref_name field) + '.Add(_k, tables.' + tableName + '.Get(_v)); }' + '\\n'\r\n            ret line1 + line2\r\n        else\r\n            ret ''\r\n        end\r\n    else\r\n        if (is_field_bean_need_resolve_ref field)\r\n            ret fieldName + '?.ResolveRef(tables);'\r\n        else if (is_field_array_like_need_resolve_ref field)\r\n            ret 'foreach (var _e in ' + fieldName + ') { _e?.ResolveRef(tables); }'\r\n        else if (is_field_map_need_resolve_ref field)\r\n            ret 'foreach (var _e in ' + fieldName + '.Values) { _e?.ResolveRef(tables); }'\r\n        else\r\n            ret ''\r\n        end\r\n    end\r\nend\r\n\r\nfunc get_param_def_list(bean)\r\n    paramList = []\r\n    while bean\r\n        tempList = bean.export_fields |array.each do; ret (declaring_type_name $0.ctype) + ' ' + (format_property_name __code_style $0.name); end\r\n        paramList = tempList + paramList\r\n        bean = bean.parent_def_type\r\n    end\r\n    ret array.join paramList ', '\r\nend\r\n\r\nfunc get_param_name_list(bean)\r\n    paramList = []\r\n    index = 0\r\n    while bean\r\n        tempList = bean.export_fields |array.each do; ret (format_property_name __code_style $0.name); end\r\n        paramList = tempList + paramList\r\n        bean = bean.parent_def_type\r\n    end\r\n    ret array.join paramList ', '\r\nend\r\n~}}\r\n    {{~if __bean.is_value_type~}}\r\n    public partial struct {{__name}}\r\n    {{~else~}}\r\n    public {{class_modifier __bean}} partial class {{__name}} : {{if parent_def_type}}{{__bean.parent}}{{else}}BeanBase{{end}}\r\n    {{~end~}}\r\n    {\r\n        /*\r\n        public {{__name}}({{get_param_def_list(__bean)}}) {{if parent_def_type}} : base({{get_param_name_list(__bean.parent_def_type)}}) {{end}}\r\n        {\r\n            {{~ for field in export_fields\r\n            fieldName = format_property_name __code_style field.name\r\n            ~}}\r\n            this.{{fieldName}} = {{fieldName}};\r\n            {{~if can_generate_ref field~}}\r\n            this.{{get_ref_name field}} = null;\r\n            {{~end~}}\r\n            {{~if has_index field~}}\r\n            this.{{get_index_var_name field}} = new {{declaring_type_name (get_index_map_type field)}}({{field.size}});\r\n            foreach(var _v in {{fieldName}})\r\n            { \r\n                this.{{get_index_var_name field}}.Add(_v.{{format_property_name __code_style (get_index_field field).name}}, _v);\r\n            }\r\n            {{~end~}}\r\n            {{~end~}}\r\n            PostInit();\r\n        }        \r\n        */\r\n\r\n        public {{__name}}(JsonElement _buf) {{if parent_def_type}} : base(_buf) {{end}}\r\n        {\r\n            {{~ for field in export_fields\r\n                fieldName = format_property_name __code_style field.name\r\n             ~}}\r\n            {{deserialize_field fieldName '_buf' field.name field.ctype}}\r\n                {{~if can_generate_ref field~}}\r\n            {{get_ref_name field}} = null;\r\n                {{~end~}}\r\n                {{~if has_index field~}}\r\n            foreach(var _v in {{fieldName}})\r\n            { \r\n                {{get_index_var_name field}}.Add(_v.{{format_property_name __code_style (get_index_field field).name}}, _v);\r\n            }\r\n                {{~end~}}\r\n            {{~end~}}\r\n        }\r\n    \r\n        public static {{__name}} Deserialize{{__name}}(JsonElement _buf)\r\n        {\r\n        {{~if __bean.is_abstract_type~}}\r\n            switch (_buf.GetProperty(\"$type\").GetString())\r\n            {\r\n            {{~for child in __bean.hierarchy_not_abstract_children~}}\r\n                case \"{{impl_data_type child __bean}}\": return new {{child.full_name}}(_buf);\r\n            {{~end~}}\r\n                default: throw new SerializationException();\r\n            }\r\n        {{~else~}}\r\n            return new {{__bean.full_name}}(_buf);\r\n        {{~end~}}\r\n        }\r\n\r\n        {{~ for field in export_fields ~}}\r\n        {{~if field.comment != '' ~}}\r\n        /// <summary>\r\n        /// {{escape_comment field.comment}}\r\n        /// </summary>\r\n        {{~end~}}\r\n        public {{declaring_type_name field.ctype}} {{format_property_name __code_style field.name}} { private set; get; }\r\n        {{~if can_generate_ref field~}}\r\n        public {{declaring_type_name (get_ref_type field)}} {{get_ref_name field}} { private set; get; }\r\n        {{~else if can_generate_collection_ref field~}}\r\n        public {{declaring_collection_ref_name field.ctype}} {{get_ref_name field}} { private set; get; }\r\n        {{~end~}}\r\n        {{~if has_index field\r\n            indexMapType = get_index_map_type field\r\n        ~}}\r\n        public {{declaring_type_name indexMapType}} {{get_index_var_name field}} { private set; get; } = new {{declaring_type_name indexMapType}}();\r\n        {{~end~}}\r\n        {{~end~}}\r\n\r\n        {{~if !__bean.is_abstract_type && !__bean.is_value_type~}}\r\n        private const int __ID__ = {{__bean.id}};\r\n        public override int GetTypeId() => __ID__;\r\n        {{~end~}}\r\n\r\n        public {{method_modifier __bean}} void ResolveRef({{__manager_name}} tables)\r\n        {\r\n            {{~if parent_def_type~}}\r\n            base.ResolveRef(tables);\r\n            {{~end~}}\r\n            {{~for field in export_fields~}}\r\n            {{generate_resolve_field_ref field}}\r\n            {{~end~}}\r\n        }\r\n\r\n        public override string ToString()\r\n        {\r\n            return \"{{full_name}}{ \"\r\n            {{~for field in hierarchy_export_fields ~}}\r\n            + \"{{format_field_name __code_style field.name}}:\" + {{to_pretty_string (format_property_name __code_style field.name) field.ctype}} + \",\"\r\n            {{~end~}}\r\n            + \"}\";\r\n        }\r\n\r\n        partial void PostInit();\r\n    }\r\n{{namespace_with_grace_end __namespace_with_top_module}}"
  },
  {
    "path": "Config/Tools/Templates/cs-dotnet-json/table.sbn",
    "content": "using System.Text.Json;\r\nusing GameFrameX.Core.Config;\r\n{{\r\n    key_type = __table.key_ttype\r\n    value_type =  __table.value_ttype\r\n\r\n    func index_type_name\r\n        ret (declaring_type_name $0.type)\r\n    end\r\n\r\n    func table_union_map_type_name\r\n        ret 'System.Collections.Generic.Dictionary<(' + (array.each __table.index_list @index_type_name | array.join ', ') + '), ' + (declaring_type_name value_type)  + '>'\r\n    end\r\n\r\n    func table_key_list\r\n        varName = $0\r\n        indexList = __table.index_list |array.each do; ret varName + '.' + (format_property_name __code_style $0.index_field.name); end;\r\n        ret array.join indexList ', '\r\n    end\r\n\r\n    func table_param_def_list\r\n        paramList = __table.index_list |array.each do; ret (declaring_type_name $0.type) + ' ' + $0.index_field.name; end\r\n        ret array.join paramList ', '\r\n    end\r\n\r\n    func table_param_name_list\r\n        paramList = __table.index_list |array.each do; ret $0.index_field.name; end\r\n        ret array.join paramList ', '\r\n    end\r\n\r\n    func table_param_type_list\r\n        paramList = __table.index_list |array.each do; ret (declaring_type_name $0.type); end\r\n        ret array.join paramList ', '\r\n    end\r\n}}\r\n{{namespace_with_grace_begin __namespace_with_top_module}}\r\n{{~if __table.comment != '' ~}}\r\n    /// <summary>\r\n    /// {{escape_comment __table.comment}}\r\n    /// </summary>\r\n    {{~end~}}\r\n    public partial class {{__name}} : BaseDataTable<{{declaring_type_name value_type}}>\r\n    {\r\n        {{~if __table.is_map_table ~}}\r\n        //private readonly System.Collections.Generic.Dictionary<{{declaring_type_name key_type}}, {{declaring_type_name value_type}}> _dataMap;\r\n        //private readonly System.Collections.Generic.List<{{declaring_type_name value_type}}> _dataList;\r\n    \r\n        //public System.Collections.Generic.Dictionary<{{declaring_type_name key_type}}, {{declaring_type_name value_type}}> DataMap => _dataMap;\r\n        //public System.Collections.Generic.List<{{declaring_type_name value_type}}> DataList => _dataList;\r\n        {{~if value_type.is_dynamic~}}\r\n        //public T GetOrDefaultAs<T>({{declaring_type_name key_type}} key) where T : {{declaring_type_name value_type}} => _dataMap.TryGetValue(key, out var v) ? (T)v : null;\r\n        //public T GetAs<T>({{declaring_type_name key_type}} key) where T : {{declaring_type_name value_type}} => (T)_dataMap[key];\r\n        {{~end~}}\r\n        //public {{declaring_type_name value_type}} GetOrDefault({{declaring_type_name key_type}} key) => _dataMap.TryGetValue(key, out var v) ? v : null;\r\n        //public {{declaring_type_name value_type}} Get({{declaring_type_name key_type}} key) => _dataMap[key];\r\n        //public {{declaring_type_name value_type}} this[{{declaring_type_name key_type}} key] => _dataMap[key];\r\n    \r\n        public override async System.Threading.Tasks.Task LoadAsync()\r\n        {\r\n            var jsonElement = await _loadFunc();\r\n            DataList.Clear();\r\n            LongDataMaps.Clear();\r\n            StringDataMaps.Clear();\r\n            foreach(var element in jsonElement.EnumerateArray())\r\n            {\r\n                {{declaring_type_name __value_type}} _v;\r\n                {{deserialize '_v' 'element' __value_type}}\r\n                DataList.Add(_v);\r\n                {{~if __key_type.type_name != 'string' ~}}      \r\n                LongDataMaps.Add(_v.{{format_property_name __code_style __table.index_field.name}}, _v);\r\n                {{~end~}}\r\n                StringDataMaps.Add(_v.{{format_property_name __code_style __table.index_field.name}}.ToString(), _v);\r\n            }\r\n            PostInit();\r\n        }\r\n\r\n        public void ResolveRef({{__manager_name}} tables)\r\n        {\r\n            foreach(var element in DataList)\r\n            {\r\n                element.ResolveRef(tables);\r\n            }\r\n        }\r\n    \r\n        {{~else if __table.is_list_table ~}}\r\n        //private readonly System.Collections.Generic.List<{{declaring_type_name value_type}}> _dataList;\r\n        {{~if __table.is_union_index~}}\r\n        private {{table_union_map_type_name}} _dataMapUnion;\r\n        {{~else if !__table.index_list.empty?~}}\r\n        {{~for idx in __table.index_list~}}\r\n        private System.Collections.Generic.Dictionary<{{declaring_type_name idx.type}}, {{declaring_type_name value_type}}> _dataMap_{{idx.index_field.name}};\r\n        {{~end~}}\r\n        {{~end~}}\r\n    \r\n        //public System.Collections.Generic.List<{{declaring_type_name value_type}}> DataList => _dataList;\r\n        {{~if __table.is_union_index~}}\r\n        public {{declaring_type_name value_type}} Get({{table_param_def_list}}) => _dataMapUnion.TryGetValue(({{table_param_name_list}}), out {{declaring_type_name value_type}} __v) ? __v : null;\r\n        {{~else if !__table.index_list.empty? ~}}\r\n        {{~for idx in __table.index_list~}}\r\n        public {{declaring_type_name value_type}} GetBy{{format_property_name __code_style idx.index_field.name}}({{declaring_type_name idx.type}} key) => _dataMap_{{idx.index_field.name}}.TryGetValue(key, out {{declaring_type_name value_type}} __v) ? __v : null;\r\n        {{~end~}}\r\n        {{~end~}}\r\n    \r\n\r\n        public override async System.Threading.Tasks.Task LoadAsync()\r\n        {\r\n            var jsonElement = await _loadFunc();\r\n            DataList.Clear();\r\n            LongDataMaps.Clear();\r\n            StringDataMaps.Clear();\r\n            foreach(var element in jsonElement.EnumerateArray())\r\n            {\r\n                {{declaring_type_name __value_type}} _v;\r\n                {{deserialize '_v' 'element' __value_type}}\r\n                DataList.Add(_v);\r\n            }\r\n            {{~if __table.is_union_index~}}\r\n            _dataMapUnion = new {{table_union_map_type_name}}();\r\n            _dataMapUnion.Clear();\r\n            foreach(var element in DataList)\r\n            {\r\n                _dataMapUnion.Add(({{table_key_list \"element\"}}), element);\r\n            }\r\n            {{~else if !__table.index_list.empty?~}}\r\n            {{~for idx in __table.index_list~}}\r\n            _dataMap_{{idx.index_field.name}} = new System.Collections.Generic.Dictionary<{{declaring_type_name idx.type}}, {{declaring_type_name __value_type}}>();\r\n            {{~end~}}\r\n            {{~for idx in __table.index_list~}}\r\n            _dataMap_{{idx.index_field.name}}.Clear();\r\n            {{~end~}}\r\n            foreach(var element in DataList)\r\n            {\r\n                {{~for idx in __table.index_list~}}\r\n                _dataMap_{{idx.index_field.name}}.Add(element.{{format_property_name __code_style idx.index_field.name}}, element);\r\n                {{~end~}}\r\n            }\r\n            {{~end~}}\r\n            PostInit();\r\n        }\r\n\r\n        public void ResolveRef({{__manager_name}} tables)\r\n        {\r\n            foreach(var element in DataList)\r\n            {\r\n                element.ResolveRef(tables);\r\n            }\r\n        }\r\n        {{~else~}}\r\n    \r\n        private {{declaring_type_name value_type}} _data;\r\n        public {{declaring_type_name value_type}} Data => _data;\r\n\r\n        {{~ for field in value_type.def_bean.hierarchy_export_fields ~}}\r\n        {{~if field.comment != '' ~}}\r\n        /// <summary>\r\n        /// {{escape_comment field.comment}}\r\n        /// </summary>\r\n        {{~end~}}\r\n        public {{declaring_type_name field.ctype}} {{format_property_name __code_style field.name}} => _data.{{format_property_name __code_style field.name}};\r\n        {{~end~}}\r\n    \r\n        public override async Task LoadAsync()\r\n        {\r\n            var jsonElement = await _loadFunc();\r\n\r\n            int n = jsonElement.GetArrayLength();\r\n            if (n != 1) throw new SerializationException(\"table mode=one, but size != 1\");\r\n            {{deserialize '_data' 'jsonElement[0]' __value_type}}\r\n        }\r\n\r\n        public void ResolveRef({{__manager_name}} tables)\r\n        {\r\n            _data.ResolveRef(tables);\r\n        }\r\n        {{~end~}}\r\n    \r\n        partial void PostInit();\r\n\r\n        public {{__name}}(Func<Task<JsonElement>> loadFunc) : base(loadFunc)\r\n        {\r\n        }\r\n    }\r\n{{namespace_with_grace_end __namespace_with_top_module}}"
  },
  {
    "path": "Config/Tools/Templates/cs-dotnet-json/tables.sbn",
    "content": "using System.Text.Json;\r\nusing GameFrameX.Core.Config;\r\nusing GameFrameX.Config;\r\n\r\n{{namespace_with_grace_begin __namespace}}\r\n    public partial class {{__name}}\r\n    {\r\n        {{~for table in __tables ~}}\r\n        {{~if table.comment != '' ~}}\r\n        /// <summary>\r\n        /// {{escape_comment table.comment}}\r\n        /// </summary>\r\n        {{~end~}}\r\n        internal {{table.full_name}} {{format_property_name __code_style table.name}} { private set; get; }\r\n        {{~end~}}\r\n    \r\n        private ConfigComponent m_ConfigComponent;\r\n\r\n        public void Init(ConfigComponent configComponent)\r\n        {\r\n            m_ConfigComponent = configComponent;\r\n            configComponent.RemoveAllConfigs();\r\n        }\r\n\r\n        public async System.Threading.Tasks.Task LoadAsync(System.Func<string, System.Threading.Tasks.Task<JsonElement>> loader)\r\n        {\r\n            //m_ConfigComponent.RemoveAllConfigs();\r\n            var loadTasks = new System.Collections.Generic.List<System.Threading.Tasks.Task>();\r\n    \r\n            {{~for table in __tables ~}}\r\n            {{format_property_name __code_style table.name}} = new {{table.full_name}}(() => loader(\"{{table.output_data_file}}\"));\r\n            loadTasks.Add({{format_property_name __code_style table.name}}.LoadAsync());\r\n            m_ConfigComponent.Add(nameof({{table.full_name}}), {{format_property_name __code_style table.name}});\r\n\r\n            {{~end~}}\r\n    \r\n            await System.Threading.Tasks.Task.WhenAll(loadTasks);\r\n    \r\n            Refresh();\r\n        }\r\n\r\n        public {{__name}}()\r\n        {\r\n            //TablesMemory.BeginRecord();\r\n    \r\n            {{~for table in __tables ~}}\r\n            // {{format_property_name __code_style table.name}} = new {{table.full_name}}();\r\n            {{~end~}}\r\n            //TablesMemory.EndRecord();\r\n        }\r\n\r\n        public void Refresh()\r\n        {\r\n            PostInit();\r\n            ResolveRef();\r\n        }\r\n\r\n        private void ResolveRef()\r\n        {\r\n            {{~for table in __tables ~}}\r\n            {{format_property_name __code_style table.name}}.ResolveRef(this);\r\n            {{~end~}}\r\n        }\r\n    \r\n        partial void PostInit();\r\n    }\r\n{{namespace_with_grace_end __namespace}}"
  },
  {
    "path": "Config/Tools/Templates/cs-simple-json/bean.sbn",
    "content": "﻿using LuBan.Runtime;\r\nusing GameFrameX.Config;\r\nusing SimpleJSON;\r\n{{\r\n    parent_def_type = __bean.parent_def_type\r\n    export_fields = __bean.export_fields\r\n    hierarchy_export_fields = __bean.hierarchy_export_fields\r\n}}\r\n{{namespace_with_grace_begin __namespace_with_top_module}}\r\n    {{~if __bean.comment != '' ~}}\r\n    /// <summary>\r\n    /// {{escape_comment __bean.comment}}\r\n    /// </summary>\r\n    {{~end~}}\r\n{{~\r\nfunc get_ref_name\r\n    ret (format_property_name __code_style $0.name) + '_Ref'\r\nend\r\n\r\nfunc get_index_var_name\r\n    ret (format_property_name __code_style $0.name) + '_Index'\r\nend\r\n\r\nfunc generate_resolve_field_ref\r\n    field = $0\r\n    fieldName = format_property_name __code_style field.name\r\n    refTable = get_ref_table field\r\n    if can_generate_ref field\r\n        tableName = format_property_name __code_style refTable.name\r\n        if field.is_nullable\r\n            ret (get_ref_name field) + ' = ' + fieldName + '!= null ? tables.' + tableName + '.Get(' + (get_value_of_nullable_type field.ctype fieldName) + ') : null;'\r\n        else\r\n            ret (get_ref_name field) + ' = tables.' + tableName + '.Get(' + fieldName + ');'\r\n        end\r\n    else if can_generate_collection_ref field\r\n        collection_ref_table = get_collection_ref_table field\r\n        tableName = format_property_name __code_style collection_ref_table.name\r\n        if field.ctype.type_name == 'list' || field.ctype.type_name == 'set'\r\n            line1 = (get_ref_name field) + ' = new ' + (declaring_collection_ref_name field.ctype) + '();' + '\\n'\r\n            line2 = 'foreach (var _v in ' + fieldName + ') ' + '\\n{\\n'\r\n            line3 = '\\t' + (get_ref_name field) + '.Add(tables.' + tableName + '.Get(_v)); '\r\n            line3 = line3  + '\\n' + '}' + '\\n'\r\n            ret line1 + line2 + line3\r\n        else if field.ctype.type_name == 'array'\r\n            line1 = (get_ref_name field) + ' = new ' + (declaring_type_name collection_ref_table.value_ttype) + '[' + fieldName + '.Length];' + '\\n'\r\n            line2 = 'for (int _i = 0; _i < ' + fieldName + '.Length; _i++) { ' + (get_ref_name field) + '[_i] = tables.' + tableName + '.Get(' + fieldName + '[_i]); }' + '\\n'\r\n            ret line1 + line2\r\n        else if field.ctype.type_name == 'map'\r\n            line1 = (get_ref_name field) + ' = new ' + (declaring_collection_ref_name field.ctype) + '();' + '\\n'\r\n            line2 = 'foreach (var _kv in ' + fieldName + ') { ' + '\\n'\r\n            line3 = '    ' + (get_ref_name field) + '.Add(_kv.Key, tables.' + tableName + '.Get(_kv.Value));' + '\\n'\r\n            line3 = line3 + '}' + '\\n'\r\n            ret line1 + line2 + line3\r\n        else\r\n            ret ''\r\n        end\r\n    else\r\n        if (is_field_bean_need_resolve_ref field)\r\n            ret fieldName + '?.ResolveRef(tables);'\r\n        else if (is_field_array_like_need_resolve_ref field)\r\n            ret 'foreach (var _e in ' + fieldName + ') \\n{\\n \\t_e?.ResolveRef(tables);\\n}'\r\n        else if (is_field_map_need_resolve_ref field)\r\n            ret 'foreach (var _e in ' + fieldName + '.Values) \\n{\\n \\t_e?.ResolveRef(tables);\\n}'\r\n        else\r\n            ret ''\r\n        end\r\n    end\r\nend\r\n\r\nfunc get_param_def_list(bean)\r\n    paramList = []\r\n    while bean\r\n        tempList = bean.export_fields |array.each do; ret (declaring_type_name $0.ctype) + ' ' + (format_property_name __code_style $0.name); end\r\n        paramList = tempList + paramList\r\n        bean = bean.parent_def_type\r\n    end\r\n    ret array.join paramList ', '\r\nend\r\n\r\nfunc get_param_name_list(bean)\r\n    paramList = []\r\n    index = 0\r\n    while bean\r\n        tempList = bean.export_fields |array.each do; ret (format_property_name __code_style $0.name); end\r\n        paramList = tempList + paramList\r\n        bean = bean.parent_def_type\r\n    end\r\n    ret array.join paramList ', '\r\nend\r\n~}}\r\n    {{~if __bean.is_value_type~}}\r\n    public partial struct {{__name}}\r\n    {{~else~}}\r\n    public {{class_modifier __bean}} partial class {{__name}} : {{if parent_def_type}}{{__bean.parent}}{{else}}LuBan.Runtime.BeanBase{{end}}\r\n    {{~end~}}\r\n    {\r\n        public {{__name}}({{get_param_def_list(__bean)}}) {{if parent_def_type}} : base({{get_param_name_list(__bean.parent_def_type)}}) {{end}}\r\n        {\r\n            {{~ for field in export_fields\r\n            fieldName = format_property_name __code_style field.name\r\n            ~}}\r\n            this.{{fieldName}} = {{fieldName}};\r\n            {{~if can_generate_ref field~}}\r\n            this.{{get_ref_name field}} = null;\r\n            {{~end~}}\r\n            {{~if has_index field~}}\r\n            this.{{get_index_var_name field}} = new {{declaring_type_name (get_index_map_type field)}}({{field.size}});\r\n            foreach(var _v in {{fieldName}})\r\n            { \r\n                this.{{get_index_var_name field}}.Add(_v.{{format_property_name __code_style (get_index_field field).name}}, _v);\r\n            }\r\n            {{~end~}}\r\n            {{~end~}}\r\n            PostInit();\r\n        }\r\n\r\n        public {{__name}}(JSONNode _buf){{if parent_def_type}} : base(_buf) {{end}}\r\n        {\r\n            {{~ for field in export_fields\r\n                fieldName = format_property_name __code_style field.name\r\n            ~}}\r\n            {{deserialize_field fieldName '_buf' field.name field.ctype}}\r\n            {{~if can_generate_ref field~}}\r\n            {{get_ref_name field}} = null;\r\n            {{~end~}}\r\n            {{~if has_index field~}}\r\n            foreach(var _v in {{fieldName}})\r\n            {\r\n                {{get_index_var_name field}}.Add(_v.{{format_property_name __code_style (get_index_field field).name}}, _v);\r\n            }\r\n            {{~end~}}\r\n            {{~end~}}\r\n\r\n            // Localization Key Begin\r\n            {{~ for field in export_fields ~}}\r\n            {{~if field.type =='text'~}}\r\n            {{format_property_name __code_style field.name}}_Localization_Key = {{format_property_name __code_style field.name}};\r\n            {{~end~}}\r\n            {{~end~}}\r\n            // Localization Key End\r\n            PostInit();\r\n        }\r\n\r\n        public static {{__name}} Deserialize{{__name}}(JSONNode _buf)\r\n        {\r\n            {{~if __bean.is_abstract_type~}}\r\n            switch ((string)_buf[\"$type\"])\r\n            {\r\n                {{~for child in __bean.hierarchy_not_abstract_children~}}\r\n                case \"{{impl_data_type child __bean}}\": return new {{child.full_name}}(_buf);\r\n                {{~end~}}\r\n                default: throw new SerializationException();\r\n            }\r\n            {{~else~}}\r\n            return new {{__bean.full_name}}(_buf);\r\n            {{~end~}}\r\n        }\r\n\r\n        {{~ for field in export_fields ~}}\r\n        {{~if field.comment != '' ~}}\r\n        /// <summary>\r\n        /// {{escape_comment field.comment}}\r\n        /// </summary>\r\n        {{~end~}}\r\n        public {{declaring_type_name field.ctype}} {{format_property_name __code_style field.name}} { private set; get; }\r\n        {{~if field.type =='text'~}}\r\n        {{~if field.comment != '' ~}}\r\n        /// <summary>\r\n        /// {{escape_comment field.comment}} 的多语言Key\r\n        /// </summary>\r\n        {{~end~}}\r\n        private readonly string {{format_property_name __code_style field.name}}_Localization_Key;\r\n        {{~end~}}\r\n        {{~if can_generate_ref field~}}\r\n        public {{declaring_type_name (get_ref_type field)}} {{get_ref_name field}} { private set; get; }\r\n        {{~else if can_generate_collection_ref field~}}\r\n        public {{declaring_collection_ref_name field.ctype}} {{get_ref_name field}} { private set; get; }\r\n        {{~end~}}\r\n        {{~if has_index field\r\n            indexMapType = get_index_map_type field\r\n        ~}}\r\n        public readonly {{declaring_type_name indexMapType}} {{get_index_var_name field}} = new {{declaring_type_name indexMapType}}();\r\n        {{~end~}}\r\n        {{~end~}}\r\n        {{~if !__bean.is_abstract_type && !__bean.is_value_type~}}\r\n        public const int __ID__ = {{__bean.id}};\r\n        public override int GetTypeId() => __ID__;\r\n        {{~end~}}\r\n\r\n        public {{method_modifier __bean}} void ResolveRef({{__manager_name}} tables)\r\n        {\r\n            {{~if parent_def_type~}}\r\n            base.ResolveRef(tables);\r\n            {{~end~}}\r\n            {{~for field in export_fields~}}\r\n            {{generate_resolve_field_ref field}}\r\n            {{~end~}}\r\n        }\r\n\r\n        public void TranslateText(System.Func<string, string, string> translator)\r\n        {\r\n            {{~if parent_def_type~}}\r\n            base.TranslateText(translator);\r\n            {{~end~}}\r\n            {{~ for field in export_fields ~}}\r\n            {{~if field.type =='text'~}}\r\n            {{format_property_name __code_style field.name}} = translator({{format_property_name __code_style field.name}}_Localization_Key, {{format_property_name __code_style field.name}});\r\n            {{~end~}}\r\n            {{~end~}}\r\n        }\r\n\r\n        public override string ToString()\r\n        {\r\n            return \"{{full_name}}{ \"\r\n        {{~for field in hierarchy_export_fields ~}}\r\n            + \"{{format_field_name __code_style field.name}}:\" + {{to_pretty_string (format_property_name __code_style field.name) field.ctype}} + \",\"\r\n        {{~end~}}\r\n            + \"}\";\r\n        }\r\n\r\n        partial void PostInit();\r\n    }\r\n{{namespace_with_grace_end __namespace_with_top_module}}"
  },
  {
    "path": "Config/Tools/Templates/cs-simple-json/table.sbn",
    "content": "using LuBan.Runtime;\r\nusing GameFrameX.Config.Runtime;\r\nusing SimpleJSON;\r\n\r\n{{\r\n    func index_type_name\r\n        ret (declaring_type_name $0.type)\r\n    end\r\n    \r\n    func table_union_map_type_name\r\n        ret 'System.Collections.Generic.Dictionary<(' + (array.each __table.index_list @index_type_name | array.join ', ') + '), ' + (declaring_type_name __value_type)  + '>'\r\n    end\r\n    \r\n    func table_key_list\r\n        varName = $0\r\n        indexList = __table.index_list |array.each do; ret varName + '.' + (format_property_name __code_style $0.index_field.name); end;\r\n        ret array.join indexList ', '\r\n    end\r\n    \r\n    func table_param_def_list\r\n        paramList = __table.index_list |array.each do; ret (declaring_type_name $0.type) + ' ' + $0.index_field.name; end\r\n        ret array.join paramList ', '\r\n    end\r\n    \r\n    func table_param_name_list\r\n        paramList = __table.index_list |array.each do; ret $0.index_field.name; end\r\n        ret array.join paramList ', '\r\n    end\r\n}}\r\n{{namespace_with_grace_begin __namespace_with_top_module}}\r\n    {{~if __table.comment != '' ~}}\r\n    /// <summary>\r\n    /// {{escape_comment __table.comment}}\r\n    /// </summary>\r\n    {{~end~}}\r\n    public partial class {{__name}} : BaseDataTable<{{declaring_type_name __value_type}}>\r\n    {\r\n        {{~if __table.is_map_table ~}}        \r\n        private readonly System.Func<System.Threading.Tasks.Task<JSONNode>> _loadFunc;        \r\n        public {{__name}}(System.Func<System.Threading.Tasks.Task<JSONNode>> loadFunc)\r\n        {\r\n            _loadFunc = loadFunc;\r\n        }\r\n        public override async System.Threading.Tasks.Task LoadAsync()\r\n        {\r\n            var jsonNode = await _loadFunc();\r\n            StringDataMaps.Clear();\r\n            DataList.Clear();\r\n            foreach(var _ele in jsonNode.Children)\r\n            {\r\n                {{declaring_type_name __value_type}} _v;\r\n                {{deserialize '_v' '_ele' __value_type}}\r\n                DataList.Add(_v);\r\n                {{~if __key_type.type_name != 'string' ~}}\r\n                LongDataMaps.Add(_v.{{format_property_name __code_style __table.index_field.name}}, _v);\r\n                {{~end~}}\r\n                StringDataMaps.Add(_v.{{format_property_name __code_style __table.index_field.name}}.ToString(), _v);\r\n            }\r\n            PostInit();\r\n        }\r\n        {{~if __value_type.is_dynamic~}}\r\n        //public T GetOrDefaultAs<T>({{declaring_type_name __key_type}} key) where T : {{declaring_type_name __value_type}} => _dataMap.TryGetValue(key, out var v) ? (T)v : null;\r\n        //public T GetAs<T>({{declaring_type_name __key_type}} key) where T : {{declaring_type_name __value_type}} => (T)_dataMap[key];\r\n        {{~end~}}\r\n    \r\n        public void ResolveRef({{__manager_name}} tables)\r\n        {\r\n            foreach(var value in DataList)\r\n            {\r\n                value.ResolveRef(tables);\r\n            }\r\n        }\r\n\r\n        public void TranslateText(System.Func<string, string, string> translator)\r\n        {\r\n            foreach(var v in DataList)\r\n            {\r\n                v.TranslateText(translator);\r\n            }\r\n        }\r\n\r\n        {{~else if __table.is_list_table ~}}\r\n        {{~if __table.is_union_index~}}\r\n        private {{table_union_map_type_name}} _dataMapUnion;\r\n        {{~else if !__table.index_list.empty?~}}\r\n        {{~for idx in __table.index_list~}}\r\n        private System.Collections.Generic.Dictionary<{{declaring_type_name idx.type}}, {{declaring_type_name __value_type}}> _dataMap_{{idx.index_field.name}};\r\n        {{~end~}}\r\n        {{~end~}}\r\n        private readonly System.Func<System.Threading.Tasks.Task<JSONNode>> _loadFunc;\r\n    \r\n        public {{__name}}(System.Func<System.Threading.Tasks.Task<JSONNode>> loadFunc)\r\n        {\r\n            _loadFunc = loadFunc;\r\n            {{~if __table.is_union_index~}}\r\n            _dataMapUnion = new {{table_union_map_type_name}}();\r\n            {{~else if !__table.index_list.empty?~}}\r\n            {{~for idx in __table.index_list~}}\r\n            _dataMap_{{idx.index_field.name}} = new System.Collections.Generic.Dictionary<{{declaring_type_name idx.type}}, {{declaring_type_name __value_type}}>();\r\n            {{~end~}}\r\n            {{~end~}}\r\n        }\r\n    \r\n        public override async System.Threading.Tasks.Task LoadAsync()\r\n        {\r\n            JSONNode _json = await _loadFunc();\r\n            DataList.Clear();\r\n            foreach(var _ele in _json.Children)\r\n            {\r\n                {{declaring_type_name __value_type}} _v;\r\n                {{deserialize '_v' '_ele' __value_type}}\r\n                DataList.Add(_v);\r\n            }\r\n            {{~if __table.is_union_index~}}\r\n            _dataMapUnion.Clear();\r\n            foreach(var _v in DataList)\r\n            {\r\n                _dataMapUnion.Add(({{table_key_list \"_v\"}}), _v);\r\n            }\r\n            {{~else if !__table.index_list.empty?~}}\r\n            {{~for idx in __table.index_list~}}\r\n            _dataMap_{{idx.index_field.name}}.Clear();\r\n            {{~end~}}\r\n            foreach(var _v in DataList)\r\n            {\r\n                {{~for idx in __table.index_list~}}\r\n                _dataMap_{{idx.index_field.name}}.Add(_v.{{format_property_name __code_style idx.index_field.name}}, _v);\r\n                {{~end~}}\r\n            }\r\n            {{~end~}}\r\n            PostInit();\r\n        }\r\n    \r\n        //public System.Collections.Generic.List<{{declaring_type_name __value_type}}> DataList => DataList;\r\n        {{~if __table.is_union_index~}}\r\n        public {{declaring_type_name __value_type}} Get({{table_param_def_list}}) => _dataMapUnion.TryGetValue(({{table_param_name_list}}), out {{declaring_type_name __value_type}} __v) ? __v : null;\r\n        {{~else if !__table.index_list.empty? ~}}\r\n        {{~for idx in __table.index_list~}}\r\n        public {{declaring_type_name __value_type}} GetBy{{format_property_name __code_style idx.index_field.name}}({{declaring_type_name idx.type}} key) => _dataMap_{{idx.index_field.name}}.TryGetValue(key, out {{declaring_type_name __value_type}} __v) ? __v : null;\r\n        {{~end~}}\r\n        {{~end~}}\r\n    \r\n        public void ResolveRef({{__manager_name}} tables)\r\n        {\r\n            foreach(var _v in DataList)\r\n            {\r\n                _v.ResolveRef(tables);\r\n            }\r\n        }\r\n\r\n        public void TranslateText(System.Func<string, string, string> translator)\r\n        {\r\n            foreach(var v in DataList)\r\n            {\r\n                v.TranslateText(translator);\r\n            }\r\n        }\r\n\r\n        {{~else~}}\r\n    \r\n        private {{declaring_type_name __value_type}} _data;\r\n        public {{declaring_type_name __value_type}} Data => _data;\r\n        private readonly System.Func<System.Threading.Tasks.Task<JSONNode>> _loadFunc;\r\n    \r\n        public {{__name}}(System.Func<System.Threading.Tasks.Task<JSONNode>> loadFunc)\r\n        {\r\n            _loadFunc = loadFunc;\r\n        }\r\n    \r\n        public override async System.Threading.Tasks.Task LoadAsync()\r\n        {\r\n            JSONNode _json = await _loadFunc();\r\n            int n = _json.Count;\r\n            if (n != 1) throw new SerializationException(\"table mode=one, but size != 1\");\r\n            {{deserialize '_data' '_json[0]' __value_type}}\r\n        }\r\n    \r\n        {{~ for field in __value_type.def_bean.hierarchy_export_fields ~}}\r\n        {{~if field.comment != '' ~}}\r\n        /// <summary>\r\n        /// {{escape_comment field.comment}}\r\n        /// </summary>\r\n        {{~end~}}\r\n        public {{declaring_type_name field.ctype}} {{format_property_name __code_style field.name}} => _data.{{format_property_name __code_style field.name}};\r\n        {{~end~}}\r\n    \r\n        public void ResolveRef({{__manager_name}} tables)\r\n        {\r\n            _data.ResolveRef(tables);\r\n        }\r\n\r\n        public void TranslateText(System.Func<string, string, string> translator)\r\n        {\r\n            _data.TranslateText(translator);\r\n        }\r\n        {{~end~}}\r\n\r\n\r\n\r\n        partial void PostInit();\r\n    }\r\n{{namespace_with_grace_end __namespace_with_top_module}}\r\n"
  },
  {
    "path": "Config/Tools/Templates/cs-simple-json/tables.sbn",
    "content": "using System;\r\nusing LuBan.Runtime;\r\nusing GameFrameX.Config.Runtime;\r\nusing SimpleJSON;\r\n\r\n{{namespace_with_grace_begin __namespace}}\r\n    public partial class {{__name}}\r\n    {\r\n        {{~for table in __tables ~}}\r\n\r\n        {{~if table.comment != '' ~}}\r\n        /// <summary>\r\n        /// {{escape_comment table.comment}}\r\n        /// </summary>\r\n        {{~end~}}        \r\n        internal {{table.full_name}} {{format_property_name __code_style table.name}} { private set; get; }\r\n        {{~end~}}\r\n\r\n        private ConfigComponent m_ConfigComponent;\r\n\r\n        public void Init(ConfigComponent configComponent)\r\n        {\r\n            m_ConfigComponent = configComponent;\r\n            configComponent.RemoveAllConfigs();\r\n        }\r\n\r\n        /// <summary>\r\n        /// 是否加载完成\r\n        /// </summary>\r\n        public bool IsLoaded { get; private set; }\r\n\r\n        /// <summary>\r\n        /// 异步加载配置文件\r\n        /// </summary>\r\n        /// <param name=\"loader\">加载器</param>\r\n        public async System.Threading.Tasks.Task LoadAsync(System.Func<string, System.Threading.Tasks.Task<JSONNode>> loader)\r\n        {\r\n            if (IsLoaded)\r\n            {\r\n                return;\r\n            }\r\n            IsLoaded = false;\r\n            m_ConfigComponent.RemoveAllConfigs();\r\n            var loadTasks = new System.Collections.Generic.List<System.Threading.Tasks.Task>();\r\n    \r\n            {{~for table in __tables ~}}\r\n            {{format_property_name __code_style table.name}} = new {{table.full_name}}(() => loader(\"{{table.output_data_file}}\"));\r\n            loadTasks.Add({{format_property_name __code_style table.name}}.LoadAsync());\r\n            m_ConfigComponent.Add(nameof({{table.full_name}}), {{format_property_name __code_style table.name}});\r\n\r\n            {{~end~}}\r\n    \r\n            await System.Threading.Tasks.Task.WhenAll(loadTasks);\r\n    \r\n            Refresh();\r\n            IsLoaded = true;\r\n        }\r\n\r\n        /// <summary>\r\n        /// 设置本地化的适配器\r\n        /// </summary>\r\n        /// <param name=\"translator\">适配器对象</param>\r\n        /// <exception cref=\"InvalidOperationException\">如果未加载完成将抛出此异常</exception>\r\n        public void SetTranslateText(System.Func<string, string, string> translator)\r\n        {\r\n            if (IsLoaded == false)\r\n            {\r\n                throw new InvalidOperationException(\"Table is not loaded!\");\r\n            }\r\n            {{~for table in __tables ~}}\r\n            {{format_property_name __code_style table.name}}.TranslateText(translator);\r\n            {{~end~}}\r\n        }\r\n\r\n        private void ResolveRef()\r\n        {\r\n            {{~for table in __tables ~}}\r\n            {{format_property_name __code_style table.name}}.ResolveRef(this);\r\n            {{~end~}}\r\n        }\r\n    \r\n        public void Refresh()\r\n        {\r\n            PostInit();\r\n            ResolveRef();\r\n        }\r\n    \r\n        partial void PostInit();\r\n    }\r\n{{namespace_with_grace_end __namespace}}"
  },
  {
    "path": "Config/Tools/nlog.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\" ?>\r\n<nlog xmlns=\"http://www.nlog-project.org/schemas/NLog.xsd\"\r\n     xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">\r\n\r\n <targets>\r\n\t<default-wrapper xsi:type=\"AsyncWrapper\"\r\n\t\tname=\"default-wrapper\"\r\n\t\tqueueLimit=\"1000000\"\r\n\t\ttimeToSleepBetweenBatches=\"1\"\r\n\t\tbatchSize=\"1000\"\r\n\t\toverflowAction=\"Block\"\r\n\t/>\r\n \r\n   <target name=\"logconsole\" xsi:type=\"ColoredConsole\" useDefaultRowHighlightingRules=\"false\"\r\n\tlayout=\"${date}|${level:uppercase=true}|${message}${onexception:${newline}${exception:format=tostring}${exception:format=StackTrace}}\" >\r\n\t\t<highlight-row condition=\"level == LogLevel.Warn\" foregroundColor=\"Yellow\" />\r\n\t\t<highlight-row condition=\"level == LogLevel.Error\" foregroundColor=\"Red\" />\r\n\t\t<highlight-row condition=\"level == LogLevel.Fatal\" foregroundColor=\"Red\" backgroundColor=\"White\" />\r\n   </target>\r\n </targets>\r\n\r\n <rules>   \r\n   <logger name=\"*\" minlevel=\"Info\" writeTo=\"logconsole\" />\r\n </rules>\r\n</nlog>\r\n"
  },
  {
    "path": "Config/gen-client-bin.bat",
    "content": "dotnet.exe ./Tools/Luban.dll --target client --dataTarget bin --codeTarget cs-bin --xargs outputDataDir=../Unity/Assets//Bundles/Config  --xargs outputCodeDir=../Unity/Assets//Hotfix/Config/Generate --xargs tableImporter.name=gameframex -x l10n.provider=gameframex -x l10n.textFile.keyFieldName=key  -x l10n.textFile.path=./Excels/Local/ --conf ./Luban.conf\r\n\r\npause"
  },
  {
    "path": "Config/gen-client-bin.sh",
    "content": "dotnet ./Tools/Luban.dll --target client --dataTarget bin --codeTarget cs-bin --xargs outputDataDir=../Unity/Assets//Bundles/Config  --xargs outputCodeDir=../Unity/Assets//Hotfix/Config/Generate --xargs tableImporter.name=gameframex -x l10n.provider=gameframex -x l10n.textFile.keyFieldName=key  -x l10n.textFile.path=./Excels/Local/ --conf ./Luban.conf\n\npause"
  },
  {
    "path": "Config/gen-client-json.bat",
    "content": "dotnet.exe ./Tools/Luban.dll --target client --dataTarget json --codeTarget cs-simple-json --xargs outputDataDir=../Unity/Assets//Bundles/Config  --xargs outputCodeDir=../Unity/Assets//Hotfix/Config/Generate --xargs tableImporter.name=gameframex -x l10n.provider=gameframex -x l10n.textFile.keyFieldName=key  -x l10n.textFile.path=./Excels/Local/ --conf ./Luban.conf\r\n\r\npause"
  },
  {
    "path": "Config/gen-client-json.sh",
    "content": "dotnet ./Tools/Luban.dll --target client --dataTarget json --codeTarget cs-simple-json --xargs outputDataDir=../Unity/Assets//Bundles/Config  --xargs outputCodeDir=../Unity/Assets//Hotfix/Config/Generate --xargs tableImporter.name=gameframex -x l10n.provider=gameframex -x l10n.textFile.keyFieldName=key  -x l10n.textFile.path=./Excels/Local/ --conf ./Luban.conf\n\npause"
  },
  {
    "path": "Config/gen-server-bin.bat",
    "content": "dotnet.exe ./Tools/Luban.dll --target server --dataTarget bin --codeTarget cs-dotnet-bin --xargs outputDataDir=../Server/GameFrameX.Config/Json --xargs tableImporter.name=gameframex --xargs outputCodeDir=../Server/GameFrameX.Config/Config --conf ./Luban.conf\r\npause"
  },
  {
    "path": "Config/gen-server-bin.sh",
    "content": "dotnet ./Tools/Luban.dll --target server --dataTarget bin --codeTarget cs-dotnet-bin --xargs outputDataDir=../Server/GameFrameX.Config/Json --xargs tableImporter.name=gameframex --xargs outputCodeDir=../Server/GameFrameX.Config/Config --conf ./Luban.conf\npause"
  },
  {
    "path": "Config/gen-server-json.bat",
    "content": "dotnet.exe ./Tools/Luban.dll --target server --dataTarget json --codeTarget cs-dotnet-json --xargs outputDataDir=../Server/GameFrameX.Config/Json --xargs tableImporter.name=gameframex --xargs outputCodeDir=../Server/GameFrameX.Config/Config --conf ./Luban.conf\r\n\r\npause"
  },
  {
    "path": "Config/gen-server-json.sh",
    "content": "dotnet ./Tools/Luban.dll --target server --dataTarget json --codeTarget cs-dotnet-json --xargs outputDataDir=../Server/GameFrameX.Config/Json --xargs tableImporter.name=gameframex --xargs outputCodeDir=../Server/GameFrameX.Config/Config --conf ./Luban.conf\npause"
  },
  {
    "path": "Config/luban.conf",
    "content": "{\n\t\"groups\": [\n\t\t{\n\t\t\t\"names\": [\n\t\t\t\t\"c\"\n\t\t\t],\n\t\t\t\"default\": true\n\t\t},\n\t\t{\n\t\t\t\"names\": [\n\t\t\t\t\"s\"\n\t\t\t],\n\t\t\t\"default\": true\n\t\t}\n\t],\n\t\"schemaFiles\": [\n\t\t{\n\t\t\t\"fileName\": \"Defines\",\n\t\t\t\"type\": \"\"\n\t\t},\n\t\t{\n\t\t\t\"fileName\": \"Excels/__tables__.xlsx\",\n\t\t\t\"type\": \"table\"\n\t\t},\n\t\t{\n\t\t\t\"fileName\": \"Excels/__beans__.xlsx\",\n\t\t\t\"type\": \"bean\"\n\t\t},\n\t\t{\n\t\t\t\"fileName\": \"Excels/__enums__.xlsx\",\n\t\t\t\"type\": \"enum\"\n\t\t}\n\t],\n\t\"dataDir\": \"Excels\",\n\t\"targets\": [\n\t\t{\n\t\t\t\"name\": \"server\",\n\t\t\t\"manager\": \"TablesComponent\",\n\t\t\t\"groups\": [\n\t\t\t\t\"s\"\n\t\t\t],\n\t\t\t\"topModule\": \"GameFrameX.Config\"\n\t\t},\n\t\t{\n\t\t\t\"name\": \"client\",\n\t\t\t\"manager\": \"TablesComponent\",\n\t\t\t\"groups\": [\n\t\t\t\t\"c\"\n\t\t\t],\n\t\t\t\"topModule\": \"Hotfix.Config\"\n\t\t},\n\t\t{\n\t\t\t\"name\": \"all\",\n\t\t\t\"manager\": \"Tables\",\n\t\t\t\"groups\": [\n\t\t\t\t\"c\",\n\t\t\t\t\"s\"\n\t\t\t],\n\t\t\t\"topModule\": \"cfg\"\n\t\t}\n\t],\n\t\"description\": \"描述备注： toolPath: LuBan 工具目录, UNITY_ASSETS_PATH: Unity Assets 全路径, SERVER_PATH: 服务器全目录, commands: 需要执行的命令列表\",\n\t\"toolPath\": \"/../Config/Tools/Luban.dll\",\n\t\"UNITY_ASSETS_PATH\": \"\",\n\t\"SERVER_PATH\": \"\",\n\t\"commands\": [\n\t\t{\n\t\t\t\"command\": \"--target server --dataTarget json --codeTarget cs-dotnet-json --xargs outputDataDir=%SERVER_PATH%/Server.Config/Json  --xargs outputCodeDir=%SERVER_PATH%/Server.Config/Config\",\n\t\t\t\"target\": \"server\",\n\t\t\t\"active\": true\n\t\t},\n\t\t{\n\t\t\t\"localizationFileName\": \"Localization.xlsx\",\n\t\t\t\"command\": \"--target client --dataTarget json --codeTarget cs-simple-json --xargs outputDataDir=%UNITY_ASSETS_PATH%/Bundles/Config  --xargs outputCodeDir=%UNITY_ASSETS_PATH%/Hotfix/Config/Generate \",\n\t\t\t\"target\": \"client\",\n\t\t\t\"active\": true\n\t\t},\n\t\t{\n\t\t\t\"command\": \"--target server --dataTarget bin --codeTarget cs-bin --validationFailAsError true --xargs outputDataDir=%SERVER_PATH%/Server.Config/Json  --xargs outputCodeDir=%SERVER_PATH%/Server.Config/Config\",\n\t\t\t\"target\": \"server\",\n\t\t\t\"active\": false\n\t\t},\n\t\t{\n\t\t\t\"localizationFileName\": \"Localization.xlsx\",\n\t\t\t\"command\": \"--target client --dataTarget bin --codeTarget cs-bin --validationFailAsError true --xargs outputDataDir=%UNITY_ASSETS_PATH%/Bundles/Config  --xargs outputCodeDir=%UNITY_ASSETS_PATH%/Hotfix/Config/Generate\",\n\t\t\t\"target\": \"client\",\n\t\t\t\"active\": false\n\t\t},\n\t\t{\n\t\t\t\"command\": \"luban\",\n\t\t\t\"target\": \"all\",\n\t\t\t\"active\": false\n\t\t}\n\t]\n}"
  },
  {
    "path": "Docs/1.Actor模型.md",
    "content": "## Actor模型 ##\nactor模型是什么可以自行查阅一下相关资料；actor模型在一定程度可以说是解决并发的最佳方案。\n\nGeekServer的actor可以简单理解为一个线程(其实用的是线程池)，一个actor的逻辑只需保证在自己的队列里面执行即保证可线程安全，无需关心锁的问题。GeekServer的基础就是actor，一切皆可为actor。GeekServer的actor模型构建于强大的TPL DataFlow之上，底层使用内置线程池。GeekServer同时使用异步变成（async/await），让逻辑代码更加清晰明了，符合人类的思维方式。\n\n## Actor死锁 ##\nActor模型本身是存在死锁的情况，且不容易被发现。GeekServer内部可检测环路死锁(即:A->B->C->A)，并采用调用链重入机制消除环路死锁（类似与线程的可重入性）。  \n还有另外一种情况（多路死锁），比如有2个actor，A和B，一段逻辑A调用B，同时有另外一段逻辑发起了B调用A，就会出现A等B，B再等A，此时发生死锁。同理 [A->B->C，C->D->A] [A->B->C，B->C->A],这样的调用路径都可能会存在死锁。  \n这种死锁无法解决，而且不确定，因为它和调用时间节点有关系，只能从设计上去规避。  \n```csharp\nclass ActorA\n{\n\tTask A1()\n\t{\n        await Task.Delay(10); \n\t\tvar b = GetActorB();\n\t\treturn b.SendAsync(b.B1);\n\t}\n\t\n\tTask A2()\n\t{\n\t\tvar b = GetActorB();\n\t\treturn b.SendAsync(b.B1);\n\t}\n}\n\nclass ActorB\n{\n\tTask B1()\n\t{\n\t\tawait Task.Delay(5);\n\t\tvar a = GetActorA();\n\t\treturn a.SendAsync(a.A2);\n\t}\n}\n\nTask Call()\n{\n\tvar a = GetActorA();\n\treturn a.SendAsync(a.A1);//这里就会触发死锁\n}\n```\n\n如果得到打印日志【执行超时】很有可能就是触发了死锁。由于Actor设定了超时时间，在断点调试的时候需要手动将超时时间改长，默认10秒，在BaseActor.TIME_OUT修改。**（或者用一个Debug模式的宏来控制）**\n\n## 多路死锁解决方案 ##\n由以上的分析可以看出，多路死锁其实是由于**Await**引起的，如果所有调用都不Await则永远不会有死锁。  \n这里为大家罗列了几种解决方案：(在GeekServer中可以通过ActorLimit来定制自己的检测规则)  \n\n1. **跨Actor调用，不能Await**  \n  优点：规则简单，统一，绝对不会发生死锁  \n  缺点：失去了异步语法的优势，所有需要跨Actor获取返回值的，只能使用回调，代码结构散乱，书写代码不方便。 \n\n2. **为Actor分配等级，只允许低等级await调用高等级（如：Role->Server 而Server不能等待调用Role, 推荐使用此方案）**  \n  案例：公民可以去政府部门排队等待办理业务员，但是政府部门不可能去等待某个人去处理完自己的私事，再帮下一个人办理业务，顶多发短信或者打电话通知某个人做什么事情。  \n  在方案1的基础上，给了使用者更多的异步调用空间。  \n\n3. **提供一个注册接口，注册哪些Actor可以Await调用哪些Actor，并在注册时候进行检测看是否可能存在死锁**    \n  这是方案2的一个更加灵活的变种。    \t\n\n4. **允许交错执行** [了解更多](https://blog.csdn.net/uddiqpl/article/details/86294520)    \n  如果你的某个组件不会操作数据或者对操作顺序不敏感，交错执行是很有用的。GeekServer中的FuncComponent比较符合这个特点，但不绝对，仍需要开发人员自行判断。 （Orleans中有此方案）  \n\n5. **允许存在多路死锁的风险，由开发人员保证不会触发死锁**  \n  优点：规则简单，统一，书写代码很方便，全程异步。  \n  缺点：有可能发生死锁，对编码人员能力要求较高\n\n6. **超时规则**  \n  如果发生多路死锁，选择一条调用路径并终止，保证其中一条调用路径正确。（Orleans中有此方案）  \n  优缺点和方案5一样。  \n\n7. **使用线程安全容器以及lock等**   \n  但这与无锁化设计的理念冲突\n"
  },
  {
    "path": "Docs/2.Actor&Component&State.md",
    "content": "# Entity和Component和State\nGeekServer的Entity包含1个/多个Component，Component包含0个/1个State，你可以这样理解：Entity=实体，Component=功能系统，State=功能系统的数据。每个Entity都包含一个Actor成员变量，Entity的所有行为调度都有Actor完成，以保证线程安全。\n\nEntity是GeekServer的基础，一切功能都可以作为单独的Entity（比如一个角色，一个公会，一个玩法系统。。。），Component隶属于Entity，State隶属于Component，Component承载各种逻辑，State承载各种数据。Entity拆分方式根据项目的具体需求可以任意规划。\n\n### Entity(Actor)拆分\n1. 尽可能独立（一个系统或者玩家的操作尽量不阻塞其他玩家的操作）\n2. 在独立的前提下尽可能少（节约管理成本）\n3. 一个角色，包含若干个功能系统（背包，宠物，任务。。。）\n4. 一个公会，包含多个公会基础系统（基础信息，捐赠，工会副本。。。）\n\n比如有2个全局玩法，世界boss和工会战，如果这2个系统归于一个Actor，那么当一个玩家挑战世界boss时，挑战逻辑到Actor线程中执行，此时另一个玩家要去报名工会战，报名逻辑也需要到Actor线程中执行，此时报名公会战的逻辑则需要等待前一个玩家挑战世界boss逻辑完成后才能执行，客户端表现可能就是更长时间的网络连接中，在cpu够用的情况下就产生了多余的等待时间，这就有些不合理了；这种功能之间没有任何交集的情况下我们建议将世界boss和工会战分别拆分为Actor，各自的逻辑便可以更加顺畅的执行，客户端等待的时间也越短。\n\n### State(对象数据库)\nGeekServer支持内嵌模式和MongoDB直连模式，其中内嵌数据库目前为Facebook的RocksDB，读写性能都相当强悍。 可以通过app_config.json中  \"DBModel\"(0:内嵌 1:mongodb)来指定，默认是使用的内嵌模式。     \n1.单服结构，**强烈推荐使用内嵌模式**，内嵌数据库没有任何读写压力，数据就在本地磁盘，不受网络因素影响。同时由Geek.Server.RemoteBackup进程来异步远程备份，保证数据的安全。   \n2.Geek.Server.RemoteBackup 启动后会定期扫描，数据库根目录下的数据库文件，异步同步到远程mongodb。由于此进程和游戏逻辑没有仍和关联，所以此进程是可以随时重启的，即便进程崩溃也不会丢失数据，极大的提高了容错性。   \n3.不管哪种模式，数据库中存放的数据都是经过Messagepack序列化之后的二进制数据，需要使用Tools/GeekDB.GUI来浏览数据\n\nGeekDB.GUI\n![](https://github.com/leeveel/GeekServer/blob/main/Docs/imgs/geekdb.png)\n\n\n\n"
  },
  {
    "path": "Docs/Actor入队.md",
    "content": "## Actor入队透明 ##\nGeekServer编译期间会自动注入入队代码(**AgentWeaver**), 开发人员无需入队逻辑, 只需要像调用普通函数一样书写逻辑。  \n```c#\n//编译期间会注入一个继承自xxxCompAgent的wrapper类,来实现自动入队\n//同时SendAsync内部自动处理了线程上下文,开发者只需要像调用普通函数一样书写逻辑\npublic class ServerCompAgentWrapper : ServerCompAgent\n{\n\tpublic override Task CheckCrossDay()\n\t{\n\t\treturn base.Actor.SendAsync((Func<Task>)base.CheckCrossDay, isAwait: false, 10000);\n\t}\n\n\tpublic override Task<int> GetDaysFromOpenServer()\n\t{\n\t\treturn base.Actor.SendAsync((Func<Task<int>>)base.GetDaysFromOpenServer, isAwait: true, 10000);\n\t}\n}\n\nvar serverComp = await EntityMgr.GetCompAgent<ServerCompAgent>(ActorType.Server);\n//使用方式(就像调用普通函数一样,无需关心多线程或入队)\n_ = serverComp.CheckCrossDay();\n\n```\n## 线程上下文 ##\nGeekServer内部会自动处理线程上下文，由RuntimeContext实现，主要用于环路调用检测，以及判断是否需要入队，其内部使用**AsyncLocal**实现\n```c#\ninternal class RuntimeContext\n{\n    internal static long Current => callCtx.Value;\n    internal static AsyncLocal<long> callCtx = new AsyncLocal<long>();\n\n    [MethodImpl(MethodImplOptions.AggressiveInlining)]\n    internal static void SetContext(long callChainId)\n    {\n        callCtx.Value = callChainId;\n    }\n\n    [MethodImpl(MethodImplOptions.AggressiveInlining)]\n    internal static void ResetContext()\n    {\n        callCtx.Value = 0;\n    }\n}\n```"
  },
  {
    "path": "Docs/事件Event-timer.md",
    "content": "# 事件\nGeekServer根据热更新设计方案，事件采用接口方式进行监听和回调。监听或者回调事件方法，自定义类型继承EventListener，实现InitListener初始化监听，实现HandleEvent进行回调处理。需要注意的是，EventListener的泛型参数需要是添加事件的Entity对应的Agent，否则会出现类型转换失败。\n```csharp\nclass RoleEH : EventListener<RoleCompAgent>\n{\n    protected override async Task HandleEvent(RoleCompAgent agent, Event evt)\n    {\n        switch (evt.EventId)\n        {\n            case (int)EventID.OnDisconnected:\n                await agent.OnDisconnected();\n                break;\n            case (int)EventID.OnMsgReceived:\n                await agent.OnMsgReceived();\n                break;\n        }\n    }\n\n    public override Task InitListener(long entityId)\n    {\n        GED.AddListener<RoleEH>(entityId, EventID.OnDisconnected);\n        GED.AddListener<RoleEH>(entityId, EventID.OnMsgReceived);\n        return Task.CompletedTask;\n    }\n}\n```\n\n# Timer或Schedule\n```csharp\npublic override async Task Active()\n{\n    await base.Active();\n    this.Schedule<CorssDayTimerHandler>(ServerComp.CrossDayHour, 0);\n}\n\nclass CorssDayTimerHandler : TimerHandler<ServerCompAgent>\n{\n    protected override async Task HandleTimer(ServerCompAgent agent, Param param)\n    {\n        //排除时间精度问题,Quartz可能产生1,2毫秒误差\n        await Task.Delay(100);\n        _ = agent.CheckCrossDay();\n    }\n}\n```"
  },
  {
    "path": "Docs/关于协议.md",
    "content": "# GeekProto\n### 特点\n基于MessagePack，序列化和反序列化效率极高，同时序列化之后的数据极小，数据传输效率很高。[MessagePack-CSharp](https://github.com/neuecc/MessagePack-CSharp) 【Super Fast Binary Serialization Library】  \n\n### 定义方式\n```csharp\n/// <summary>\n/// 请求登录\n/// </summary>\n[MessagePackObject(true)]\npublic class ReqLogin : Message\n{\n    public string UserName { get; set; }\n    public string Platform { get; set; }\n    public int SdkType { get; set; }\n    public string SdkToken { get; set; }\n    public string Device { get; set; }\n}\n\n```\n\n1.Geek.MsgPackTool为每个可序列化类自动分配唯一ID(FullName的hashcode)，如果存在hash冲突(概率很小)，工具会提示你进行修改类名。  \n2.MessagePackObject注解，所有需要序列化的类都要标记,为了更好的兼容性和便捷性messagepack使用map模式，即MessagePackObject(true)  \n3.仅作为消息头的类需要继承自Message，其他不用  \n4.**请勿将协议中的类，存入State中（为支持协议的热更新）**\n\n### 限制  \n兼容限制：不能修改字段类型（如从bool改为long）  \n[了解更多 MessagePack-CSharp](https://github.com/neuecc/MessagePack-CSharp)  \n\n### 多态支持\n\nMessagePack对多态支持不友好，Geek.MessagePackTool工具会在代码生成时，生成多态绑定关系来解决此问题！\n\n```csharp\npublic partial class PolymorphicRegister\n{\n    static PolymorphicRegister()\n    {\n        System.Console.WriteLine(\"***PolymorphicRegister Init***\");\n\t\tInit();\n        Register();\n    }\n\n\tpublic static void Register()\n    {\n\t\tsettings.RegisterType<Geek.Server.Message, Geek.Server.Proto.ReqBagInfo>(112001);\n\t\tsettings.RegisterType<Geek.Server.Message, Geek.Server.Proto.ResBagInfo>(112002);\n\t\tsettings.RegisterType<Geek.Server.Message, Geek.Server.Proto.ReqUseItem>(112003);\n\t\tsettings.RegisterType<Geek.Server.Message, Geek.Server.Proto.ReqSellItem>(112004);\n\t\tsettings.RegisterType<Geek.Server.Message, Geek.Server.Proto.ResItemChange>(112005);\n\t\tsettings.RegisterType<Geek.Server.Proto.A, Geek.Server.Proto.B>(111112);\n\t\tsettings.RegisterType<Geek.Server.Message, Geek.Server.Proto.ReqLogin>(111001);\n\t\tsettings.RegisterType<Geek.Server.Message, Geek.Server.Proto.ResLogin>(111002);\n\t\tsettings.RegisterType<Geek.Server.Message, Geek.Server.Proto.ResLevelUp>(111003);\n\t\tsettings.RegisterType<Geek.Server.Message, Geek.Server.Proto.HearBeat>(111004);\n\t\tsettings.RegisterType<Geek.Server.Message, Geek.Server.Proto.ResErrorCode>(111005);\n    }\n}\n```\n\n### 最佳实践\n1.可以将Geek.MessagePackTool.exe添加到vs studio的外部工具  \n![](https://github.com/leeveel/GeekServer/blob/main/Docs/imgs/vs001.png)\n![](https://github.com/leeveel/GeekServer/blob/main/Docs/imgs/vs002.png)  \n2.Geek.MessagePackTool工作时仅需要依赖GeekServer.Proto工程，所以其他工程编译不过时，不影响导出协议"
  },
  {
    "path": "Docs/十分钟.md",
    "content": "# 十分钟上手GeekServer\n\n# 运行\n1. 安装[.NetCore6.0](https://dotnet.microsoft.com/download/dotnet/6.0)\n2. 安装[mongodb4.x](https://www.mongodb.com/try/download/community)\n3. 打开git clone本项目https://github.com/leeveel/GeekServer.git\n4. 运行Tools/ExcelGen/ExcelToCode.exe 点击[服务器-ALL]导出配置表\n5. 用VisualStudio2022打开GeekServer.sln 启动GeekServer.App\n6. 启动GeekServer.TestPressure (一个1000人登录的demo)\n7. 打开UnityDemo工程，打开SampleScene，运行查看日志(**检查Main Camera上是否有脚本丢失，如果有请挂载GameMain.cs**)\n\n\n## 如何添加新功能\n\n### 1.规划线程模型  \n以demo为例，demo中有两个Actor(可以理解为逻辑上的线程)，一个是Server，另外一个是Role，Server线程是全局的一个服务器只会存在一个，而Role则是一个玩家一个线程。在demo中Server线程负责了登录以及世界等级相关逻辑(实际开发中规划一个LoginActor比较合理)，于是为Server注册了LoginComp和ServerComp两个组件。对于Role来说，一个玩家会存在很多功能系统，如角色模块，背包模块，宠物模块，所有为Role注册RoleComp，BagComp，PetComp。  \n**也就是说一个功能系统的逻辑是运行在哪个线程上，取决于你把这个功能系统的组件注册在哪个Actor上。**\n### 2.如何为Actor注册组件  \n通过Comp注解为Actor注册组件   \n[Comp(ActorType.Role)]   \npublic class BagComp : StateComp<BagState>\n### 3.如何绑定组件状态(数据)  \n一个功能系统由两部分组成，1是逻辑代码(xxxCompAgent)，2是数据(xxxState)，为了实现逻辑代码的热更新，GeekServer使用了代理的方式将逻辑与数据分离。以下代码展示组件和数据的绑定方式：  \n[Comp(ActorType.Role)]   \npublic class BagComp : StateComp<BagState>  \npublic class BagCompAgent : StateCompAgent<BagComp, BagState>\n\n### 4.如何监听事件  \n请参见Geek.Server.Role.PetCompAgent\n### 5.如何添加定时器 \n请参见Server.Logic.Logic.ServerCompAgent\n### 6.为需给外部提供服务的接口添加[Api]注解 \n请参见Server.Logic.Logic.ServerCompAgent.GetWorldLevel()接口，此接口是获取服务器世界等级，由于这个接口会对外部提供服务，即其他Actor都有可能访它，所以需要添加[Api]注解\n\n## 方法注解\n**[Api]**：代表此接口需要被其他Actor调用  \n**[Discard]**：代表在调用此接口的时候，会使用弃元运算符(_ = DoSomething()),**因为弃元运算符会导致执行此异步函数逻辑的线程不可确定，所以GeekServer对标记了[Discard]注解的处理方式是，强制插入队列末端执行。**   \n**[ThreadSafe]**：代表此接口是线程安全的，不是必须的，而且应该尽量少用(1.让逻辑开发人员尽量少关注多线程 2.如果标注的接口逻辑很复杂，再代码多次迭代之后，很容易误判)  \n**[TimeOut(30000)]**：可以自定义接口的超时时间  \n具体代码请参见Server.Logic.Logic.ServerCompAgent\n\n## 关于Message.Unid\n在demo中可以看到客户端的ReqXXX消息，在服务器回包当中，都带上了ReqXXX传过来的Unid。demo中这个设计为了解决自动处理客户端(发送消息->锁屏->收到回包->解锁屏)的逻辑。**如果你有自己的方案或者不需要此设计忽略它**。\n\n### 至此已经足够你基于GeekServer开发自己的游戏功能\n\n\n\n\n\n"
  },
  {
    "path": "Docs/定时器&计划任务Timer.md",
    "content": "# 定时器&计划任务\nGeekServer中没有使用传统意义中的Update，除MMO项目，其他大部分游戏类型的服务器基本没有必要使用Update，需要Update的模块添加一个Timer也可以实现\n根据热更新设计方案，定时器和计划任务采用接口方式进行回调，任务使用扩展方法实现，[源码参考](https://github.com/leeveel/GeekServer/tree/master/GeekServer.Hotfix/Logic/Common/TimerExt.cs)\n定时器支持：1次性delay,周期性timer。\n计划任务：指定时间1次性任务，每天任务，每周任务，每周几任务，每月任务。\nGeekServer中没有对定时器&计划任务做持久化，所以你可能需要在开服后、玩家上线或者Component激活时考虑一下计划任务逻辑是否需要被处理了。\n回调函数继承TimerHandler<>，重写HandleTimer，里面处理定时器回调逻辑即可。\n需要注意的是定时器是接入的Quartz，由于硬件精度问题（windows时间实际精度为10毫秒左右），回调时间可能会提前1-2毫秒，如果对时间依赖特别大的可能需要特殊处理下，比如在Timer回调后延时50毫秒再执行回调逻辑。"
  },
  {
    "path": "Docs/最后补充.md",
    "content": "# 补充\n### server_config.json配置\nserver_config.json中的配置在[Settings](https://github.com/leeveel/GeekServer/tree/master/GeekServer.Core/Utils/Settings.cs) 中解析，每个字段的作用参考[Settings](https://github.com/leeveel/GeekServer/tree/master/GeekServer.Core/Utils/Settings.cs)注释\n\n### 唯一Id生成\nGeekServer提供的[IdGenerator](https://github.com/leeveel/GeekServer/tree/master/GeekServer.Core/Utils/IdGenerator.cs) 可用于全局id生成，比如roleId，公会id等；给定服务器id，保证全局唯一（30年内）。GeekServer为serverId预留了16位，即0-65535有效，我们推荐serverId从10000起。\n\n### 日志\nGeekServer使用NLog采集日志，采集方式包含控制台和文件。由于控制台占用IO，会占用大量资源，只在debug模式下输出。特殊的，LOOGER.DEBUG()只会在debug模式下打印在控制台，不会采集到日志文件。\n\n### 温馨提示\n1. 服务器区别于客户端，服务器在非重大问题的情况下，是不能直接退出的，更不能出现闪退。GeekServer做了异常处理，在监听到没处理的异常时会自动走关服流程(actor回收，回存数据。。。)。理论上开发者应该确保所有的逻辑异常都能被try/catch到，然后视情况判断是丢弃异常还是关服。"
  },
  {
    "path": "Docs/热更hotfix.md",
    "content": "# 热更新\nGeekServer支持不停服热更新逻辑。\n#### 热更思路\n游戏中的所有状态放在App工程中，始终存在于内存，不能热更。Actor和Component的逻辑使用代理模式（Agent）放到Hotfix工程。热更时载入新的dll（GeekServer.Hotfix.dll），清除所有老的Agent，所有新逻辑重新从Actor/Component获取新的Agent汇入新dll中执行热更后的逻辑，达到热更目的。正在执行老dll逻辑的代码获取的Agent依然来自热更前的老Dll中，等待老dll中的逻辑执行完后清理掉内存中老的dll。底层使用接口驱动热更dll中的逻辑。\n需要注意的是，热更时新的dll需要放在新的目录下面，然后再载入内存，因为老的dll可能正在运行，是无法直接覆盖的。参考代码[HotfixModule.Load](https://github.com/leeveel/GeekServer/tree/master/GeekServer.Core/Hotfix/HotfixModule.cs)\n#### 可以热更部分\n可以热更的逻辑都应该放在GeekServer.Hotfix工程中\n1. 所有Actor/Component的Agent，Agent中只有逻辑没有状态，状态全部放到Component的State\n2. HttpHandler\n3. TcpHandler\n4. 协议\n5. 配置表/配置表代码\n\n#### 热更新流程\n1. 游戏后台将新的GeekServer.Hotfix.dll及相关文件（对应pdb，json等）拷贝到游戏服特定目录下\n2. 游戏后台向游戏服发送http命令，通知进行热更，并告知dll目录，md5等信息\n3. 游戏服中热更HttpHandler根据后台信息，验证热更dll完整性，合法性，修改dllVersion.txt，发起热更调用"
  },
  {
    "path": "Docs/网络Net(tcp&http).md",
    "content": "# 网络\nGeekServer网络层使用kestrel，GeekServer目前只接入了tcp和http，但是kestrel是支持UDP，websocket，Http123，singalr等几乎所有的常见协议的，如有所需请自行接入（工作量很小）。\n\n### donetty vs kestrel\n![](https://github.com/leeveel/GeekServer/blob/main/Docs/imgs/dotnetty.png)\n![](https://github.com/leeveel/GeekServer/blob/main/Docs/imgs/kestrel.png)  \n\n### http\n创建任意脚本名字Handler，继承BaseHttpHandler，使用HttpMsgMapping标记指令，实现Action函数即可使用。Action中调用或者实现对应指令的逻辑，并返回结果给客户端。此外httpHandler还有2个字段可以重写标示是否验证，CheckSign是否验证，Inner是否使用内部验证方式。GeekServer支持post和get方式访问。\n###### 特殊key不要占用\n1. cmd：指令，自己定义的任意字符串\n2. time：用于安全验证，当前utc时间tick（DateTime.UtcNow.Ticks），同时也做时间校验，客户端时间需要和服务器时间基本一致(超前/延后10秒左右)\n3. sign：用于安全验证，安全验证算法后的结果\n###### 安全验证算法\n验证算法见[BaseHttpHandler](https://github.com/leeveel/GeekServer/tree/master/GeekServer.Core/Net/Http/BaseHttpHandler.cs) GetStringSign函数\nsign = 算法函数(code + time)，其中sign和time在客户端发送到服务器的参数里面，code是[server_config.json](https://github.com/leeveel/GeekServer/tree/master/GeekServer.App/Config/server_config.json) 中配置的HttpCode(非inner验证)/HttpInnerCode(inner验证) \n注意，上线的商业项目记得修改HttpCode和HttpInnerCode，否则可能被他人利用。\n一般的，非Inner验证用于提供给第3放使用(运营/sdk。。。)，Inner验证用于内部游戏后台（发邮件，封号。。。）\n```csharp\n//在浏览器中访问地址即可验证：http://localhost:20000/geek/server/logic?cmd=test\n//带安全验证的url：http://localhost:20000/geek/server/logic?cmd=test&time=637574338045380003&sign=ad762402fc9c5275bbb68464cf30aac888\n[HttpMsgMapping(\"test\")] //指令为test\npublic class TestHttpHandler : BaseHttpHandler\n{\n\t//不使用内部验证算法\n\tpublic override bool Inner => false;\n\t//是否验证参数，debug模式下始终不验证（debug模式在server_config.json中修改）\n\tpublic override bool CheckSign => false;\n\tpublic override Task<string> Action(string ip, string url, Dictionary<string, string> paramMap)\n\t{\n\t\treturn Task.FromResult((string)HttpResult.Success);\n\t}\n}\n```\n\n### tcp\nGeekServer的tcp协议为自定义协议，区别于google的protocolBuffer和flatBuffer，但是序列化和反序列化都要优于2者。\n###### tcp使用步骤\n1. [协议工具目录](https://github.com/leeveel/GeekServer/tree/master/Tools/GeekProto)\n2. 运行Geek.Proto.exe生成协议导\n3. 创建任意脚本名字Handler，继承FixedIdEntityHandler/TcpCompHandler，使用MsgMapping标记消息类型，实现ActionAsync函数即可。BaseTcpHandler中的Msg即为解析好的当前类型协议数据\n```csharp\n[MsgMapping(typeof(ReqBagInfo))]\npublic class ReqBagInfoHandler : TcpCompHandler<BagCompAgent>\n{\n\tpublic override Task ActionAsync()\n\t{\n\t\tvar req = (ReqBagInfo)Msg;\n\t\t//your logic here...\n\t\treturn Task.CompletedTask;\n\t}\n}\n```\n\n###### [GeekProto协议](https://github.com/leeveel/GeekServer/blob/main/Docs/%E5%85%B3%E4%BA%8E%E5%8D%8F%E8%AE%AE.md)\n"
  },
  {
    "path": "FairyGUIProject/Game.fairy",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<projectDescription id=\"46f1f6fadb55e6c11fc779d732aa2fe3\" type=\"Unity\" version=\"5.0\"/>"
  },
  {
    "path": "FairyGUIProject/assets/UIBag/UIBag.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<component size=\"1920,1080\">\n  <displayList>\n    <graph id=\"n1_iy58\" name=\"bg\" xy=\"0,0\" size=\"1920,1080\" alpha=\"0.618\" type=\"rect\" lineSize=\"0\" fillColor=\"#ff000000\">\n      <relation target=\"\" sidePair=\"width-width,height-height\"/>\n    </graph>\n    <text id=\"n39_oo3b\" name=\"n39\" xy=\"654,896\" size=\"612,97\" fontSize=\"30\" color=\"#ffffff\" align=\"center\" vAlign=\"middle\" autoSize=\"none\" bold=\"true\" singleLine=\"true\" text=\"点击空白处关闭\">\n      <relation target=\"\" sidePair=\"center-center,bottom-bottom\"/>\n    </text>\n    <component id=\"n22_dsha\" name=\"content\" src=\"l50q2\" fileName=\"UIBagContent.xml\" xy=\"160,28\">\n      <relation target=\"\" sidePair=\"center-center,middle-middle\"/>\n    </component>\n  </displayList>\n</component>"
  },
  {
    "path": "FairyGUIProject/assets/UIBag/UIBagContent.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<component size=\"1600,1024\">\n  <controller name=\"IsSelectedItem\" pages=\"0,No,1,Yes\" selected=\"1\"/>\n  <displayList>\n    <image id=\"n22_dsha\" name=\"n22\" src=\"dsha2h\" fileName=\"资源/button/图层1_636.png\" pkg=\"ats3vms3\" xy=\"0,0\" size=\"1600,1024\">\n      <relation target=\"\" sidePair=\"center-center,bottom-bottom\"/>\n    </image>\n    <graph id=\"n26_dsha\" name=\"n26\" xy=\"0,39\" size=\"1600,985\" type=\"rect\" fillColor=\"#ffcccccc\" corner=\"20\">\n      <relation target=\"\" sidePair=\"center-center\"/>\n      <relation target=\"n22_dsha\" sidePair=\"middle-middle\"/>\n    </graph>\n    <list id=\"n24_dsha\" name=\"list\" xy=\"42,52\" size=\"1512,628\" layout=\"flow_hz\" overflow=\"scroll\" margin=\"20,0,0,0\" colGap=\"26\" lineItemCount=\"7\" defaultItem=\"ui://a3awyna7l50q5\" autoClearItems=\"true\">\n      <gearSize controller=\"IsSelectedItem\" pages=\"0,1\" values=\"1515,835,1,1|1512,628,1,1\"/>\n      <item/>\n      <item/>\n      <item/>\n      <item/>\n      <item/>\n      <item/>\n      <item/>\n      <item/>\n      <item/>\n    </list>\n    <component id=\"n28_dsha\" name=\"info\" src=\"l50q3\" fileName=\"UIBagItemInfo.xml\" xy=\"148,681\">\n      <gearDisplay controller=\"IsSelectedItem\" pages=\"1\"/>\n    </component>\n    <list id=\"n38_dsha\" name=\"type_list\" xy=\"291,894\" size=\"1018,124\" layout=\"row\" overflow=\"scroll\" scroll=\"horizontal\" defaultItem=\"ui://a3awyna7l50q4\">\n      <relation target=\"n26_dsha\" sidePair=\"bottom-bottom\"/>\n      <relation target=\"\" sidePair=\"center-center\"/>\n      <item title=\"道具\"/>\n      <item title=\"装备\"/>\n      <item title=\"碎片\"/>\n      <item title=\"材料\"/>\n      <item title=\"消耗品\"/>\n    </list>\n  </displayList>\n</component>"
  },
  {
    "path": "FairyGUIProject/assets/UIBag/UIBagItemInfo.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<component size=\"1284,200\">\n  <controller name=\"IsCanUse\" pages=\"0,No,1,Yes\" selected=\"0\"/>\n  <displayList>\n    <graph id=\"n28_dsha\" name=\"n28\" xy=\"0,0\" size=\"1284,200\" type=\"rect\" lineSize=\"0\" fillColor=\"#ffeeeeee\" corner=\"20\">\n      <relation target=\"\" sidePair=\"center-center\"/>\n    </graph>\n    <text id=\"n30_dsha\" name=\"name_text\" xy=\"233,12\" size=\"768,72\" fontSize=\"50\" color=\"#333333\" vAlign=\"middle\" autoSize=\"none\" bold=\"true\" text=\"夏日沙滩碎片\"/>\n    <richtext id=\"n31_dsha\" name=\"desc_text\" xy=\"237,98\" size=\"767,141\" fontSize=\"40\" color=\"#333333\" leading=\"0\" ubb=\"true\" autoSize=\"none\" text=\"消耗该随便可合成城墙:夏日沙滩\"/>\n    <component id=\"n34_72ce\" name=\"good_item\" src=\"72ce2u\" fileName=\"组件/Goods/UIGoodItem.xml\" pkg=\"ats3vms3\" xy=\"28,20\"/>\n    <component id=\"n32_dsha\" name=\"use_button\" src=\"oo3b2p\" fileName=\"组件/button/UIYellowNormalButton.xml\" pkg=\"ats3vms3\" xy=\"1022,2\" size=\"242,100\">\n      <gearDisplay controller=\"IsCanUse\" pages=\"1\"/>\n      <Button title=\"使用\"/>\n    </component>\n    <component id=\"n33_dsha\" name=\"get_source_button\" src=\"oo3b2r\" fileName=\"组件/button/UIBlueNormalButton.xml\" pkg=\"ats3vms3\" xy=\"1017,52\" size=\"242,100\">\n      <gearXY controller=\"IsCanUse\" pages=\"0,1\" values=\"1017,52|1022,100\"/>\n      <Button title=\"获取来源\"/>\n    </component>\n  </displayList>\n</component>"
  },
  {
    "path": "FairyGUIProject/assets/UIBag/package.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<packageDescription id=\"a3awyna7\">\n  <resources>\n    <image id=\"l50q0\" name=\"bg.png\" path=\"/\"/>\n    <component id=\"l50q1\" name=\"UIBag.xml\" path=\"/\" exported=\"true\"/>\n    <component id=\"l50q2\" name=\"UIBagContent.xml\" path=\"/\"/>\n    <component id=\"l50q3\" name=\"UIBagItemInfo.xml\" path=\"/\"/>\n    <component id=\"l50q4\" name=\"UIBagTypeItem.xml\" path=\"/组件/\"/>\n    <component id=\"l50q5\" name=\"UIBagItem.xml\" path=\"/组件/\" exported=\"true\"/>\n    <image id=\"l50q6\" name=\"avatar.png\" path=\"/资源/\"/>\n    <image id=\"l50q7\" name=\"bg.png\" path=\"/资源/\"/>\n  </resources>\n  <publish name=\"\" genCode=\"true\"/>\n</packageDescription>"
  },
  {
    "path": "FairyGUIProject/assets/UIBag/组件/UIBagItem.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<component size=\"174,174\" extention=\"Button\">\n  <controller name=\"button\" pages=\"2,up,3,down\" selected=\"0\"/>\n  <displayList>\n    <image id=\"n37_dsha\" name=\"n37\" src=\"l50q8\" fileName=\"资源/goods/图层1_2.png\" pkg=\"ats3vms3\" xy=\"2,0\" size=\"172,174\">\n      <gearDisplay controller=\"button\" pages=\"3\"/>\n      <relation target=\"\" sidePair=\"width-width,height-height\"/>\n    </image>\n    <component id=\"n36_dsha\" name=\"good_item\" src=\"72ce2u\" fileName=\"组件/Goods/UIGoodItem.xml\" pkg=\"ats3vms3\" xy=\"7,7\"/>\n  </displayList>\n  <Button mode=\"Check\"/>\n</component>"
  },
  {
    "path": "FairyGUIProject/assets/UIBag/组件/UIBagTypeItem.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<component size=\"200,125\" extention=\"Button\">\n  <controller name=\"button\" pages=\"0,up,1,down\" selected=\"1\"/>\n  <displayList>\n    <image id=\"n0_dsha\" name=\"normal\" src=\"dsha2k\" fileName=\"资源/bg/图层1_54.png\" pkg=\"ats3vms3\" xy=\"0,0\" size=\"200,125\">\n      <gearDisplay controller=\"button\" pages=\"0,2\"/>\n      <relation target=\"\" sidePair=\"width-width,height-height\"/>\n    </image>\n    <image id=\"n1_dsha\" name=\"select\" src=\"dsha2j\" fileName=\"资源/bg/图层1_6.png\" pkg=\"ats3vms3\" xy=\"-2,0\" size=\"203,124\">\n      <gearDisplay controller=\"button\" pages=\"1,3\"/>\n      <relation target=\"\" sidePair=\"width-width,height-height\"/>\n    </image>\n    <text id=\"n2_dsha\" name=\"title\" xy=\"0,0\" size=\"200,125\" fontSize=\"40\" align=\"center\" vAlign=\"middle\" ubb=\"true\" autoSize=\"none\" bold=\"true\" singleLine=\"true\" text=\"\">\n      <relation target=\"\" sidePair=\"width-width,height-height\"/>\n    </text>\n    <loader id=\"n3_dsha\" name=\"icon\" xy=\"0,0\" size=\"200,125\" align=\"center\" vAlign=\"middle\">\n      <relation target=\"\" sidePair=\"width-width,height-height\"/>\n    </loader>\n  </displayList>\n  <Button mode=\"Radio\"/>\n</component>"
  },
  {
    "path": "FairyGUIProject/assets/UICommon/package.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<packageDescription id=\"ats3vms3\">\n  <resources>\n    <image id=\"vq444\" name=\"is_normal.png\" path=\"/资源/\" exported=\"true\"/>\n    <image id=\"vq445\" name=\"is_select.png\" path=\"/资源/\" exported=\"true\"/>\n    <image id=\"flr46\" name=\"图层1_698.png\" path=\"/资源/button/\" exported=\"true\" scale=\"9grid\" scale9grid=\"30,28,60,16\"/>\n    <image id=\"flr47\" name=\"图层1_124.png\" path=\"/资源/button/\" exported=\"true\"/>\n    <image id=\"flr48\" name=\"图层1_131.png\" path=\"/资源/button/\" exported=\"true\" scale=\"9grid\" scale9grid=\"36,14,72,28\"/>\n    <image id=\"flr49\" name=\"dialog_bg.png\" path=\"/资源/bg/\" exported=\"true\" scale=\"9grid\" scale9grid=\"208,188,420,91\"/>\n    <image id=\"flr4b\" name=\"content_bg1.png\" path=\"/资源/bg/\" exported=\"true\" scale=\"9grid\" scale9grid=\"102,44,11,17\"/>\n    <image id=\"flr4c\" name=\"图层1_409.png\" path=\"/资源/button/\" exported=\"true\"/>\n    <component id=\"flr4d\" name=\"UICloseButton.xml\" path=\"/组件/button/\" exported=\"true\"/>\n    <image id=\"flr4e\" name=\"treasure1.png\" path=\"/资源/treasure/\" exported=\"true\"/>\n    <image id=\"flr4f\" name=\"treasure1.png\" path=\"/资源/bg/\" exported=\"true\" scale=\"9grid\" scale9grid=\"161,54,14,108\"/>\n    <image id=\"flr4g\" name=\"treaitembg.png\" path=\"/资源/bg/\" exported=\"true\" scale=\"9grid\" scale9grid=\"36,23,72,18\"/>\n    <image id=\"flr4h\" name=\"treabg.png\" path=\"/资源/bg/\" exported=\"true\"/>\n    <image id=\"flr4i\" name=\"diamond.png\" path=\"/资源/treasure/\" exported=\"true\"/>\n    <image id=\"flr4j\" name=\"gift.png\" path=\"/资源/title/\" exported=\"true\"/>\n    <image id=\"flr4l\" name=\"info.png\" path=\"/资源/bg/\" exported=\"true\" scale=\"9grid\" scale9grid=\"41,40,82,80\"/>\n    <font id=\"flr4m\" name=\"RedNumberFont.fnt\" path=\"/字体/\" exported=\"true\"/>\n    <image id=\"flr4n\" name=\"4.png\" path=\"/资源/font/\" exported=\"true\"/>\n    <image id=\"flr4o\" name=\"0.png\" path=\"/资源/font/\" exported=\"true\"/>\n    <image id=\"flr4p\" name=\"9.png\" path=\"/资源/font/\" exported=\"true\"/>\n    <image id=\"flr4q\" name=\"7.png\" path=\"/资源/font/\" exported=\"true\"/>\n    <image id=\"flr4r\" name=\"6.png\" path=\"/资源/font/\" exported=\"true\"/>\n    <image id=\"flr4s\" name=\"5.png\" path=\"/资源/font/\" exported=\"true\"/>\n    <image id=\"flr4t\" name=\"8.png\" path=\"/资源/font/\" exported=\"true\"/>\n    <image id=\"flr4u\" name=\"..png\" path=\"/资源/font/\" exported=\"true\"/>\n    <image id=\"flr4v\" name=\"1.png\" path=\"/资源/font/\" exported=\"true\"/>\n    <image id=\"flr4w\" name=\"2.png\" path=\"/资源/font/\" exported=\"true\"/>\n    <image id=\"flr4x\" name=\"3.png\" path=\"/资源/font/\" exported=\"true\"/>\n    <image id=\"flr4y\" name=\"y4.png\" path=\"/资源/font/\" exported=\"true\"/>\n    <image id=\"flr4z\" name=\"y1.png\" path=\"/资源/font/\" exported=\"true\"/>\n    <image id=\"flr410\" name=\"y9.png\" path=\"/资源/font/\" exported=\"true\"/>\n    <image id=\"flr411\" name=\"y7.png\" path=\"/资源/font/\" exported=\"true\"/>\n    <image id=\"flr412\" name=\"y6.png\" path=\"/资源/font/\" exported=\"true\"/>\n    <image id=\"flr413\" name=\"y0.png\" path=\"/资源/font/\" exported=\"true\"/>\n    <image id=\"flr414\" name=\"y5.png\" path=\"/资源/font/\" exported=\"true\"/>\n    <image id=\"flr415\" name=\"y8.png\" path=\"/资源/font/\" exported=\"true\"/>\n    <image id=\"flr416\" name=\"y2.png\" path=\"/资源/font/\" exported=\"true\"/>\n    <image id=\"flr417\" name=\"y3.png\" path=\"/资源/font/\" exported=\"true\"/>\n    <image id=\"flr418\" name=\"y..png\" path=\"/资源/font/\" exported=\"true\"/>\n    <font id=\"flr419\" name=\"YellowNumberFont.fnt\" path=\"/字体/\" exported=\"true\"/>\n    <image id=\"flr41c\" name=\"wrap_1.png\" path=\"/资源/avatar/\" exported=\"true\"/>\n    <image id=\"flr41d\" name=\"info_bar.png\" path=\"/资源/bg/\" exported=\"true\" scale=\"9grid\" scale9grid=\"50,22,100,44\"/>\n    <image id=\"flr41e\" name=\"info_toggle_normal.png\" path=\"/资源/bg/\" exported=\"true\" scale=\"9grid\" scale9grid=\"50,18,100,35\"/>\n    <image id=\"flr41f\" name=\"info_toggle_select.png\" path=\"/资源/bg/\" exported=\"true\" scale=\"9grid\" scale9grid=\"50,24,100,35\"/>\n    <image id=\"flr41g\" name=\"content_bg.png\" path=\"/资源/bg/\" exported=\"true\" scale=\"9grid\" scale9grid=\"180,24,360,48\"/>\n    <image id=\"flr41h\" name=\"code_normal.png\" path=\"/资源/button/\" exported=\"true\"/>\n    <image id=\"flr41i\" name=\"code_select.png\" path=\"/资源/button/\" exported=\"true\"/>\n    <image id=\"flr41j\" name=\"dialog_bg2.png\" path=\"/资源/bg/\" exported=\"true\" scale=\"9grid\" scale9grid=\"210,130,370,21\"/>\n    <component id=\"flr41k\" name=\"UIYellowCheckButton.xml\" path=\"/组件/button/\" exported=\"true\"/>\n    <image id=\"e6bx1l\" name=\"cup1.png\" path=\"/资源/cup/\" exported=\"true\"/>\n    <image id=\"e6bx1m\" name=\"bar.png\" path=\"/资源/slider/\" exported=\"true\" scale=\"9grid\" scale9grid=\"21,9,42,8\"/>\n    <image id=\"e6bx1n\" name=\"bg.png\" path=\"/资源/slider/\" exported=\"true\" scale=\"9grid\" scale9grid=\"45,17,90,34\"/>\n    <component id=\"e6bx1o\" name=\"UIYellowProgresssBar.xml\" path=\"/组件/\" exported=\"true\"/>\n    <image id=\"e6bx1p\" name=\"list_item_bg.png\" path=\"/资源/list/\" exported=\"true\" scale=\"9grid\" scale9grid=\"63,45,126,90\"/>\n    <image id=\"e6bx1q\" name=\"button1.png\" path=\"/资源/button/\" exported=\"true\" scale=\"9grid\" scale9grid=\"27,29,54,58\"/>\n    <image id=\"e6bx1r\" name=\"goods_bg1.png\" path=\"/资源/goods/\" exported=\"true\"/>\n    <image id=\"e6bx1s\" name=\"category_bg.png\" path=\"/资源/category/\" exported=\"true\" scale=\"9grid\" scale9grid=\"15,14,30,28\"/>\n    <component id=\"srah1v\" name=\"UIDialogWithoutButton.xml\" path=\"/组件/Dialog/\" exported=\"true\"/>\n    <image id=\"w4oz1y\" name=\"pointer.png\" path=\"/资源/icon/\" exported=\"true\"/>\n    <image id=\"w4oz1z\" name=\"button_2.png\" path=\"/资源/button/\" exported=\"true\"/>\n    <image id=\"rnzi20\" name=\"back.png\" path=\"/资源/icon/\" exported=\"true\"/>\n    <component id=\"rnzid\" name=\"UIBackButton.xml\" path=\"/组件/button/\" exported=\"true\"/>\n    <image id=\"hpg422\" name=\"fight.png\" path=\"/资源/icon/\" exported=\"true\"/>\n    <image id=\"hpg425\" name=\"start.png\" path=\"/资源/icon/\" exported=\"true\"/>\n    <image id=\"hpg426\" name=\"water.png\" path=\"/资源/hero/\" exported=\"true\"/>\n    <component id=\"hpg42c\" name=\"switch_btn.xml\" path=\"/组件/button/\" exported=\"true\"/>\n    <image id=\"hpg42f\" name=\"switch_no.png\" path=\"/资源/button/\" exported=\"true\"/>\n    <image id=\"hpg42g\" name=\"switch_yes.png\" path=\"/资源/button/\" exported=\"true\"/>\n    <image id=\"dsha2h\" name=\"图层1_636.png\" path=\"/资源/button/\" exported=\"true\" scale=\"9grid\" scale9grid=\"31,19,62,38\"/>\n    <image id=\"dsha2i\" name=\"图层1_697.png\" path=\"/资源/button/\" scale=\"9grid\" scale9grid=\"33,25,46,22\"/>\n    <image id=\"dsha2j\" name=\"图层1_6.png\" path=\"/资源/bg/\" exported=\"true\" scale=\"9grid\" scale9grid=\"27,16,54,32\"/>\n    <image id=\"dsha2k\" name=\"图层1_54.png\" path=\"/资源/bg/\" exported=\"true\" scale=\"9grid\" scale9grid=\"26,16,52,32\"/>\n    <component id=\"iopl2l\" name=\"UIDialogMessageBox.xml\" path=\"/组件/Dialog/\" exported=\"true\"/>\n    <component id=\"iopl2m\" name=\"UIWhiteCheckButton.xml\" path=\"/组件/button/\" exported=\"true\"/>\n    <component id=\"iopl2n\" name=\"UIBlueCheckButton.xml\" path=\"/组件/button/\" exported=\"true\"/>\n    <component id=\"oo3b2o\" name=\"UIYellowSingleButton.xml\" path=\"/组件/button/\" exported=\"true\"/>\n    <component id=\"oo3b2p\" name=\"UIYellowNormalButton.xml\" path=\"/组件/button/\" exported=\"true\"/>\n    <component id=\"oo3b2q\" name=\"UIBlueSingleButton.xml\" path=\"/组件/button/\" exported=\"true\"/>\n    <component id=\"oo3b2r\" name=\"UIBlueNormalButton.xml\" path=\"/组件/button/\" exported=\"true\"/>\n    <component id=\"oo3b2s\" name=\"UIWhiteSingleButton.xml\" path=\"/组件/button/\" exported=\"true\"/>\n    <component id=\"oo3b2t\" name=\"UIWhiteNormalButton.xml\" path=\"/组件/button/\" exported=\"true\"/>\n    <image id=\"l50q8\" name=\"图层1_2.png\" path=\"/资源/goods/\" exported=\"true\"/>\n    <component id=\"72ce2u\" name=\"UIGoodItem.xml\" path=\"/组件/Goods/\" exported=\"true\"/>\n  </resources>\n  <publish name=\"\" genCode=\"true\"/>\n</packageDescription>"
  },
  {
    "path": "FairyGUIProject/assets/UICommon/字体/RedNumberFont.fnt",
    "content": "char id=46 img=flr4u xoffset=0 yoffset=0 xadvance=0\nchar id=48 img=flr4o xoffset=0 yoffset=0 xadvance=0\nchar id=49 img=flr4v xoffset=0 yoffset=0 xadvance=0\nchar id=50 img=flr4w xoffset=0 yoffset=0 xadvance=0\nchar id=51 img=flr4x xoffset=0 yoffset=0 xadvance=0\nchar id=52 img=flr4n xoffset=0 yoffset=0 xadvance=0\nchar id=53 img=flr4s xoffset=0 yoffset=0 xadvance=0\nchar id=54 img=flr4r xoffset=0 yoffset=0 xadvance=0\nchar id=55 img=flr4q xoffset=0 yoffset=0 xadvance=0\nchar id=56 img=flr4t xoffset=0 yoffset=0 xadvance=0\nchar id=57 img=flr4p xoffset=0 yoffset=0 xadvance=0\n"
  },
  {
    "path": "FairyGUIProject/assets/UICommon/字体/YellowNumberFont.fnt",
    "content": "info size=24 resizable=true colored=false\nchar id=46 img=flr418 xoffset=0 yoffset=0 xadvance=0\nchar id=48 img=flr413 xoffset=0 yoffset=0 xadvance=0\nchar id=49 img=flr4z xoffset=0 yoffset=0 xadvance=0\nchar id=50 img=flr416 xoffset=0 yoffset=0 xadvance=0\nchar id=51 img=flr417 xoffset=0 yoffset=0 xadvance=0\nchar id=52 img=flr4y xoffset=0 yoffset=0 xadvance=0\nchar id=53 img=flr414 xoffset=0 yoffset=0 xadvance=0\nchar id=54 img=flr412 xoffset=0 yoffset=0 xadvance=0\nchar id=55 img=flr411 xoffset=0 yoffset=0 xadvance=0\nchar id=56 img=flr415 xoffset=0 yoffset=0 xadvance=0\nchar id=57 img=flr410 xoffset=0 yoffset=0 xadvance=0\n"
  },
  {
    "path": "FairyGUIProject/assets/UICommon/组件/Dialog/UIDialogMessageBox.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<component size=\"1080,2340\">\n  <displayList>\n    <graph id=\"n8_iopl\" name=\"n8\" xy=\"0,0\" size=\"1080,2340\" type=\"rect\" lineSize=\"0\" fillColor=\"#66000000\">\n      <relation target=\"\" sidePair=\"width-width,height-height\"/>\n    </graph>\n    <image id=\"n3_iopl\" name=\"n3\" src=\"flr49\" fileName=\"资源/bg/dialog_bg.png\" xy=\"119,796\" size=\"842,532\" group=\"n7_iopl\"/>\n    <component id=\"n1_iopl\" name=\"enter_button\" src=\"flr41k\" fileName=\"组件/button/YellowButton.xml\" xy=\"237,1193\" size=\"196,76\" group=\"n5_iopl\">\n      <Button title=\"确认\"/>\n    </component>\n    <component id=\"n2_iopl\" name=\"cancel_button\" src=\"iopl2m\" fileName=\"组件/button/WhiteButton.xml\" xy=\"640,1193\" size=\"196,76\" group=\"n5_iopl\">\n      <Button title=\"取消\"/>\n    </component>\n    <group id=\"n5_iopl\" name=\"n5\" xy=\"237,1193\" size=\"599,76\" group=\"n7_iopl\"/>\n    <richtext id=\"n6_iopl\" name=\"content\" xy=\"208,935\" size=\"657,239\" group=\"n7_iopl\" fontSize=\"30\" color=\"#333333\" autoSize=\"none\" autoClearText=\"true\" text=\"较高冷淡开召开C型解开返矿三肯将发骚略开销解开装三开返矿隆基分开手打就劳烦开动捷富凯囧as开饭开市大吉开动副将扫街分开动静开饭闪刀姬分开冬季开发开解开反动开机费开始单开捷富凯动静劳烦董凯捷富凯三劳烦劳动节开发\"/>\n    <group id=\"n7_iopl\" name=\"n7\" xy=\"119,796\" size=\"842,532\" advanced=\"true\">\n      <relation target=\"\" sidePair=\"center-center,middle-middle\"/>\n    </group>\n  </displayList>\n</component>"
  },
  {
    "path": "FairyGUIProject/assets/UICommon/组件/Dialog/UIDialogWithoutButton.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<component size=\"1080,1920\">\n  <displayList>\n    <loader id=\"n2_srah\" name=\"n2\" xy=\"0,0\" size=\"1080,1920\" url=\"ui://xnc0qo2eflr49\" align=\"center\" vAlign=\"middle\" fill=\"scaleFree\">\n      <relation target=\"\" sidePair=\"width-width,height-height\"/>\n    </loader>\n    <component id=\"n3_srah\" name=\"close_icon\" src=\"flr4d\" fileName=\"Components/close_icon.xml\" xy=\"938,30\" size=\"80,80\">\n      <relation target=\"\" sidePair=\"right-right,top-top\"/>\n    </component>\n  </displayList>\n</component>"
  },
  {
    "path": "FairyGUIProject/assets/UICommon/组件/Goods/UIGoodItem.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<component size=\"160,160\" extention=\"Button\" initName=\"good_item\">\n  <controller name=\"button\" pages=\"2,up,3,down\" selected=\"0\"/>\n  <displayList>\n    <loader id=\"n88_flr4\" name=\"bg\" xy=\"0,0\" size=\"160,160\" url=\"ui://xnc0qo2eflr4h\" align=\"center\" vAlign=\"middle\" fill=\"scaleFree\">\n      <relation target=\"\" sidePair=\"width-width,height-height\"/>\n    </loader>\n    <loader id=\"n89_flr4\" name=\"gift\" xy=\"18,30\" size=\"123,99\" url=\"ui://xnc0qo2eflr4i\" align=\"center\" vAlign=\"middle\" fill=\"scale\">\n      <relation target=\"\" sidePair=\"width-width,height-height,center-center,middle-middle\"/>\n    </loader>\n    <text id=\"n90_flr4\" name=\"number\" xy=\"19,111\" size=\"120,42\" fontSize=\"28\" color=\"#ffffff\" align=\"right\" ubb=\"true\" autoSize=\"none\" bold=\"true\" autoClearText=\"true\" text=\"100\">\n      <relation target=\"\" sidePair=\"center-center,bottom-bottom\"/>\n    </text>\n  </displayList>\n  <Button/>\n</component>"
  },
  {
    "path": "FairyGUIProject/assets/UICommon/组件/UIYellowProgresssBar.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<component size=\"181,70\" extention=\"ProgressBar\">\n  <displayList>\n    <image id=\"n0_e6bx\" name=\"n0\" src=\"e6bx1n\" fileName=\"Image/slider/bg.png\" xy=\"0,0\" size=\"181,70\">\n      <relation target=\"\" sidePair=\"width-width,height-height\"/>\n    </image>\n    <image id=\"n1_e6bx\" name=\"bar\" src=\"e6bx1m\" fileName=\"Image/slider/bar.png\" xy=\"0,0\" size=\"181,68\">\n      <relation target=\"\" sidePair=\"width-width,height-height\"/>\n    </image>\n  </displayList>\n  <ProgressBar/>\n</component>"
  },
  {
    "path": "FairyGUIProject/assets/UICommon/组件/button/UIBackButton.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<component size=\"200,200\" pivot=\"0.5,0.5\" extention=\"Button\">\n  <controller name=\"button\" pages=\"0,up,1,down,2,over,3,selectedOver\" selected=\"0\"/>\n  <displayList>\n    <graph id=\"n2_rnzi\" name=\"n2\" xy=\"0,0\" size=\"200,200\" alpha=\"0.618\" type=\"eclipse\" fillColor=\"#ff000000\">\n      <relation target=\"\" sidePair=\"width-width,height-height\"/>\n    </graph>\n    <image id=\"n0_rnzi\" name=\"n0\" src=\"rnzi20\" fileName=\"Image/icon/back.png\" xy=\"12,28\" size=\"174,142\">\n      <relation target=\"\" sidePair=\"width-width,height-height,center-center,middle-middle\"/>\n    </image>\n  </displayList>\n  <Button downEffect=\"scale\" downEffectValue=\".9\"/>\n</component>"
  },
  {
    "path": "FairyGUIProject/assets/UICommon/组件/button/UIBlueCheckButton.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<component size=\"120,76\" pivot=\"0.5,0.5\" extention=\"Button\">\n  <controller name=\"button\" pages=\"0,up,1,down,2,over,3,selectedOver\" selected=\"0\"/>\n  <displayList>\n    <image id=\"n0_flr4\" name=\"n0\" src=\"dsha2i\" fileName=\"资源/button/图层1_697.png\" xy=\"-6,2\">\n      <relation target=\"\" sidePair=\"width-width,height-height\"/>\n    </image>\n    <text id=\"n1_flr4\" name=\"title\" xy=\"0,0\" size=\"120,76\" fontSize=\"30\" align=\"center\" vAlign=\"middle\" autoSize=\"none\" singleLine=\"true\" text=\"\">\n      <relation target=\"\" sidePair=\"width-width,height-height\"/>\n    </text>\n    <loader id=\"n2_flr4\" name=\"icon\" xy=\"0,0\" size=\"120,76\" align=\"center\" vAlign=\"middle\">\n      <relation target=\"\" sidePair=\"width-width,height-height\"/>\n    </loader>\n  </displayList>\n  <Button mode=\"Check\" downEffect=\"scale\" downEffectValue=\".9\"/>\n</component>"
  },
  {
    "path": "FairyGUIProject/assets/UICommon/组件/button/UIBlueNormalButton.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<component size=\"120,76\" pivot=\"0.5,0.5\" extention=\"Button\">\n  <controller name=\"button\" pages=\"0,up,1,down,2,over,3,selectedOver\" selected=\"0\"/>\n  <displayList>\n    <image id=\"n0_flr4\" name=\"n0\" src=\"dsha2i\" fileName=\"资源/button/图层1_697.png\" xy=\"-6,2\">\n      <relation target=\"\" sidePair=\"width-width,height-height\"/>\n    </image>\n    <text id=\"n1_flr4\" name=\"title\" xy=\"0,0\" size=\"120,76\" fontSize=\"30\" align=\"center\" vAlign=\"middle\" autoSize=\"none\" singleLine=\"true\" text=\"\">\n      <relation target=\"\" sidePair=\"width-width,height-height\"/>\n    </text>\n    <loader id=\"n2_flr4\" name=\"icon\" xy=\"0,0\" size=\"120,76\" align=\"center\" vAlign=\"middle\">\n      <relation target=\"\" sidePair=\"width-width,height-height\"/>\n    </loader>\n  </displayList>\n  <Button downEffect=\"scale\" downEffectValue=\".9\"/>\n</component>"
  },
  {
    "path": "FairyGUIProject/assets/UICommon/组件/button/UIBlueSingleButton.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<component size=\"120,76\" pivot=\"0.5,0.5\" extention=\"Button\">\n  <controller name=\"button\" pages=\"0,up,1,down,2,over,3,selectedOver\" selected=\"0\"/>\n  <displayList>\n    <image id=\"n0_flr4\" name=\"n0\" src=\"dsha2i\" fileName=\"资源/button/图层1_697.png\" xy=\"-6,2\">\n      <relation target=\"\" sidePair=\"width-width,height-height\"/>\n    </image>\n    <text id=\"n1_flr4\" name=\"title\" xy=\"0,0\" size=\"120,76\" fontSize=\"30\" align=\"center\" vAlign=\"middle\" autoSize=\"none\" singleLine=\"true\" text=\"\">\n      <relation target=\"\" sidePair=\"width-width,height-height\"/>\n    </text>\n    <loader id=\"n2_flr4\" name=\"icon\" xy=\"0,0\" size=\"120,76\" align=\"center\" vAlign=\"middle\">\n      <relation target=\"\" sidePair=\"width-width,height-height\"/>\n    </loader>\n  </displayList>\n  <Button mode=\"Radio\" downEffect=\"scale\" downEffectValue=\".9\"/>\n</component>"
  },
  {
    "path": "FairyGUIProject/assets/UICommon/组件/button/UICloseButton.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<component size=\"80,80\" pivot=\"0.5,0.5\" extention=\"Button\" initName=\"close_button\">\n  <controller name=\"button\" pages=\"0,up,1,down,2,over,3,selectedOver\" selected=\"0\"/>\n  <displayList>\n    <image id=\"n0_flr4\" name=\"n0\" src=\"flr4c\" fileName=\"资源/button/图层1_409.png\" xy=\"0,0\" size=\"80,80\">\n      <relation target=\"\" sidePair=\"width-width,height-height\"/>\n    </image>\n  </displayList>\n  <Button mode=\"Check\" downEffect=\"scale\" downEffectValue=\".9\"/>\n</component>"
  },
  {
    "path": "FairyGUIProject/assets/UICommon/组件/button/UIWhiteCheckButton.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<component size=\"120,76\" pivot=\"0.5,0.5\" extention=\"Button\">\n  <controller name=\"button\" pages=\"0,up,1,down,2,over,3,selectedOver\" selected=\"0\"/>\n  <displayList>\n    <image id=\"n0_flr4\" name=\"n0\" src=\"dsha2h\" fileName=\"资源/button/图层1_636.png\" xy=\"0,0\">\n      <relation target=\"\" sidePair=\"width-width,height-height\"/>\n    </image>\n    <text id=\"n1_flr4\" name=\"title\" xy=\"0,0\" size=\"120,76\" fontSize=\"30\" align=\"center\" vAlign=\"middle\" autoSize=\"none\" singleLine=\"true\" text=\"\">\n      <relation target=\"\" sidePair=\"width-width,height-height\"/>\n    </text>\n    <loader id=\"n2_flr4\" name=\"icon\" xy=\"0,0\" size=\"120,76\" align=\"center\" vAlign=\"middle\">\n      <relation target=\"\" sidePair=\"width-width,height-height\"/>\n    </loader>\n  </displayList>\n  <Button mode=\"Check\" downEffect=\"scale\" downEffectValue=\".9\"/>\n</component>"
  },
  {
    "path": "FairyGUIProject/assets/UICommon/组件/button/UIWhiteNormalButton.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<component size=\"120,76\" pivot=\"0.5,0.5\" extention=\"Button\">\n  <controller name=\"button\" pages=\"0,up,1,down,2,over,3,selectedOver\" selected=\"0\"/>\n  <displayList>\n    <image id=\"n0_flr4\" name=\"n0\" src=\"dsha2h\" fileName=\"资源/button/图层1_636.png\" xy=\"0,0\">\n      <relation target=\"\" sidePair=\"width-width,height-height\"/>\n    </image>\n    <text id=\"n1_flr4\" name=\"title\" xy=\"0,0\" size=\"120,76\" fontSize=\"30\" align=\"center\" vAlign=\"middle\" autoSize=\"none\" singleLine=\"true\" text=\"\">\n      <relation target=\"\" sidePair=\"width-width,height-height\"/>\n    </text>\n    <loader id=\"n2_flr4\" name=\"icon\" xy=\"0,0\" size=\"120,76\" align=\"center\" vAlign=\"middle\">\n      <relation target=\"\" sidePair=\"width-width,height-height\"/>\n    </loader>\n  </displayList>\n  <Button downEffect=\"scale\" downEffectValue=\".9\"/>\n</component>"
  },
  {
    "path": "FairyGUIProject/assets/UICommon/组件/button/UIWhiteSingleButton.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<component size=\"120,76\" pivot=\"0.5,0.5\" extention=\"Button\">\n  <controller name=\"button\" pages=\"0,up,1,down,2,over,3,selectedOver\" selected=\"0\"/>\n  <displayList>\n    <image id=\"n0_flr4\" name=\"n0\" src=\"dsha2h\" fileName=\"资源/button/图层1_636.png\" xy=\"0,0\">\n      <relation target=\"\" sidePair=\"width-width,height-height\"/>\n    </image>\n    <text id=\"n1_flr4\" name=\"title\" xy=\"0,0\" size=\"120,76\" fontSize=\"30\" align=\"center\" vAlign=\"middle\" autoSize=\"none\" singleLine=\"true\" text=\"\">\n      <relation target=\"\" sidePair=\"width-width,height-height\"/>\n    </text>\n    <loader id=\"n2_flr4\" name=\"icon\" xy=\"0,0\" size=\"120,76\" align=\"center\" vAlign=\"middle\">\n      <relation target=\"\" sidePair=\"width-width,height-height\"/>\n    </loader>\n  </displayList>\n  <Button mode=\"Radio\" downEffect=\"scale\" downEffectValue=\".9\"/>\n</component>"
  },
  {
    "path": "FairyGUIProject/assets/UICommon/组件/button/UIYellowCheckButton.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<component size=\"120,76\" pivot=\"0.5,0.5\" extention=\"Button\">\n  <controller name=\"button\" pages=\"0,up,1,down,2,over,3,selectedOver\" selected=\"0\"/>\n  <displayList>\n    <image id=\"n0_flr4\" name=\"n0\" src=\"flr46\" fileName=\"Image/button/图层1_698.png\" xy=\"0,0\">\n      <relation target=\"\" sidePair=\"width-width,height-height\"/>\n    </image>\n    <text id=\"n1_flr4\" name=\"title\" xy=\"0,0\" size=\"120,76\" fontSize=\"30\" align=\"center\" vAlign=\"middle\" autoSize=\"none\" singleLine=\"true\" text=\"\">\n      <relation target=\"\" sidePair=\"width-width,height-height\"/>\n    </text>\n    <loader id=\"n2_flr4\" name=\"icon\" xy=\"0,0\" size=\"120,76\" align=\"center\" vAlign=\"middle\">\n      <relation target=\"\" sidePair=\"width-width,height-height\"/>\n    </loader>\n  </displayList>\n  <Button mode=\"Check\" downEffect=\"scale\" downEffectValue=\".9\"/>\n</component>"
  },
  {
    "path": "FairyGUIProject/assets/UICommon/组件/button/UIYellowNormalButton.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<component size=\"120,76\" pivot=\"0.5,0.5\" extention=\"Button\">\n  <controller name=\"button\" pages=\"0,up,1,down,2,over,3,selectedOver\" selected=\"0\"/>\n  <displayList>\n    <image id=\"n0_flr4\" name=\"n0\" src=\"flr46\" fileName=\"资源/button/图层1_698.png\" xy=\"0,0\">\n      <relation target=\"\" sidePair=\"width-width,height-height\"/>\n    </image>\n    <text id=\"n1_flr4\" name=\"title\" xy=\"0,0\" size=\"120,76\" fontSize=\"30\" align=\"center\" vAlign=\"middle\" autoSize=\"none\" singleLine=\"true\" text=\"\">\n      <relation target=\"\" sidePair=\"width-width,height-height\"/>\n    </text>\n    <loader id=\"n2_flr4\" name=\"icon\" xy=\"0,0\" size=\"120,76\" align=\"center\" vAlign=\"middle\">\n      <relation target=\"\" sidePair=\"width-width,height-height\"/>\n    </loader>\n  </displayList>\n  <Button downEffect=\"scale\" downEffectValue=\".9\"/>\n</component>"
  },
  {
    "path": "FairyGUIProject/assets/UICommon/组件/button/UIYellowSingleButton.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<component size=\"120,76\" pivot=\"0.5,0.5\" extention=\"Button\">\n  <controller name=\"button\" pages=\"0,up,1,down,2,over,3,selectedOver\" selected=\"0\"/>\n  <displayList>\n    <image id=\"n0_flr4\" name=\"n0\" src=\"flr46\" fileName=\"资源/button/图层1_698.png\" xy=\"0,0\">\n      <relation target=\"\" sidePair=\"width-width,height-height\"/>\n    </image>\n    <text id=\"n1_flr4\" name=\"title\" xy=\"0,0\" size=\"120,76\" fontSize=\"30\" align=\"center\" vAlign=\"middle\" autoSize=\"none\" singleLine=\"true\" text=\"\">\n      <relation target=\"\" sidePair=\"width-width,height-height\"/>\n    </text>\n    <loader id=\"n2_flr4\" name=\"icon\" xy=\"0,0\" size=\"120,76\" align=\"center\" vAlign=\"middle\">\n      <relation target=\"\" sidePair=\"width-width,height-height\"/>\n    </loader>\n  </displayList>\n  <Button mode=\"Radio\" downEffect=\"scale\" downEffectValue=\".9\"/>\n</component>"
  },
  {
    "path": "FairyGUIProject/assets/UICommon/组件/button/switch_btn.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<component size=\"144,59\" extention=\"Button\">\n  <controller name=\"button\" pages=\"0,up,1,down\" selected=\"1\"/>\n  <displayList>\n    <image id=\"n0_hpg4\" name=\"n0\" src=\"flr48\" fileName=\"Image/button/图层1_131.png\" xy=\"0,0\">\n      <gearDisplay controller=\"button\" pages=\"0,2\"/>\n      <relation target=\"\" sidePair=\"width-width,height-height\"/>\n    </image>\n    <image id=\"n1_hpg4\" name=\"n1\" src=\"flr47\" fileName=\"Image/button/图层1_124.png\" xy=\"0,0\">\n      <gearDisplay controller=\"button\" pages=\"1,3\"/>\n      <relation target=\"\" sidePair=\"width-width,height-height\"/>\n    </image>\n    <loader id=\"n2_hpg4\" name=\"icon\" xy=\"0,0\" size=\"144,59\" align=\"center\" vAlign=\"middle\">\n      <relation target=\"\" sidePair=\"width-width,height-height\"/>\n    </loader>\n    <image id=\"n3_hpg4\" name=\"n3\" src=\"hpg42f\" fileName=\"Image/button/switch_no.png\" xy=\"1,4\" size=\"81,53\">\n      <gearDisplay controller=\"button\" pages=\"0\"/>\n      <relation target=\"\" sidePair=\"height-height,left-left\"/>\n    </image>\n    <image id=\"n4_hpg4\" name=\"n4\" src=\"hpg42g\" fileName=\"Image/button/switch_yes.png\" xy=\"57,5\" size=\"85,54\">\n      <gearDisplay controller=\"button\" pages=\"1\"/>\n      <relation target=\"\" sidePair=\"height-height,right-right\"/>\n    </image>\n  </displayList>\n  <Button mode=\"Check\"/>\n</component>"
  },
  {
    "path": "FairyGUIProject/assets/UICommonAvatar/package.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<packageDescription id=\"uis26xrm\">\n  <resources>\n    <image id=\"i3db0\" name=\"12.png\" path=\"/images/avatar/\" exported=\"true\"/>\n    <image id=\"i3db1\" name=\"39.png\" path=\"/images/avatar/\" exported=\"true\"/>\n    <image id=\"i3db2\" name=\"40.png\" path=\"/images/avatar/\" exported=\"true\"/>\n    <image id=\"i3db3\" name=\"41.png\" path=\"/images/avatar/\" exported=\"true\"/>\n    <image id=\"i3db4\" name=\"42.png\" path=\"/images/avatar/\" exported=\"true\"/>\n    <image id=\"i3db5\" name=\"43.png\" path=\"/images/avatar/\" exported=\"true\"/>\n    <image id=\"i3db6\" name=\"44.png\" path=\"/images/avatar/\" exported=\"true\"/>\n    <image id=\"i3db7\" name=\"45.png\" path=\"/images/avatar/\" exported=\"true\"/>\n    <image id=\"i3db8\" name=\"46.png\" path=\"/images/avatar/\" exported=\"true\"/>\n    <image id=\"i3db9\" name=\"47.png\" path=\"/images/avatar/\" exported=\"true\"/>\n    <image id=\"i3dba\" name=\"48.png\" path=\"/images/avatar/\" exported=\"true\"/>\n    <image id=\"i3dbb\" name=\"49.png\" path=\"/images/avatar/\" exported=\"true\"/>\n    <image id=\"i3dbc\" name=\"50.png\" path=\"/images/avatar/\" exported=\"true\"/>\n    <image id=\"i3dbd\" name=\"1.png\" path=\"/images/avatar/\" exported=\"true\"/>\n    <image id=\"i3dbe\" name=\"2.png\" path=\"/images/avatar/\" exported=\"true\"/>\n    <image id=\"i3dbf\" name=\"3.png\" path=\"/images/avatar/\" exported=\"true\"/>\n    <image id=\"i3dbg\" name=\"4.png\" path=\"/images/avatar/\" exported=\"true\"/>\n    <image id=\"i3dbh\" name=\"5.png\" path=\"/images/avatar/\" exported=\"true\"/>\n    <image id=\"i3dbi\" name=\"6.png\" path=\"/images/avatar/\" exported=\"true\"/>\n    <image id=\"i3dbj\" name=\"7.png\" path=\"/images/avatar/\" exported=\"true\"/>\n    <image id=\"i3dbk\" name=\"8.png\" path=\"/images/avatar/\" exported=\"true\"/>\n    <image id=\"i3dbl\" name=\"9.png\" path=\"/images/avatar/\" exported=\"true\"/>\n    <image id=\"i3dbm\" name=\"38.png\" path=\"/images/avatar/\" exported=\"true\"/>\n    <image id=\"i3dbn\" name=\"37.png\" path=\"/images/avatar/\" exported=\"true\"/>\n    <image id=\"i3dbo\" name=\"36.png\" path=\"/images/avatar/\" exported=\"true\"/>\n    <image id=\"i3dbp\" name=\"35.png\" path=\"/images/avatar/\" exported=\"true\"/>\n    <image id=\"i3dbq\" name=\"13.png\" path=\"/images/avatar/\" exported=\"true\"/>\n    <image id=\"i3dbr\" name=\"14.png\" path=\"/images/avatar/\" exported=\"true\"/>\n    <image id=\"i3dbs\" name=\"15.png\" path=\"/images/avatar/\" exported=\"true\"/>\n    <image id=\"i3dbt\" name=\"16.png\" path=\"/images/avatar/\" exported=\"true\"/>\n    <image id=\"i3dbu\" name=\"17.png\" path=\"/images/avatar/\" exported=\"true\"/>\n    <image id=\"i3dbv\" name=\"18.png\" path=\"/images/avatar/\" exported=\"true\"/>\n    <image id=\"i3dbw\" name=\"19.png\" path=\"/images/avatar/\" exported=\"true\"/>\n    <image id=\"i3dbx\" name=\"20.png\" path=\"/images/avatar/\" exported=\"true\"/>\n    <image id=\"i3dby\" name=\"21.png\" path=\"/images/avatar/\" exported=\"true\"/>\n    <image id=\"i3dbz\" name=\"22.png\" path=\"/images/avatar/\" exported=\"true\"/>\n    <image id=\"i3db10\" name=\"10.png\" path=\"/images/avatar/\" exported=\"true\"/>\n    <image id=\"i3db11\" name=\"23.png\" path=\"/images/avatar/\" exported=\"true\"/>\n    <image id=\"i3db12\" name=\"25.png\" path=\"/images/avatar/\" exported=\"true\"/>\n    <image id=\"i3db13\" name=\"26.png\" path=\"/images/avatar/\" exported=\"true\"/>\n    <image id=\"i3db14\" name=\"27.png\" path=\"/images/avatar/\" exported=\"true\"/>\n    <image id=\"i3db15\" name=\"28.png\" path=\"/images/avatar/\" exported=\"true\"/>\n    <image id=\"i3db16\" name=\"29.png\" path=\"/images/avatar/\" exported=\"true\"/>\n    <image id=\"i3db17\" name=\"30.png\" path=\"/images/avatar/\" exported=\"true\"/>\n    <image id=\"i3db18\" name=\"31.png\" path=\"/images/avatar/\" exported=\"true\"/>\n    <image id=\"i3db19\" name=\"32.png\" path=\"/images/avatar/\" exported=\"true\"/>\n    <image id=\"i3db1a\" name=\"33.png\" path=\"/images/avatar/\" exported=\"true\"/>\n    <image id=\"i3db1b\" name=\"34.png\" path=\"/images/avatar/\" exported=\"true\"/>\n    <image id=\"i3db1c\" name=\"24.png\" path=\"/images/avatar/\" exported=\"true\"/>\n    <image id=\"i3db1d\" name=\"11.png\" path=\"/images/avatar/\" exported=\"true\"/>\n  </resources>\n  <publish name=\"\" genCode=\"true\"/>\n</packageDescription>"
  },
  {
    "path": "FairyGUIProject/assets/UILauncher/Scene/UILauncher.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<component size=\"1920,1080\" bgColor=\"#00ff00\">\n  <controller name=\"IsUpgrade\" exported=\"true\" pages=\"0,No,1,Yes\" selected=\"0\"/>\n  <controller name=\"IsDownload\" pages=\"0,No,1,Yes\" selected=\"0\"/>\n  <displayList>\n    <loader id=\"n14_iwzd\" name=\"bg\" xy=\"0,0\" size=\"1920,1080\" url=\"ui://u7deosq0i3db1j\" align=\"center\" vAlign=\"middle\" fill=\"scale\">\n      <relation target=\"\" sidePair=\"width-width,height-height\"/>\n    </loader>\n    <text id=\"n10_iwzd\" name=\"TipText\" xy=\"287,976\" pivot=\"0.5,0.5\" size=\"1346,49\" font=\"ui://f59y7iy8ghno32\" fontSize=\"36\" color=\"#cccccc\" align=\"center\" autoSize=\"shrink\" strokeColor=\"#2f1708\" strokeSize=\"2\" autoClearText=\"true\" text=\"正在下载游戏资源  30%  (128MB)\">\n      <relation target=\"\" sidePair=\"width-width,center-center,bottom-bottom\"/>\n    </text>\n    <component id=\"n12_iwzd\" name=\"ProgressBar\" src=\"mw8e3\" fileName=\"Widget/UILoadingMainProgressBar.xml\" xy=\"0,1040\" size=\"1920,40\">\n      <gearDisplay controller=\"IsDownload\" pages=\"1\"/>\n      <relation target=\"\" sidePair=\"width-width,center-center,bottom-bottom\"/>\n      <ProgressBar max=\"100\"/>\n    </component>\n    <component id=\"n13_iwzd\" name=\"upgrade\" src=\"qew11e\" fileName=\"Scene/UILauncherUpgrade.xml\" xy=\"0,0\">\n      <gearDisplay controller=\"IsUpgrade\" pages=\"1\"/>\n      <relation target=\"\" sidePair=\"center-center,middle-middle\"/>\n    </component>\n  </displayList>\n</component>"
  },
  {
    "path": "FairyGUIProject/assets/UILauncher/Scene/UILauncherUpgrade.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<component size=\"1920,1080\">\n  <displayList>\n    <graph id=\"n24_nmd0\" name=\"bg\" xy=\"0,0\" pivot=\"0.5,0\" size=\"1920,1080\" alpha=\"0.6\" type=\"rect\" lineSize=\"0\" fillColor=\"#ff000000\"/>\n    <image id=\"n29_i3db\" name=\"n29\" src=\"i3db1k\" fileName=\"Images/Background.png\" xy=\"198,92\" size=\"1524,895\"/>\n    <component id=\"n15_nmd0\" name=\"EnterButton\" src=\"qew11i\" fileName=\"Widget/UILauncherEnterButton.xml\" xy=\"720,830\">\n      <Button title=\"确定\"/>\n    </component>\n    <component id=\"n27_anek\" name=\"TextContent\" src=\"qew11f\" fileName=\"Scene/UILauncherUpgradeContent.xml\" xy=\"294,185\" size=\"1332,640\"/>\n  </displayList>\n</component>"
  },
  {
    "path": "FairyGUIProject/assets/UILauncher/Scene/UILauncherUpgradeContent.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<component size=\"1332,640\" overflow=\"scroll\" scrollBar=\"hidden\" clipSoftness=\"0,100\" extention=\"Label\">\n  <displayList>\n    <richtext id=\"n27_anek\" name=\"title\" xy=\"0,0\" size=\"1332,639\" font=\"ui://f59y7iy8udcb2\" fontSize=\"30\" color=\"#d1c7ba\" letterSpacing=\"1\" ubb=\"true\" vars=\"true\" autoSize=\"none\" autoClearText=\"true\" text=\"更新文本更新文本更新文本更新文本更新文本更新文本更新文本更新文本更新文本更新文本更新文本更新文本更新文本更新文本更新文本更新文本更新文本更新文本更新文本更新文本更新文本更新文本更新文本更新文本更新文本更新文本更新文本更新文本更新文本更新文本更新文本更新文本更新文本更新文本更新文本更新文本更新文本更新文本更新文本更新文本更新文本更新文本更新文本更新文本更新文本更新文本更新文本更新文本\"/>\n  </displayList>\n</component>"
  },
  {
    "path": "FairyGUIProject/assets/UILauncher/Widget/UILauncherEnterButton.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<component size=\"480,128\" extention=\"Button\">\n  <displayList>\n    <image id=\"n58_vl2e\" name=\"icon\" src=\"qew11h\" fileName=\"Images/UI_icon_btn_green.png\" xy=\"0,0\">\n      <relation target=\"\" sidePair=\"width-width,height-height\"/>\n    </image>\n    <text id=\"n59_vl2e\" name=\"title\" xy=\"188,31\" pivot=\"0.5,0.5\" size=\"104,66\" font=\"ui://f59y7iy8ghno32\" fontSize=\"50\" color=\"#ffffff\" align=\"center\" vAlign=\"middle\" shadowColor=\"#000000\" shadowOffset=\"0,2\" singleLine=\"true\" text=\"确定\">\n      <relation target=\"\" sidePair=\"center-center,middle-middle\"/>\n    </text>\n  </displayList>\n  <Button downEffect=\"dark\" downEffectValue=\".8\"/>\n</component>"
  },
  {
    "path": "FairyGUIProject/assets/UILauncher/Widget/UILoadingMainProgressBar.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<component size=\"1080,40\" extention=\"ProgressBar\">\n  <displayList>\n    <graph id=\"n0_l1g1\" name=\"n0\" xy=\"0,0\" size=\"1080,40\" type=\"rect\" lineSize=\"0\" lineColor=\"#ffa0a0a0\" fillColor=\"#ff1a1915\"/>\n    <graph id=\"n1_l1g1\" name=\"bar\" xy=\"0,0\" size=\"1080,40\" type=\"rect\" lineSize=\"0\" fillColor=\"#fffec786\"/>\n  </displayList>\n  <ProgressBar/>\n</component>"
  },
  {
    "path": "FairyGUIProject/assets/UILauncher/package.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<packageDescription id=\"u7deosq0\">\n  <resources>\n    <component id=\"mw8e0\" name=\"UILauncher.xml\" path=\"/Scene/\" exported=\"true\"/>\n    <component id=\"mw8e3\" name=\"UILoadingMainProgressBar.xml\" path=\"/Widget/\"/>\n    <component id=\"qew11e\" name=\"UILauncherUpgrade.xml\" path=\"/Scene/\"/>\n    <component id=\"qew11f\" name=\"UILauncherUpgradeContent.xml\" path=\"/Scene/\"/>\n    <image id=\"qew11h\" name=\"UI_icon_btn_green.png\" path=\"/Images/\" scale=\"9grid\" scale9grid=\"152,17,194,90\"/>\n    <component id=\"qew11i\" name=\"UILauncherEnterButton.xml\" path=\"/Widget/\"/>\n    <image id=\"i3db1j\" name=\"background_00_title_1920.png\" path=\"/Images/\"/>\n    <image id=\"i3db1k\" name=\"Background.png\" path=\"/Images/\"/>\n  </resources>\n  <publish name=\"\" path=\"../Unity/Assets/Resources/UI\" packageCount=\"2\" genCode=\"true\" codePath=\"../Unity/Assets/Scripts/Game/FairyGUI\" maxAtlasSize=\"2048\" rotation=\"true\"/>\n</packageDescription>"
  },
  {
    "path": "FairyGUIProject/assets/UILoading/Scene/UILoadingScene.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<component size=\"1080,1920\" bgColor=\"#00ff00\">\n  <displayList>\n    <graph id=\"n0_jfft\" name=\"n0\" xy=\"0,0\" size=\"1080,1920\" type=\"rect\" fillColor=\"#3899ccff\"/>\n    <richtext id=\"n1_jfft\" name=\"n1\" xy=\"290,1860\" size=\"500,60\" fontSize=\"35\" align=\"center\" vAlign=\"middle\" autoSize=\"none\" text=\"Loading...\"/>\n  </displayList>\n</component>"
  },
  {
    "path": "FairyGUIProject/assets/UILoading/Widget/UILoadingCenterBox.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<component size=\"2160,1080\" pivot=\"0.5,0.5\">\n  <displayList>\n    <loader id=\"n5_m4yw\" name=\"IconProgress3\" xy=\"1092,331\" pivot=\"0.5,0.5\" size=\"187,270\" url=\"ui://u7deosq0guskh\" align=\"center\" vAlign=\"middle\" fill=\"scale\">\n      <relation target=\"\" sidePair=\"center-center,middle-middle\"/>\n    </loader>\n    <loader id=\"n6_m4yw\" name=\"IconProgress4\" xy=\"927,197\" size=\"193,444\" url=\"ui://u7deosq0gusk1c\" align=\"center\" vAlign=\"middle\" fill=\"scale\">\n      <relation target=\"\" sidePair=\"center-center,middle-middle\"/>\n    </loader>\n    <text id=\"n1_i4zn\" name=\"TextMsg\" xy=\"287,662\" pivot=\"0.5,0.5\" size=\"1586,88\" fontSize=\"67\" align=\"center\" autoSize=\"shrink\" strokeColor=\"#cccccc\" autoClearText=\"true\" text=\"fffffffffgggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggghhhhhhhhhhhhh\"/>\n    <text id=\"n2_i4zn\" name=\"TextDot\" xy=\"287,753\" pivot=\"0.5,0.5\" size=\"1586,79\" fontSize=\"60\" align=\"center\" autoSize=\"none\" strokeColor=\"#cccccc\" text=\".......\"/>\n  </displayList>\n</component>"
  },
  {
    "path": "FairyGUIProject/assets/UILoading/package.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<packageDescription id=\"qecztwbp\">\n  <resources>\n    <component id=\"5euk0\" name=\"UILoadingScene.xml\" path=\"/Scene/\" exported=\"true\"/>\n    <component id=\"5euk1\" name=\"UILoadingCenterBox.xml\" path=\"/Widget/\"/>\n  </resources>\n  <publish name=\"\" genCode=\"true\"/>\n</packageDescription>"
  },
  {
    "path": "FairyGUIProject/assets/UILogin/Scene/UIAnnouncement.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<component size=\"2160,1080\">\n  <displayList>\n    <graph id=\"n28_wysz\" name=\"MaskLayer\" xy=\"-1484,-2324\" pivot=\"0.5,0.5\" size=\"1499,5000\" alpha=\"0\" type=\"rect\" lineSize=\"0\" fillColor=\"#02000000\">\n      <relation target=\"\" sidePair=\"width-width,height-height,center-center%,middle-middle%\"/>\n    </graph>\n    <component id=\"n27_anek\" name=\"TextContent\" src=\"aneks9i\" fileName=\"Scene/UIAnnouncementContent.xml\" xy=\"418,259\" size=\"1334,450\"/>\n    <text id=\"n30_ts7x\" name=\"TextTitle\" xy=\"1080,173\" pivot=\"0.5,0.5\" anchor=\"true\" size=\"104,66\" font=\"ui://f59y7iy8ghno32\" fontSize=\"50\" color=\"#e1c399\" align=\"center\" text=\"公告\">\n      <relation target=\"\" sidePair=\"center-center\"/>\n    </text>\n  </displayList>\n</component>"
  },
  {
    "path": "FairyGUIProject/assets/UILogin/Scene/UIAnnouncementContent.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<component size=\"1334,415\" overflow=\"scroll\" scrollBar=\"hidden\" clipSoftness=\"0,100\">\n  <displayList>\n    <richtext id=\"n27_anek\" name=\"LabelContent\" xy=\"23,25\" size=\"1280,200\" font=\"ui://f59y7iy8udcb2\" fontSize=\"30\" color=\"#d1c7ba\" letterSpacing=\"1\" ubb=\"true\" vars=\"true\" autoSize=\"height\" autoClearText=\"true\" text=\"更新文本更新文本更新文本更新文本更新文本更新文本更新文本更新文本更新文本更新文本更新文本更新文本更新文本更新文本更新文本更新文本更新文本更新文本更新文本更新文本更新文本更新文本更新文本更新文本更新文本更新文本更新文本更新文本更新文本更新文本更新文本更新文本更新文本更新文本更新文本更新文本更新文本更新文本更新文本更新文本更新文本更新文本更新文本更新文本更新文本更新文本更新文本更新文本\"/>\n  </displayList>\n</component>"
  },
  {
    "path": "FairyGUIProject/assets/UILogin/Scene/UILogin.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<component size=\"1920,1080\">\n  <displayList>\n    <graph id=\"n34_jfft\" name=\"n34\" xy=\"0,0\" size=\"1920,1080\" type=\"rect\" fillColor=\"#543399ff\"/>\n    <text id=\"n23_nmd0\" name=\"n23\" xy=\"889,155\" pivot=\"0.5,0.5\" size=\"104,66\" font=\"ui://f59y7iy8ghno32\" fontSize=\"50\" color=\"#e1c399\" align=\"center\" vAlign=\"middle\" text=\"登录\"/>\n    <text id=\"n30_xsvi\" name=\"ErrorText\" xy=\"695,694\" pivot=\"1,0\" size=\"529,46\" font=\"ui://f59y7iy8udcb2\" fontSize=\"28\" color=\"#f56236\" align=\"center\" vAlign=\"middle\" letterSpacing=\"-1\" autoSize=\"shrink\" singleLine=\"true\" autoClearText=\"true\" text=\"\"/>\n    <component id=\"n32_jfft\" name=\"enter\" src=\"xsvis9l\" fileName=\"Widget/UILoginButton.xml\" xy=\"720,844\"/>\n    <image id=\"n16_nmd0\" name=\"n16\" src=\"i3dbs9q\" fileName=\"Images/Button BG.png\" xy=\"577,385\" size=\"766,97\" group=\"n35_i3db\"/>\n    <text id=\"n17_nmd0\" name=\"UserName\" xy=\"592,404\" size=\"716,59\" group=\"n35_i3db\" font=\"ui://f59y7iy8ghno32\" fontSize=\"44\" color=\"#dedede\" letterSpacing=\"-1\" autoSize=\"none\" strokeColor=\"#000000\" strokeSize=\"2\" text=\"gameframex\" input=\"true\" prompt=\"点击输入\"/>\n    <image id=\"n18_nmd0\" name=\"n18\" src=\"i3dbs9q\" fileName=\"Images/Button BG.png\" xy=\"577,565\" size=\"766,97\" group=\"n35_i3db\"/>\n    <text id=\"n19_nmd0\" name=\"Password\" xy=\"592,585\" size=\"716,59\" group=\"n35_i3db\" fontSize=\"44\" color=\"#dedede\" vAlign=\"middle\" letterSpacing=\"-1\" autoSize=\"none\" strokeColor=\"#000000\" strokeSize=\"2\" singleLine=\"true\" text=\"123456\" input=\"true\" prompt=\"点击输入\" password=\"true\"/>\n    <text id=\"n20_nmd0\" name=\"n20\" xy=\"430,405\" size=\"130,56\" group=\"n35_i3db\" font=\"ui://f59y7iy8ghno32\" fontSize=\"42\" color=\"#d1c7ba\" text=\"账户名\"/>\n    <text id=\"n21_nmd0\" name=\"n21\" xy=\"472,585\" size=\"88,56\" group=\"n35_i3db\" font=\"ui://f59y7iy8ghno32\" fontSize=\"42\" color=\"#d1c7ba\" text=\"密码\"/>\n    <group id=\"n35_i3db\" name=\"n35\" xy=\"430,385\" size=\"913,277\"/>\n  </displayList>\n</component>"
  },
  {
    "path": "FairyGUIProject/assets/UILogin/Scene/UIPlayerCreate.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<component size=\"1920,1080\">\n  <displayList>\n    <graph id=\"n7_i3db\" name=\"n7\" xy=\"0,0\" size=\"1920,1080\" type=\"rect\" fillColor=\"#543399ff\">\n      <relation target=\"\" sidePair=\"width-width,height-height\"/>\n    </graph>\n    <image id=\"n2_i3db\" name=\"n2\" src=\"i3dbs9q\" fileName=\"Images/Button BG.png\" xy=\"620,299\" size=\"766,161\"/>\n    <text id=\"n3_i3db\" name=\"UserName\" xy=\"635,318\" size=\"706,123\" font=\"ui://f59y7iy8ghno32\" fontSize=\"57\" color=\"#dedede\" vAlign=\"middle\" letterSpacing=\"-1\" autoSize=\"none\" strokeColor=\"#000000\" strokeSize=\"2\" autoClearText=\"true\" text=\"gameframex\" input=\"true\" prompt=\"点击输入\"/>\n    <text id=\"n4_i3db\" name=\"n4\" xy=\"294,332\" size=\"274,97\" font=\"ui://f59y7iy8ghno32\" fontSize=\"42\" color=\"#d1c7ba\" align=\"right\" vAlign=\"middle\" autoSize=\"none\" text=\"角色名称：\"/>\n    <text id=\"n5_i3db\" name=\"n5\" xy=\"858,101\" pivot=\"0.5,0.5\" size=\"204,66\" font=\"ui://f59y7iy8ghno32\" fontSize=\"50\" color=\"#e1c399\" align=\"center\" vAlign=\"middle\" text=\"创建角色\"/>\n    <component id=\"n6_i3db\" name=\"enter\" src=\"xsvis9l\" fileName=\"Widget/UILoginButton.xml\" xy=\"641,762\">\n      <Button title=\"创建角色\"/>\n    </component>\n    <text id=\"n8_i3db\" name=\"ErrorText\" xy=\"637,539\" pivot=\"1,0\" size=\"529,103\" font=\"ui://f59y7iy8udcb2\" fontSize=\"28\" color=\"#f56236\" align=\"center\" vAlign=\"middle\" letterSpacing=\"-1\" autoSize=\"shrink\" autoClearText=\"true\" text=\"\"/>\n  </displayList>\n</component>"
  },
  {
    "path": "FairyGUIProject/assets/UILogin/Scene/UIPlayerList.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<component size=\"1920,1080\">\n  <controller name=\"IsSelected\" pages=\"0,No,1,Yes\" selected=\"1\"/>\n  <displayList>\n    <image id=\"n5_ob7a\" name=\"n5\" src=\"ob7as9r\" fileName=\"Images/Background.png\" xy=\"0,0\" size=\"1920,1080\">\n      <relation target=\"\" sidePair=\"width-width,height-height\"/>\n    </image>\n    <list id=\"n0_i3db\" name=\"player_list\" xy=\"42,56\" size=\"900,967\" overflow=\"scroll\" lineGap=\"10\" defaultItem=\"ui://f011l0h9i3dbs9n\" autoClearItems=\"true\">\n      <item/>\n      <item/>\n      <item/>\n      <item/>\n      <item/>\n    </list>\n    <loader id=\"n1_ob7a\" name=\"selected_icon\" xy=\"1313,67\" size=\"256,256\" align=\"center\" vAlign=\"middle\" fill=\"scale\">\n      <gearDisplay controller=\"IsSelected\" pages=\"1\"/>\n    </loader>\n    <richtext id=\"n2_ob7a\" name=\"selected_name\" xy=\"1100,398\" size=\"704,92\" fontSize=\"49\" color=\"#ccff33\" align=\"center\" vAlign=\"middle\" autoSize=\"none\" bold=\"true\" singleLine=\"true\" autoClearText=\"true\" text=\"喊a韩餐尅就\">\n      <gearDisplay controller=\"IsSelected\" pages=\"1\"/>\n    </richtext>\n    <richtext id=\"n4_ob7a\" name=\"selected_level\" xy=\"1260,539\" size=\"361,81\" fontSize=\"30\" color=\"#ffffff\" align=\"center\" vAlign=\"middle\" autoSize=\"none\" bold=\"true\" singleLine=\"true\" autoClearText=\"true\" text=\"喊a韩餐尅就\">\n      <gearDisplay controller=\"IsSelected\" pages=\"1\"/>\n    </richtext>\n    <component id=\"n3_ob7a\" name=\"login_button\" src=\"xsvis9l\" fileName=\"Widget/UILoginButton.xml\" xy=\"1201,833\">\n      <gearDisplay controller=\"IsSelected\" pages=\"1\"/>\n    </component>\n  </displayList>\n</component>"
  },
  {
    "path": "FairyGUIProject/assets/UILogin/Scene/UIPlayerListItem.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<component size=\"900,178\">\n  <displayList>\n    <graph id=\"n6_i3db\" name=\"n6\" xy=\"0,0\" size=\"900,178\" type=\"rect\" lineSize=\"4\" fillColor=\"#c1666666\">\n      <relation target=\"\" sidePair=\"width-width,height-height\"/>\n    </graph>\n    <loader id=\"n1_i3db\" name=\"icon\" xy=\"0,3\" size=\"176,172\" align=\"center\" vAlign=\"middle\"/>\n    <richtext id=\"n2_i3db\" name=\"name_text\" xy=\"235,2\" size=\"421,66\" fontSize=\"30\" vAlign=\"middle\" autoSize=\"none\" bold=\"true\" singleLine=\"true\" autoClearText=\"true\" text=\"OnGetPlayerList\"/>\n    <richtext id=\"n3_i3db\" name=\"level_text\" xy=\"235,98\" size=\"421,66\" fontSize=\"31\" vAlign=\"middle\" autoSize=\"none\" bold=\"true\" singleLine=\"true\" autoClearText=\"true\" text=\"OnGetPlayerList\"/>\n    <component id=\"n4_i3db\" name=\"login_button\" src=\"i3dbs9o\" fileName=\"Scene/UIPlayerListItemLoginButton.xml\" xy=\"699,5\">\n      <relation target=\"\" sidePair=\"right-right\"/>\n    </component>\n  </displayList>\n</component>"
  },
  {
    "path": "FairyGUIProject/assets/UILogin/Scene/UIPlayerListItemLoginButton.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<component size=\"167,168\">\n  <displayList>\n    <image id=\"n4_i3db\" name=\"n4\" src=\"i3dbs9q\" fileName=\"Images/Button BG.png\" xy=\"0,0\" size=\"167,168\"/>\n    <richtext id=\"n5_i3db\" name=\"title\" xy=\"39,55\" size=\"82,53\" fontSize=\"39\" color=\"#cc9933\" align=\"center\" vAlign=\"middle\" bold=\"true\" singleLine=\"true\" text=\"登录\">\n      <relation target=\"\" sidePair=\"center-center,middle-middle\"/>\n    </richtext>\n  </displayList>\n</component>"
  },
  {
    "path": "FairyGUIProject/assets/UILogin/Widget/UILoginButton.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<component size=\"480,128\" pivot=\"0.5,0.5\" extention=\"Button\">\n  <displayList>\n    <image id=\"n3_jfft\" name=\"n3\" src=\"i3dbs9q\" fileName=\"Images/Button BG.png\" xy=\"0,0\" size=\"480,128\"/>\n    <text id=\"n2_p5sl\" name=\"title\" xy=\"187,31\" pivot=\"0.5,0.5\" size=\"104,66\" font=\"ui://f59y7iy8ghno32\" fontSize=\"50\" color=\"#cccc33\" align=\"center\" vAlign=\"middle\" shadowColor=\"#000000\" shadowOffset=\"0,2\" singleLine=\"true\" text=\"登录\">\n      <relation target=\"\" sidePair=\"center-center,middle-middle\"/>\n    </text>\n  </displayList>\n  <Button downEffect=\"scale\" downEffectValue=\".8\"/>\n</component>"
  },
  {
    "path": "FairyGUIProject/assets/UILogin/package.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<packageDescription id=\"f011l0h9\">\n  <resources>\n    <component id=\"nmd0c\" name=\"UILogin.xml\" path=\"/Scene/\" exported=\"true\"/>\n    <component id=\"aneks9g\" name=\"UIAnnouncement.xml\" path=\"/Scene/\" exported=\"true\"/>\n    <component id=\"aneks9i\" name=\"UIAnnouncementContent.xml\" path=\"/Scene/\"/>\n    <component id=\"xsvis9l\" name=\"UILoginButton.xml\" path=\"/Widget/\"/>\n    <component id=\"i3dbs9m\" name=\"UIPlayerList.xml\" path=\"/Scene/\" exported=\"true\"/>\n    <component id=\"i3dbs9n\" name=\"UIPlayerListItem.xml\" path=\"/Scene/\" exported=\"true\"/>\n    <component id=\"i3dbs9o\" name=\"UIPlayerListItemLoginButton.xml\" path=\"/Scene/\"/>\n    <component id=\"i3dbs9p\" name=\"UIPlayerCreate.xml\" path=\"/Scene/\" exported=\"true\"/>\n    <image id=\"i3dbs9q\" name=\"Button BG.png\" path=\"/Images/\"/>\n    <image id=\"ob7as9r\" name=\"Background.png\" path=\"/Images/\"/>\n  </resources>\n  <publish name=\"\" genCode=\"true\"/>\n</packageDescription>"
  },
  {
    "path": "FairyGUIProject/assets/UIMain/BagButton.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<component size=\"325,100\" pivot=\"0.5,0.5\" extention=\"Button\">\n  <displayList>\n    <graph id=\"n0_xws7\" name=\"n0\" xy=\"0,0\" size=\"325,100\" type=\"rect\">\n      <relation target=\"\" sidePair=\"width-width,height-height\"/>\n    </graph>\n    <text id=\"n1_xws7\" name=\"title\" xy=\"70,29\" size=\"184,42\" fontSize=\"30\" align=\"center\" vAlign=\"middle\" bold=\"true\" singleLine=\"true\" text=\"获取背包信息\">\n      <relation target=\"\" sidePair=\"center-center,middle-middle\"/>\n    </text>\n  </displayList>\n  <Button downEffect=\"scale\" downEffectValue=\".8\"/>\n</component>"
  },
  {
    "path": "FairyGUIProject/assets/UIMain/UIMain.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<component size=\"1920,1080\">\n  <displayList>\n    <loader id=\"n4_ob7a\" name=\"bg\" xy=\"0,0\" size=\"1920,1080\" url=\"ui://q9u97yzfob7a2\" align=\"center\" vAlign=\"middle\" fill=\"scale\">\n      <relation target=\"\" sidePair=\"width-width,height-height\"/>\n    </loader>\n    <component id=\"n0_xws7\" name=\"bag_button\" src=\"xws71\" fileName=\"BagButton.xml\" xy=\"1253,946\" size=\"119,100\">\n      <Button title=\"背包\"/>\n    </component>\n    <loader id=\"n1_ob7a\" name=\"player_icon\" xy=\"51,36\" size=\"164,164\" align=\"center\" vAlign=\"middle\" fill=\"scale\"/>\n    <text id=\"n2_ob7a\" name=\"player_name\" xy=\"238,45\" size=\"376,61\" fontSize=\"30\" autoSize=\"none\" text=\"\"/>\n    <text id=\"n3_ob7a\" name=\"player_level\" xy=\"236,126\" size=\"376,61\" fontSize=\"30\" autoSize=\"none\" text=\"\"/>\n  </displayList>\n</component>"
  },
  {
    "path": "FairyGUIProject/assets/UIMain/package.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<packageDescription id=\"q9u97yzf\">\n  <resources>\n    <component id=\"xws70\" name=\"UIMain.xml\" path=\"/\" exported=\"true\"/>\n    <component id=\"xws71\" name=\"BagButton.xml\" path=\"/\"/>\n    <image id=\"ob7a2\" name=\"background_05_sample_00_1920.png\" path=\"/Images/\"/>\n  </resources>\n  <publish name=\"\" genCode=\"true\"/>\n</packageDescription>"
  },
  {
    "path": "FairyGUIProject/assets/UIPlayer/package.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<packageDescription id=\"u6auaukm\">\n  <resources/>\n</packageDescription>"
  },
  {
    "path": "FairyGUIProject/plugins/gencode/GenCode_CSharp.lua",
    "content": "local CreateTemplate = [[\r\n        private static GObject CreateGObject()\r\n        {\r\n            return UIPackage.CreateObject(UIPackageName, UIResName);\r\n        }\r\n\r\n        private static void CreateGObjectAsync(UIPackage.CreateObjectCallback result)\r\n        {\r\n            UIPackage.CreateObjectAsync(UIPackageName, UIResName, result);\r\n        }\r\n\r\n        public static {className} CreateInstance()\r\n        {\r\n            return Create(CreateGObject());\r\n        }\r\n\r\n        public static UniTask<{className}> CreateInstanceAsync(Entity domain)\r\n        {\r\n            UniTaskCompletionSource<{className}> tcs = new UniTaskCompletionSource<{className}>();\r\n            CreateGObjectAsync((go) =>\r\n            {\r\n                tcs.TrySetResult(Create(go));\r\n            });\r\n            return tcs.Task;\r\n        }\r\n]]\r\n\r\n---@type string UI代码模板\r\nlocal FUITemplate = [[\r\n#if ENABLE_UI_FAIRYGUI\r\nusing FairyGUI;\r\nusing Cysharp.Threading.Tasks;\r\nusing FairyGUI.Utils;\r\nusing GameFrameX.Entity.Runtime;\r\nusing GameFrameX.UI.Runtime;\r\nusing GameFrameX.UI.FairyGUI.Runtime;\r\nusing GameFrameX.Runtime;\r\nusing UnityEngine;\r\n\r\nnamespace {namespaceName}\r\n{\r\n    public sealed partial class {className} : FUI\r\n    {\r\n        public const string UIPackageName = \"{codePkgName}\";\r\n        public const string UIResName = \"{resName}\";\r\n        public const string URL = \"{URL}\";\r\n\r\n        /// <summary>\r\n        /// {uiResName}的组件类型(GComponent、GButton、GProcessBar等)，它们都是GObject的子类。\r\n        /// </summary>\r\n        public {superClassName} self { get; private set; }\r\n\r\n__PROPERTY__\r\n\r\n__CREATETEMPLATE__\r\n        public static {className} Create(GObject go)\r\n        {\r\n            var fui = go.displayObject.gameObject.GetOrAddComponent<{className}>();\r\n            fui?.SetGObject(go);\r\n            fui?.InitView();\r\n            return fui;\r\n        }\r\n\r\n        /// <summary>\r\n        /// 通过此方法获取的FUI，在Dispose时不会释放GObject，需要自行管理（一般在配合FGUI的Pool机制时使用）。\r\n        /// </summary>\r\n        public static {className} GetFormPool(GObject go)\r\n        {\r\n            var fui = go.Get<{className}>();\r\n            if (fui == null)\r\n            {\r\n                fui = Create(go);\r\n            }\r\n\r\n            fui.IsFromPool = true;\r\n            return fui;\r\n        }\r\n\r\n        protected override void InitView()\r\n        {\r\n            if(GObject == null)\r\n            {\r\n                return;\r\n            }\r\n\r\n            self = ({superClassName})GObject;\r\n            self.Add(this);\r\n            {comAdd}\r\n            var com = GObject.asCom;\r\n            if (com != null)\r\n            {\r\n__AWAKE__\r\n            }\r\n        }\r\n\r\n        public override void Dispose()\r\n        {\r\n            if (IsDisposed)\r\n            {\r\n                return;\r\n            }\r\n\r\n            base.Dispose();\r\n            self.Remove();\r\n__DISPOSE__\r\n            self = null;            \r\n        }\r\n\r\n        private {className}(GObject gObject) : base(gObject)\r\n        {\r\n            // Awake(gObject);\r\n        }\r\n    }\r\n}\r\n#endif]]\r\n---@type string UI包资源模板\r\nlocal FUIPackageTemplate = [[\r\n#if ENABLE_UI_FAIRYGUI\r\n\r\nnamespace {namespaceName}\r\n{\r\n    public static partial class FUIPackage\r\n    {\r\n__PKGNAMES__\r\n    }\r\n}\r\n#endif]]\r\n\r\n--- 将输入字符串按指定分隔符分割成数组\r\n---@param input: 输入的字符串\r\n---@param delimiter: 分隔符\r\nlocal function split(input, delimiter)\r\n    -- 检查分隔符是否为字符串且长度大于0\r\n    if type(delimiter) ~= \"string\" or #delimiter <= 0 then\r\n        return -- 如果不是，返回空\r\n    end\r\n    local start = 1 -- 定义起始位置\r\n    local arr = {} -- 创建空数组\r\n    while true do -- 进入循环\r\n        local pos = string.find(input, delimiter, start, true) -- 查找分隔符位置\r\n        if not pos then -- 如果没有找到\r\n            break -- 退出循环\r\n        end\r\n        table.insert(arr, string.sub(input, start, pos - 1)) -- 将分隔符之前的部分插入数组\r\n        start = pos + string.len(delimiter) -- 更新起始位置\r\n    end\r\n    table.insert(arr, string.sub(input, start)) -- 插入剩余部分到数组\r\n    return arr -- 返回数组\r\nend\r\n\r\n--- 判断是否为自定义组件\r\n--- @param classes table 包含类信息的表\r\n--- @param typeName string 待检查的类型名称\r\n--- @return boolean 如果是自定义组件则返回true，否则返回false\r\nlocal function IsCustomComponent(classes, typeName)\r\n    local classCnt = classes.Count; -- 获取类的数量\r\n    for i = 0, classCnt - 1 do -- 遍历类表\r\n        local classInfo = classes[i] -- 获取当前类信息\r\n        if typeName == classInfo.className then -- 检查类型名称是否匹配\r\n            return true; -- 如果匹配则返回true\r\n        end\r\n    end\r\n    return false; -- 类型名称未匹配则返回false\r\nend\r\n\r\n--- 生成代码\r\n--- @param handler table 处理程序\r\nlocal function genCode(handler)\r\n    local settings = handler.project:GetSettings(\"Publish\").codeGeneration -- 获取发布设置中的代码生成选项\r\n    local codePkgName = handler:ToFilename(handler.pkg.name); -- 将包名转换为文件名格式（拼音），去除特殊字符等\r\n    ---@type string\r\n    local exportCodePath = handler.exportCodePath; -- 导出代码路径\r\n    -- 规范化路径\r\n    exportCodePath = string.gsub(exportCodePath, '\\\\', '/') -- 将路径中的反斜杠替换为斜杠\r\n    -- UI组件\r\n    local exportCodeComponentPath = handler.exportCodePath .. '/' .. codePkgName .. '/Components'; -- 导出代码的组件路径\r\n    handler:SetupCodeFolder(exportCodeComponentPath, \"cs\") -- 设置代码文件夹\r\n    local namespaceName = codePkgName -- 命名空间名称\r\n\r\n    if settings.packageName ~= nil and settings.packageName ~= '' then\r\n        namespaceName = settings.packageName .. '.' .. namespaceName; -- 如果设置中有包名，则使用设置中的包名\r\n    end\r\n\r\n    namespaceName = \"Hotfix.UI\"; -- 命名空间名称为\"Hotfix.UI\"\r\n    if string.find(exportCodePath, \"Unity/Assets/Scripts\") then\r\n        namespaceName = \"Unity.Startup\"; -- 如果导出路径包含\"Unity/Assets/Scripts\"，则命名空间名称为\"Unity.Startup\"\r\n    end\r\n    -- CollectClasses(stripeMemeber, stripeClass, fguiNamespace)\r\n    local classes = handler:CollectClasses(settings.ignoreNoname, settings.ignoreNoname, nil) -- 收集类信息（忽略无名称的类）\r\n    -- 检查目标文件夹是否存在，并删除旧文件\r\n\r\n    local templeteString = FUITemplate; -- 模板字符串\r\n\r\n    local classCnt = classes.Count -- 类的数量\r\n    local writer = CodeWriter.new() -- 代码写入器\r\n    for i = 0, classCnt - 1 do\r\n        local classInfo = classes[i] -- 获取类信息\r\n        local members = classInfo.members -- 成员变量\r\n        local memberInfoExported = classInfo.res.exported; -- 成员信息是否导出\r\n        writer:reset() -- 重置写入器\r\n\r\n        local genCreateString = CreateTemplate; -- 生成创建字符串\r\n\r\n        local genCodeString = templeteString; -- 生成代码字符串\r\n        --- 处理导出的差异\r\n        if memberInfoExported then\r\n            genCodeString = string.gsub(genCodeString, '__CREATETEMPLATE__', genCreateString) -- 如果成员信息导出，则替换模板字符串中的__CREATETEMPLATE__\r\n        else\r\n            genCodeString = string.gsub(genCodeString, '__CREATETEMPLATE__', '') -- 否则移除__CREATETEMPLATE__\r\n        end\r\n\r\n        genCodeString = string.gsub(genCodeString, '{namespaceName}', namespaceName) -- 替换命名空间名称\r\n        genCodeString = string.gsub(genCodeString, '{className}', classInfo.className) -- 替换类名\r\n        genCodeString = string.gsub(genCodeString, '{superClassName}', classInfo.superClassName) -- 替换父类名\r\n        genCodeString = string.gsub(genCodeString, '{codePkgName}', handler.pkg.name) -- 替换包名\r\n        genCodeString = string.gsub(genCodeString, '{resName}', classInfo.resName) -- 替换资源名\r\n        genCodeString = string.gsub(genCodeString, '{URL}', 'ui://' .. handler.pkg.id .. classInfo.resId) -- 替换资源URL\r\n\r\n        local propertyStr = \"\"; -- 属性字符串\r\n        local propertyTable = {}; -- 属性表\r\n        local AwakeStr = \"\"; -- Awake字符串\r\n        local AwakeTable = {}; -- Awake表\r\n        local DisposeStr = \"\"; -- Dispose字符串\r\n        local disposeTable = {}; -- Dispose表\r\n        local memberCnt = members.Count -- 成员数量\r\n        for j = 0, memberCnt - 1 do\r\n            local memberInfo = members[j] -- 获取成员信息\r\n            local typeName = memberInfo.type -- 类型名称\r\n            local varName = memberInfo.varName -- 变量名\r\n            local memberInfoName = memberInfo.name; -- 成员信息名称\r\n            -- 这里查找组件是否是其他包里的资源\r\n            local isWhetherToCrossPackages = false; -- 是否跨包引用\r\n            if memberInfo.res ~= nil then\r\n                if memberInfo.res.owner.name ~= handler.pkg.name then -- 判断是不是本包的资源\r\n                    local memberResName = memberInfo.res.name; -- 获取跨包的组件名称\r\n                    if IsCustomComponent(classes, typeName) then -- 判断是不是自定义类型组件\r\n                    typeName = memberResName; -- 替换类型名称为跨包的组件名称\r\n                    end\r\n                    isWhetherToCrossPackages = true;\r\n                end\r\n            end\r\n\r\n            table.insert(propertyTable, '\\t\\tpublic ' .. typeName .. ' ' .. varName .. ' { get; private set; }'); -- 插入属性表\r\n\r\n            if string.find(typeName, \"Scene\") then\r\n                table.insert(disposeTable, '\\t\\t\\t' .. varName .. '.Dispose();'); -- 如果类型名称中包含\"Scene\"，则插入Dispose表\r\n            end\r\n            table.insert(disposeTable, '\\t\\t\\t' .. varName .. ' = null;'); -- 插入Dispose表\r\n\r\n            if memberInfo.group == 0 then\r\n                -- 判断是不是自定义类型组件 和跨包引用\r\n                if IsCustomComponent(classes, typeName) then\r\n                    table.insert(AwakeTable, '\\t\\t\\t\\t' .. varName .. ' = ' .. typeName .. '.Create(com.GetChild(\"' ..\r\n                        memberInfoName .. '\"));'); -- 如果是自定义类型组件且是跨包引用，则插入Awake表\r\n                else\r\n                    table.insert(AwakeTable, '\\t\\t\\t\\t' .. varName .. ' = (' .. typeName .. ')com.GetChild(\"' ..\r\n                        memberInfoName .. '\");'); -- 否则插入Awake表\r\n                end\r\n            elseif memberInfo.group == 1 then\r\n                table.insert(AwakeTable, '\\t\\t\\t\\t' .. varName .. ' = com.GetController(\"' .. memberInfoName .. '\");'); -- 插入Awake表\r\n            else\r\n                table.insert(AwakeTable, '\\t\\t\\t\\t' .. varName .. ' = com.GetTransition(\"' .. memberInfoName .. '\");'); -- 插入Awake表\r\n            end\r\n        end\r\n        propertyStr = table.concat(propertyTable, '\\n') -- 属性字符串连接\r\n        DisposeStr = table.concat(disposeTable, '\\n') -- Dispose字符串连接\r\n        AwakeStr = table.concat(AwakeTable, '\\n') -- Awake字符串连接\r\n        genCodeString = string.gsub(genCodeString, '__PROPERTY__', propertyStr) -- 替换属性字符串\r\n        genCodeString = string.gsub(genCodeString, '__AWAKE__', AwakeStr) -- 替换Awake字符串\r\n        genCodeString = string.gsub(genCodeString, '__DISPOSE__', DisposeStr) -- 替换Dispose字符串\r\n        if string.find(namespaceName, \".Model\") then\r\n            genCodeString = string.gsub(genCodeString, '{comB}', '/***') -- 替换字符串\r\n            genCodeString = string.gsub(genCodeString, '{comE}', '***/') -- 替换字符串\r\n\r\n            genCodeString = string.gsub(genCodeString, '{comAdd}', '') -- 替换字符串\r\n            -- genCodeString = string.gsub(genCodeString, '{comRemove}', '') -- 替换字符串\r\n\r\n        else\r\n            genCodeString = string.gsub(genCodeString, '{comB}', '') -- 替换字符串\r\n            genCodeString = string.gsub(genCodeString, '{comE}', '') -- 替换字符串\r\n\r\n            genCodeString = string.gsub(genCodeString, '{comAdd}', '') -- 替换字符串\r\n            -- genCodeString = string.gsub(genCodeString, '{comRemove}', '') -- 替换字符串\r\n        end\r\n        writer:writeln(genCodeString); -- 写入生成的代码字符串\r\n        writer:save(exportCodeComponentPath .. '/' .. classInfo.className .. '.cs'); -- 保存生成的代码文件\r\n    end\r\n\r\n    writer:reset() -- 重置写入器\r\n\r\n    local packageTempleteString = FUIPackageTemplate; -- 包模板字符串\r\n    local pkgNamesStr = \"\"; -- 包名字符串\r\n    local pkgNamesTable = {}; -- 包名表\r\n    packageTempleteString = string.gsub(packageTempleteString, '{namespaceName}', namespaceName) -- 替换命名空间名称\r\n\r\n    table.insert(pkgNamesTable, '\\t\\tpublic const string ' .. codePkgName .. ' = \"' .. codePkgName .. '\";'); -- 插入包名表\r\n    -- for i = 0, classCnt - 1 do\r\n    --     local classInfo = classes[i];\r\n    --     table.insert(pkgNamesTable,'\\t\\tpublic const string ' .. codePkgName .. '_' .. classInfo.resName .. ' = \"ui://' .. codePkgName .. '/' .. classInfo.resName .. '\";'); -- 插入包名表\r\n    -- end\r\n    pkgNamesStr = table.concat(pkgNamesTable, '\\n'); -- 包名字符串连接\r\n    packageTempleteString = string.gsub(packageTempleteString, '__PKGNAMES__', pkgNamesStr) -- 替换包名字符串\r\n\r\n    local binderName = 'Package' .. codePkgName; -- 绑定器名称\r\n    writer:writeln(packageTempleteString); -- 写入包模板字符串\r\n    writer:save(exportCodeComponentPath .. '/' .. binderName .. '.cs'); -- 保存包绑定器文件\r\nend\r\n\r\nreturn genCode\r\n"
  },
  {
    "path": "FairyGUIProject/plugins/gencode/main.lua",
    "content": "--FYI: https://github.com/Tencent/xLua/blob/master/Assets/XLua/Doc/XLua_Tutorial_EN.md\n\nlocal genCode = require(PluginPath .. '/GenCode_CSharp')\n\nfunction onPublish(publishHandler)\n\n    fprint(' 导出前目录 ' .. publishHandler.exportPath)\n    publishHandler.exportPath = publishHandler.exportPath .. '/' .. publishHandler.pkg.name\n    local isExists = CS.System.IO.Directory.Exists(publishHandler.exportPath)\n    if not isExists then\n        CS.System.IO.Directory.CreateDirectory(publishHandler.exportPath)\n    end\n\n    fprint(' 导出后目录 ' .. publishHandler.exportPath)\n\n    if not publishHandler.genCode then\n        return\n    end\n    publishHandler.genCode = false --prevent default output\n\n    genCode(publishHandler)\nend\n\nfunction onDestroy()\n    -------do cleanup here-------\nend"
  },
  {
    "path": "FairyGUIProject/plugins/gencode/package.json",
    "content": "{\n  \"name\": \"gencode\",\n  \"displayName\": \"代码生成UI组件代码\",\n  \"description\": \"将标记为导出的组件和使用到的组件导出为C#代码，且自动绑定对象\",\n  \"version\": \"1.0\",\n  \"author\": {\n    \"name\": \"AlianBlank\",\n    \"url\": \"https://github.com/GameFrameX\"\n  },\n  \"icon\": \"logo.png\",\n  \"main\": \"main.lua\"\n}"
  },
  {
    "path": "FairyGUIProject/plugins/plugins.iml",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<module type=\"GENERAL_MODULE\" version=\"4\">\n  <component name=\"NewModuleRootManager\" inherit-compiler-output=\"true\">\n    <exclude-output />\n    <content url=\"file://$MODULE_DIR$\" />\n    <orderEntry type=\"sourceFolder\" forTests=\"false\" />\n  </component>\n</module>"
  },
  {
    "path": "FairyGUIProject/settings/Adaptation.json",
    "content": "{\n  \"scaleMode\": \"ScaleWithScreenSize\",\n  \"screenMathMode\": \"MatchWidthOrHeight\",\n  \"designResolutionX\": 1080,\n  \"designResolutionY\": 2160,\n  \"devices\": [\n    {\n      \"name\": \"noname\",\n      \"resolutionX\": 2160,\n      \"resolutionY\": 1080\n    }\n  ],\n  \"fileName\": \"Adaptation\"\n}"
  },
  {
    "path": "FairyGUIProject/settings/Common.json",
    "content": "{\n  \"font\": \"ui://f59y7iy8udcb2\",\n  \"fontSize\": 30,\n  \"textColor\": \"#000000\",\n  \"fontAdjustment\": false,\n  \"colorScheme\": [\n    \"深灰色 #3c3c3c\",\n    \"深黑 #101010\",\n    \"纯白 #FFFFFF\",\n    \"标题白 #d6ecff\",\n    \"黑棕色 #241d18\",\n    \"深红 #7F2D29\",\n    \"灰棕色 #5b453c\",\n    \"草绿色 #52753C\",\n    \"浅绿色 #A4CE8A\",\n    \"浅红 #f56236\",\n    \"弹窗正文色 #BBB8B3\",\n    \"弹窗标题色 #E1C399\"\n  ],\n  \"fontSizeScheme\": [\n    \"主标题 72\",\n    \"中弹窗标题大小 38\",\n    \"弹窗说明字体大小 35\",\n    \"说明字体大小 28\"\n  ],\n  \"fontScheme\": [\n    \"默认数字字体 ui://f59y7iy8rlr0az\"\n  ],\n  \"scrollBars\": {\n    \"horizontal\": \"\",\n    \"vertical\": \"ui://s1h25l7xwnkvf\",\n    \"defaultDisplay\": \"visible\"\n  },\n  \"tipsRes\": \"ui://t2ic63zdoky1x\",\n  \"buttonClickSound\": \"\",\n  \"pivot\": \"default\",\n  \"fileName\": \"Common\"\n}"
  },
  {
    "path": "FairyGUIProject/settings/CustomProperties.json",
    "content": "{}"
  },
  {
    "path": "FairyGUIProject/settings/PackageGroup.json",
    "content": "[\n  {\n    \"name\": \"UI\",\n    \"pkgs\": [\n      \"rooljsfx\",\n      \"8bbilq8f\",\n      \"3jlac56o\",\n      \"8aovrc7w\",\n      \"s1h25l7x\",\n      \"goc7xugy\",\n      \"gjxko9vn\",\n      \"qecztwbp\",\n      \"f011l0h9\",\n      \"8tna182n\",\n      \"rbrjj5v2\",\n      \"rlc7tgx2\",\n      \"rn5iaqeh\",\n      \"fa6npys5\",\n      \"gx5ub6fn\"\n    ]\n  },\n  {\n    \"name\": \"Res\",\n    \"pkgs\": [\n      \"f59y7iy8\",\n      \"gxmf5wqp\",\n      \"gmjkw28i\",\n      \"gm3fgmt3\"\n    ]\n  },\n  {\n    \"name\": \"Def\",\n    \"pkgs\": [\n      \"s1h25l7x\"\n    ]\n  }\n]"
  },
  {
    "path": "FairyGUIProject/settings/Publish.json",
    "content": "{\n  \"path\": \"../Unity/Assets/Bundles/UI\",\n  \"branchPath\": \"\",\n  \"fileExtension\": \"bytes\",\n  \"packageCount\": 2,\n  \"compressDesc\": true,\n  \"binaryFormat\": true,\n  \"jpegQuality\": 80,\n  \"compressPNG\": false,\n  \"codeGeneration\": {\n    \"allowGenCode\": true,\n    \"codePath\": \"../Unity/Assets/Hotfix/UI/FairyGUI/\",\n    \"classNamePrefix\": \"\",\n    \"memberNamePrefix\": \"m_\",\n    \"packageName\": null,\n    \"ignoreNoname\": true,\n    \"getMemberByName\": true,\n    \"codeType\": \"\"\n  },\n  \"includeHighResolution\": 0,\n  \"branchProcessing\": 0,\n  \"seperatedAtlasForBranch\": false,\n  \"atlasSetting\": {\n    \"maxSize\": 2048,\n    \"paging\": true,\n    \"sizeOption\": \"pot\",\n    \"forceSquare\": false,\n    \"allowRotation\": true,\n    \"trimImage\": true\n  },\n  \"include2x\": false,\n  \"include3x\": false,\n  \"include4x\": false,\n  \"fileName\": \"Publish\"\n}"
  },
  {
    "path": "FairyGUIProject/settings/i18n.json",
    "content": "{\n  \"langFiles\": []\n}"
  },
  {
    "path": "LICENSE.md",
    "content": "                    GNU AFFERO GENERAL PUBLIC LICENSE\n                       Version 3, 19 November 2007\n\n Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>\n Everyone is permitted to copy and distribute verbatim copies\n of this license document, but changing it is not allowed.\n\n                            Preamble\n\n  The GNU Affero General Public License is a free, copyleft license for\nsoftware and other kinds of works, specifically designed to ensure\ncooperation with the community in the case of network server software.\n\n  The licenses for most software and other practical works are designed\nto take away your freedom to share and change the works.  By contrast,\nour General Public Licenses are intended to guarantee your freedom to\nshare and change all versions of a program--to make sure it remains free\nsoftware for all its users.\n\n  When we speak of free software, we are referring to freedom, not\nprice.  Our General Public Licenses are designed to make sure that you\nhave the freedom to distribute copies of free software (and charge for\nthem if you wish), that you receive source code or can get it if you\nwant it, that you can change the software or use pieces of it in new\nfree programs, and that you know you can do these things.\n\n  Developers that use our General Public Licenses protect your rights\nwith two steps: (1) assert copyright on the software, and (2) offer\nyou this License which gives you legal permission to copy, distribute\nand/or modify the software.\n\n  A secondary benefit of defending all users' freedom is that\nimprovements made in alternate versions of the program, if they\nreceive widespread use, become available for other developers to\nincorporate.  Many developers of free software are heartened and\nencouraged by the resulting cooperation.  However, in the case of\nsoftware used on network servers, this result may fail to come about.\nThe GNU General Public License permits making a modified version and\nletting the public access it on a server without ever releasing its\nsource code to the public.\n\n  The GNU Affero General Public License is designed specifically to\nensure that, in such cases, the modified source code becomes available\nto the community.  It requires the operator of a network server to\nprovide the source code of the modified version running there to the\nusers of that server.  Therefore, public use of a modified version, on\na publicly accessible server, gives the public access to the source\ncode of the modified version.\n\n  An older license, called the Affero General Public License and\npublished by Affero, was designed to accomplish similar goals.  This is\na different license, not a version of the Affero GPL, but Affero has\nreleased a new version of the Affero GPL which permits relicensing under\nthis license.\n\n  The precise terms and conditions for copying, distribution and\nmodification follow.\n\n                       TERMS AND CONDITIONS\n\n  0. Definitions.\n\n  \"This License\" refers to version 3 of the GNU Affero General Public License.\n\n  \"Copyright\" also means copyright-like laws that apply to other kinds of\nworks, such as semiconductor masks.\n\n  \"The Program\" refers to any copyrightable work licensed under this\nLicense.  Each licensee is addressed as \"you\".  \"Licensees\" and\n\"recipients\" may be individuals or organizations.\n\n  To \"modify\" a work means to copy from or adapt all or part of the work\nin a fashion requiring copyright permission, other than the making of an\nexact copy.  The resulting work is called a \"modified version\" of the\nearlier work or a work \"based on\" the earlier work.\n\n  A \"covered work\" means either the unmodified Program or a work based\non the Program.\n\n  To \"propagate\" a work means to do anything with it that, without\npermission, would make you directly or secondarily liable for\ninfringement under applicable copyright law, except executing it on a\ncomputer or modifying a private copy.  Propagation includes copying,\ndistribution (with or without modification), making available to the\npublic, and in some countries other activities as well.\n\n  To \"convey\" a work means any kind of propagation that enables other\nparties to make or receive copies.  Mere interaction with a user through\na computer network, with no transfer of a copy, is not conveying.\n\n  An interactive user interface displays \"Appropriate Legal Notices\"\nto the extent that it includes a convenient and prominently visible\nfeature that (1) displays an appropriate copyright notice, and (2)\ntells the user that there is no warranty for the work (except to the\nextent that warranties are provided), that licensees may convey the\nwork under this License, and how to view a copy of this License.  If\nthe interface presents a list of user commands or options, such as a\nmenu, a prominent item in the list meets this criterion.\n\n  1. Source Code.\n\n  The \"source code\" for a work means the preferred form of the work\nfor making modifications to it.  \"Object code\" means any non-source\nform of a work.\n\n  A \"Standard Interface\" means an interface that either is an official\nstandard defined by a recognized standards body, or, in the case of\ninterfaces specified for a particular programming language, one that\nis widely used among developers working in that language.\n\n  The \"System Libraries\" of an executable work include anything, other\nthan the work as a whole, that (a) is included in the normal form of\npackaging a Major Component, but which is not part of that Major\nComponent, and (b) serves only to enable use of the work with that\nMajor Component, or to implement a Standard Interface for which an\nimplementation is available to the public in source code form.  A\n\"Major Component\", in this context, means a major essential component\n(kernel, window system, and so on) of the specific operating system\n(if any) on which the executable work runs, or a compiler used to\nproduce the work, or an object code interpreter used to run it.\n\n  The \"Corresponding Source\" for a work in object code form means all\nthe source code needed to generate, install, and (for an executable\nwork) run the object code and to modify the work, including scripts to\ncontrol those activities.  However, it does not include the work's\nSystem Libraries, or general-purpose tools or generally available free\nprograms which are used unmodified in performing those activities but\nwhich are not part of the work.  For example, Corresponding Source\nincludes interface definition files associated with source files for\nthe work, and the source code for shared libraries and dynamically\nlinked subprograms that the work is specifically designed to require,\nsuch as by intimate data communication or control flow between those\nsubprograms and other parts of the work.\n\n  The Corresponding Source need not include anything that users\ncan regenerate automatically from other parts of the Corresponding\nSource.\n\n  The Corresponding Source for a work in source code form is that\nsame work.\n\n  2. Basic Permissions.\n\n  All rights granted under this License are granted for the term of\ncopyright on the Program, and are irrevocable provided the stated\nconditions are met.  This License explicitly affirms your unlimited\npermission to run the unmodified Program.  The output from running a\ncovered work is covered by this License only if the output, given its\ncontent, constitutes a covered work.  This License acknowledges your\nrights of fair use or other equivalent, as provided by copyright law.\n\n  You may make, run and propagate covered works that you do not\nconvey, without conditions so long as your license otherwise remains\nin force.  You may convey covered works to others for the sole purpose\nof having them make modifications exclusively for you, or provide you\nwith facilities for running those works, provided that you comply with\nthe terms of this License in conveying all material for which you do\nnot control copyright.  Those thus making or running the covered works\nfor you must do so exclusively on your behalf, under your direction\nand control, on terms that prohibit them from making any copies of\nyour copyrighted material outside their relationship with you.\n\n  Conveying under any other circumstances is permitted solely under\nthe conditions stated below.  Sublicensing is not allowed; section 10\nmakes it unnecessary.\n\n  3. Protecting Users' Legal Rights From Anti-Circumvention Law.\n\n  No covered work shall be deemed part of an effective technological\nmeasure under any applicable law fulfilling obligations under article\n11 of the WIPO copyright treaty adopted on 20 December 1996, or\nsimilar laws prohibiting or restricting circumvention of such\nmeasures.\n\n  When you convey a covered work, you waive any legal power to forbid\ncircumvention of technological measures to the extent such circumvention\nis effected by exercising rights under this License with respect to\nthe covered work, and you disclaim any intention to limit operation or\nmodification of the work as a means of enforcing, against the work's\nusers, your or third parties' legal rights to forbid circumvention of\ntechnological measures.\n\n  4. Conveying Verbatim Copies.\n\n  You may convey verbatim copies of the Program's source code as you\nreceive it, in any medium, provided that you conspicuously and\nappropriately publish on each copy an appropriate copyright notice;\nkeep intact all notices stating that this License and any\nnon-permissive terms added in accord with section 7 apply to the code;\nkeep intact all notices of the absence of any warranty; and give all\nrecipients a copy of this License along with the Program.\n\n  You may charge any price or no price for each copy that you convey,\nand you may offer support or warranty protection for a fee.\n\n  5. Conveying Modified Source Versions.\n\n  You may convey a work based on the Program, or the modifications to\nproduce it from the Program, in the form of source code under the\nterms of section 4, provided that you also meet all of these conditions:\n\n    a) The work must carry prominent notices stating that you modified\n    it, and giving a relevant date.\n\n    b) The work must carry prominent notices stating that it is\n    released under this License and any conditions added under section\n    7.  This requirement modifies the requirement in section 4 to\n    \"keep intact all notices\".\n\n    c) You must license the entire work, as a whole, under this\n    License to anyone who comes into possession of a copy.  This\n    License will therefore apply, along with any applicable section 7\n    additional terms, to the whole of the work, and all its parts,\n    regardless of how they are packaged.  This License gives no\n    permission to license the work in any other way, but it does not\n    invalidate such permission if you have separately received it.\n\n    d) If the work has interactive user interfaces, each must display\n    Appropriate Legal Notices; however, if the Program has interactive\n    interfaces that do not display Appropriate Legal Notices, your\n    work need not make them do so.\n\n  A compilation of a covered work with other separate and independent\nworks, which are not by their nature extensions of the covered work,\nand which are not combined with it such as to form a larger program,\nin or on a volume of a storage or distribution medium, is called an\n\"aggregate\" if the compilation and its resulting copyright are not\nused to limit the access or legal rights of the compilation's users\nbeyond what the individual works permit.  Inclusion of a covered work\nin an aggregate does not cause this License to apply to the other\nparts of the aggregate.\n\n  6. Conveying Non-Source Forms.\n\n  You may convey a covered work in object code form under the terms\nof sections 4 and 5, provided that you also convey the\nmachine-readable Corresponding Source under the terms of this License,\nin one of these ways:\n\n    a) Convey the object code in, or embodied in, a physical product\n    (including a physical distribution medium), accompanied by the\n    Corresponding Source fixed on a durable physical medium\n    customarily used for software interchange.\n\n    b) Convey the object code in, or embodied in, a physical product\n    (including a physical distribution medium), accompanied by a\n    written offer, valid for at least three years and valid for as\n    long as you offer spare parts or customer support for that product\n    model, to give anyone who possesses the object code either (1) a\n    copy of the Corresponding Source for all the software in the\n    product that is covered by this License, on a durable physical\n    medium customarily used for software interchange, for a price no\n    more than your reasonable cost of physically performing this\n    conveying of source, or (2) access to copy the\n    Corresponding Source from a network server at no charge.\n\n    c) Convey individual copies of the object code with a copy of the\n    written offer to provide the Corresponding Source.  This\n    alternative is allowed only occasionally and noncommercially, and\n    only if you received the object code with such an offer, in accord\n    with subsection 6b.\n\n    d) Convey the object code by offering access from a designated\n    place (gratis or for a charge), and offer equivalent access to the\n    Corresponding Source in the same way through the same place at no\n    further charge.  You need not require recipients to copy the\n    Corresponding Source along with the object code.  If the place to\n    copy the object code is a network server, the Corresponding Source\n    may be on a different server (operated by you or a third party)\n    that supports equivalent copying facilities, provided you maintain\n    clear directions next to the object code saying where to find the\n    Corresponding Source.  Regardless of what server hosts the\n    Corresponding Source, you remain obligated to ensure that it is\n    available for as long as needed to satisfy these requirements.\n\n    e) Convey the object code using peer-to-peer transmission, provided\n    you inform other peers where the object code and Corresponding\n    Source of the work are being offered to the general public at no\n    charge under subsection 6d.\n\n  A separable portion of the object code, whose source code is excluded\nfrom the Corresponding Source as a System Library, need not be\nincluded in conveying the object code work.\n\n  A \"User Product\" is either (1) a \"consumer product\", which means any\ntangible personal property which is normally used for personal, family,\nor household purposes, or (2) anything designed or sold for incorporation\ninto a dwelling.  In determining whether a product is a consumer product,\ndoubtful cases shall be resolved in favor of coverage.  For a particular\nproduct received by a particular user, \"normally used\" refers to a\ntypical or common use of that class of product, regardless of the status\nof the particular user or of the way in which the particular user\nactually uses, or expects or is expected to use, the product.  A product\nis a consumer product regardless of whether the product has substantial\ncommercial, industrial or non-consumer uses, unless such uses represent\nthe only significant mode of use of the product.\n\n  \"Installation Information\" for a User Product means any methods,\nprocedures, authorization keys, or other information required to install\nand execute modified versions of a covered work in that User Product from\na modified version of its Corresponding Source.  The information must\nsuffice to ensure that the continued functioning of the modified object\ncode is in no case prevented or interfered with solely because\nmodification has been made.\n\n  If you convey an object code work under this section in, or with, or\nspecifically for use in, a User Product, and the conveying occurs as\npart of a transaction in which the right of possession and use of the\nUser Product is transferred to the recipient in perpetuity or for a\nfixed term (regardless of how the transaction is characterized), the\nCorresponding Source conveyed under this section must be accompanied\nby the Installation Information.  But this requirement does not apply\nif neither you nor any third party retains the ability to install\nmodified object code on the User Product (for example, the work has\nbeen installed in ROM).\n\n  The requirement to provide Installation Information does not include a\nrequirement to continue to provide support service, warranty, or updates\nfor a work that has been modified or installed by the recipient, or for\nthe User Product in which it has been modified or installed.  Access to a\nnetwork may be denied when the modification itself materially and\nadversely affects the operation of the network or violates the rules and\nprotocols for communication across the network.\n\n  Corresponding Source conveyed, and Installation Information provided,\nin accord with this section must be in a format that is publicly\ndocumented (and with an implementation available to the public in\nsource code form), and must require no special password or key for\nunpacking, reading or copying.\n\n  7. Additional Terms.\n\n  \"Additional permissions\" are terms that supplement the terms of this\nLicense by making exceptions from one or more of its conditions.\nAdditional permissions that are applicable to the entire Program shall\nbe treated as though they were included in this License, to the extent\nthat they are valid under applicable law.  If additional permissions\napply only to part of the Program, that part may be used separately\nunder those permissions, but the entire Program remains governed by\nthis License without regard to the additional permissions.\n\n  When you convey a copy of a covered work, you may at your option\nremove any additional permissions from that copy, or from any part of\nit.  (Additional permissions may be written to require their own\nremoval in certain cases when you modify the work.)  You may place\nadditional permissions on material, added by you to a covered work,\nfor which you have or can give appropriate copyright permission.\n\n  Notwithstanding any other provision of this License, for material you\nadd to a covered work, you may (if authorized by the copyright holders of\nthat material) supplement the terms of this License with terms:\n\n    a) Disclaiming warranty or limiting liability differently from the\n    terms of sections 15 and 16 of this License; or\n\n    b) Requiring preservation of specified reasonable legal notices or\n    author attributions in that material or in the Appropriate Legal\n    Notices displayed by works containing it; or\n\n    c) Prohibiting misrepresentation of the origin of that material, or\n    requiring that modified versions of such material be marked in\n    reasonable ways as different from the original version; or\n\n    d) Limiting the use for publicity purposes of names of licensors or\n    authors of the material; or\n\n    e) Declining to grant rights under trademark law for use of some\n    trade names, trademarks, or service marks; or\n\n    f) Requiring indemnification of licensors and authors of that\n    material by anyone who conveys the material (or modified versions of\n    it) with contractual assumptions of liability to the recipient, for\n    any liability that these contractual assumptions directly impose on\n    those licensors and authors.\n\n  All other non-permissive additional terms are considered \"further\nrestrictions\" within the meaning of section 10.  If the Program as you\nreceived it, or any part of it, contains a notice stating that it is\ngoverned by this License along with a term that is a further\nrestriction, you may remove that term.  If a license document contains\na further restriction but permits relicensing or conveying under this\nLicense, you may add to a covered work material governed by the terms\nof that license document, provided that the further restriction does\nnot survive such relicensing or conveying.\n\n  If you add terms to a covered work in accord with this section, you\nmust place, in the relevant source files, a statement of the\nadditional terms that apply to those files, or a notice indicating\nwhere to find the applicable terms.\n\n  Additional terms, permissive or non-permissive, may be stated in the\nform of a separately written license, or stated as exceptions;\nthe above requirements apply either way.\n\n  8. Termination.\n\n  You may not propagate or modify a covered work except as expressly\nprovided under this License.  Any attempt otherwise to propagate or\nmodify it is void, and will automatically terminate your rights under\nthis License (including any patent licenses granted under the third\nparagraph of section 11).\n\n  However, if you cease all violation of this License, then your\nlicense from a particular copyright holder is reinstated (a)\nprovisionally, unless and until the copyright holder explicitly and\nfinally terminates your license, and (b) permanently, if the copyright\nholder fails to notify you of the violation by some reasonable means\nprior to 60 days after the cessation.\n\n  Moreover, your license from a particular copyright holder is\nreinstated permanently if the copyright holder notifies you of the\nviolation by some reasonable means, this is the first time you have\nreceived notice of violation of this License (for any work) from that\ncopyright holder, and you cure the violation prior to 30 days after\nyour receipt of the notice.\n\n  Termination of your rights under this section does not terminate the\nlicenses of parties who have received copies or rights from you under\nthis License.  If your rights have been terminated and not permanently\nreinstated, you do not qualify to receive new licenses for the same\nmaterial under section 10.\n\n  9. Acceptance Not Required for Having Copies.\n\n  You are not required to accept this License in order to receive or\nrun a copy of the Program.  Ancillary propagation of a covered work\noccurring solely as a consequence of using peer-to-peer transmission\nto receive a copy likewise does not require acceptance.  However,\nnothing other than this License grants you permission to propagate or\nmodify any covered work.  These actions infringe copyright if you do\nnot accept this License.  Therefore, by modifying or propagating a\ncovered work, you indicate your acceptance of this License to do so.\n\n  10. Automatic Licensing of Downstream Recipients.\n\n  Each time you convey a covered work, the recipient automatically\nreceives a license from the original licensors, to run, modify and\npropagate that work, subject to this License.  You are not responsible\nfor enforcing compliance by third parties with this License.\n\n  An \"entity transaction\" is a transaction transferring control of an\norganization, or substantially all assets of one, or subdividing an\norganization, or merging organizations.  If propagation of a covered\nwork results from an entity transaction, each party to that\ntransaction who receives a copy of the work also receives whatever\nlicenses to the work the party's predecessor in interest had or could\ngive under the previous paragraph, plus a right to possession of the\nCorresponding Source of the work from the predecessor in interest, if\nthe predecessor has it or can get it with reasonable efforts.\n\n  You may not impose any further restrictions on the exercise of the\nrights granted or affirmed under this License.  For example, you may\nnot impose a license fee, royalty, or other charge for exercise of\nrights granted under this License, and you may not initiate litigation\n(including a cross-claim or counterclaim in a lawsuit) alleging that\nany patent claim is infringed by making, using, selling, offering for\nsale, or importing the Program or any portion of it.\n\n  11. Patents.\n\n  A \"contributor\" is a copyright holder who authorizes use under this\nLicense of the Program or a work on which the Program is based.  The\nwork thus licensed is called the contributor's \"contributor version\".\n\n  A contributor's \"essential patent claims\" are all patent claims\nowned or controlled by the contributor, whether already acquired or\nhereafter acquired, that would be infringed by some manner, permitted\nby this License, of making, using, or selling its contributor version,\nbut do not include claims that would be infringed only as a\nconsequence of further modification of the contributor version.  For\npurposes of this definition, \"control\" includes the right to grant\npatent sublicenses in a manner consistent with the requirements of\nthis License.\n\n  Each contributor grants you a non-exclusive, worldwide, royalty-free\npatent license under the contributor's essential patent claims, to\nmake, use, sell, offer for sale, import and otherwise run, modify and\npropagate the contents of its contributor version.\n\n  In the following three paragraphs, a \"patent license\" is any express\nagreement or commitment, however denominated, not to enforce a patent\n(such as an express permission to practice a patent or covenant not to\nsue for patent infringement).  To \"grant\" such a patent license to a\nparty means to make such an agreement or commitment not to enforce a\npatent against the party.\n\n  If you convey a covered work, knowingly relying on a patent license,\nand the Corresponding Source of the work is not available for anyone\nto copy, free of charge and under the terms of this License, through a\npublicly available network server or other readily accessible means,\nthen you must either (1) cause the Corresponding Source to be so\navailable, or (2) arrange to deprive yourself of the benefit of the\npatent license for this particular work, or (3) arrange, in a manner\nconsistent with the requirements of this License, to extend the patent\nlicense to downstream recipients.  \"Knowingly relying\" means you have\nactual knowledge that, but for the patent license, your conveying the\ncovered work in a country, or your recipient's use of the covered work\nin a country, would infringe one or more identifiable patents in that\ncountry that you have reason to believe are valid.\n\n  If, pursuant to or in connection with a single transaction or\narrangement, you convey, or propagate by procuring conveyance of, a\ncovered work, and grant a patent license to some of the parties\nreceiving the covered work authorizing them to use, propagate, modify\nor convey a specific copy of the covered work, then the patent license\nyou grant is automatically extended to all recipients of the covered\nwork and works based on it.\n\n  A patent license is \"discriminatory\" if it does not include within\nthe scope of its coverage, prohibits the exercise of, or is\nconditioned on the non-exercise of one or more of the rights that are\nspecifically granted under this License.  You may not convey a covered\nwork if you are a party to an arrangement with a third party that is\nin the business of distributing software, under which you make payment\nto the third party based on the extent of your activity of conveying\nthe work, and under which the third party grants, to any of the\nparties who would receive the covered work from you, a discriminatory\npatent license (a) in connection with copies of the covered work\nconveyed by you (or copies made from those copies), or (b) primarily\nfor and in connection with specific products or compilations that\ncontain the covered work, unless you entered into that arrangement,\nor that patent license was granted, prior to 28 March 2007.\n\n  Nothing in this License shall be construed as excluding or limiting\nany implied license or other defenses to infringement that may\notherwise be available to you under applicable patent law.\n\n  12. No Surrender of Others' Freedom.\n\n  If conditions are imposed on you (whether by court order, agreement or\notherwise) that contradict the conditions of this License, they do not\nexcuse you from the conditions of this License.  If you cannot convey a\ncovered work so as to satisfy simultaneously your obligations under this\nLicense and any other pertinent obligations, then as a consequence you may\nnot convey it at all.  For example, if you agree to terms that obligate you\nto collect a royalty for further conveying from those to whom you convey\nthe Program, the only way you could satisfy both those terms and this\nLicense would be to refrain entirely from conveying the Program.\n\n  13. Remote Network Interaction; Use with the GNU General Public License.\n\n  Notwithstanding any other provision of this License, if you modify the\nProgram, your modified version must prominently offer all users\ninteracting with it remotely through a computer network (if your version\nsupports such interaction) an opportunity to receive the Corresponding\nSource of your version by providing access to the Corresponding Source\nfrom a network server at no charge, through some standard or customary\nmeans of facilitating copying of software.  This Corresponding Source\nshall include the Corresponding Source for any work covered by version 3\nof the GNU General Public License that is incorporated pursuant to the\nfollowing paragraph.\n\n  Notwithstanding any other provision of this License, you have\npermission to link or combine any covered work with a work licensed\nunder version 3 of the GNU General Public License into a single\ncombined work, and to convey the resulting work.  The terms of this\nLicense will continue to apply to the part which is the covered work,\nbut the work with which it is combined will remain governed by version\n3 of the GNU General Public License.\n\n  14. Revised Versions of this License.\n\n  The Free Software Foundation may publish revised and/or new versions of\nthe GNU Affero General Public License from time to time.  Such new versions\nwill be similar in spirit to the present version, but may differ in detail to\naddress new problems or concerns.\n\n  Each version is given a distinguishing version number.  If the\nProgram specifies that a certain numbered version of the GNU Affero General\nPublic License \"or any later version\" applies to it, you have the\noption of following the terms and conditions either of that numbered\nversion or of any later version published by the Free Software\nFoundation.  If the Program does not specify a version number of the\nGNU Affero General Public License, you may choose any version ever published\nby the Free Software Foundation.\n\n  If the Program specifies that a proxy can decide which future\nversions of the GNU Affero General Public License can be used, that proxy's\npublic statement of acceptance of a version permanently authorizes you\nto choose that version for the Program.\n\n  Later license versions may give you additional or different\npermissions.  However, no additional obligations are imposed on any\nauthor or copyright holder as a result of your choosing to follow a\nlater version.\n\n  15. Disclaimer of Warranty.\n\n  THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY\nAPPLICABLE LAW.  EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT\nHOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM \"AS IS\" WITHOUT WARRANTY\nOF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,\nTHE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\nPURPOSE.  THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM\nIS WITH YOU.  SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF\nALL NECESSARY SERVICING, REPAIR OR CORRECTION.\n\n  16. Limitation of Liability.\n\n  IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING\nWILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS\nTHE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY\nGENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE\nUSE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF\nDATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD\nPARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),\nEVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF\nSUCH DAMAGES.\n\n  17. Interpretation of Sections 15 and 16.\n\n  If the disclaimer of warranty and limitation of liability provided\nabove cannot be given local legal effect according to their terms,\nreviewing courts shall apply local law that most closely approximates\nan absolute waiver of all civil liability in connection with the\nProgram, unless a warranty or assumption of liability accompanies a\ncopy of the Program in return for a fee.\n\n                     END OF TERMS AND CONDITIONS\n\n            How to Apply These Terms to Your New Programs\n\n  If you develop a new program, and you want it to be of the greatest\npossible use to the public, the best way to achieve this is to make it\nfree software which everyone can redistribute and change under these terms.\n\n  To do so, attach the following notices to the program.  It is safest\nto attach them to the start of each source file to most effectively\nstate the exclusion of warranty; and each file should have at least\nthe \"copyright\" line and a pointer to where the full notice is found.\n\n    <one line to give the program's name and a brief idea of what it does.>\n    Copyright (C) <year>  <name of author>\n\n    This program is free software: you can redistribute it and/or modify\n    it under the terms of the GNU Affero General Public License as published\n    by the Free Software Foundation, either version 3 of the License, or\n    (at your option) any later version.\n\n    This program is distributed in the hope that it will be useful,\n    but WITHOUT ANY WARRANTY; without even the implied warranty of\n    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n    GNU Affero General Public License for more details.\n\n    You should have received a copy of the GNU Affero General Public License\n    along with this program.  If not, see <https://www.gnu.org/licenses/>.\n\nAlso add information on how to contact you by electronic and paper mail.\n\n  If your software can interact with users remotely through a computer\nnetwork, you should also make sure that it provides a way for users to\nget its source.  For example, if your program is a web application, its\ninterface could display a \"Source\" link that leads users to an archive\nof the code.  There are many ways you could offer source, and different\nsolutions will be better for different programs; see section 13 for the\nspecific requirements.\n\n  You should also get your employer (if you work as a programmer) or school,\nif any, to sign a \"copyright disclaimer\" for the program, if necessary.\nFor more information on this, and how to apply and follow the GNU AGPL, see\n<https://www.gnu.org/licenses/>.\n"
  },
  {
    "path": "Protobuf/Bag_100.proto",
    "content": "syntax = \"proto3\";\npackage Bag;\noption module = 100;\n\nmessage BagItem\n{\n  int32 ItemId = 1; // 道具id\n  int64 Count = 2; // 道具数量\n}\n\n// 请求背包数据\nmessage ReqBagInfo\n{\n}\n\n// 返回背包数据\nmessage RespBagInfo\n{\n  map<int32, int64> ItemDic = 1;\n}\n\nmessage NotifyBagItem\n{\n  int32 ItemId = 1; // 道具id\n  int64 Count = 2; // 最终道具数量\n  int64 Value = 3; // 变化的值\n}\n\n// 通知背包数据变化\nmessage NotifyBagInfoChanged\n{\n  map<int32, NotifyBagItem> ItemDic = 1; // 变化的道具，key:道具id，value:数量\n}\n\n// 请求合成宠物\nmessage ReqComposePet\n{\n  int32 FragmentId = 1; // 碎片id\n}\n\n// 返回合成宠物\nmessage RespComposePet\n{\n  int32 PetId = 1; // 合成宠物的Id\n}\n\n// 请求使用道具\nmessage ReqUseItem\n{\n  int32 ItemId = 1; // 道具id\n  int64 Count = 2; // 道具数量\n}\n\n// 请求使用道具\nmessage RespUseItem\n{\n  int32 ItemId = 1; // 道具id\n  int64 Count = 2; // 道具数量\n}\n\n// 丢弃物品请求\nmessage ReqDiscardItem {\n  int32 ItemId = 1; // 道具id\n  int64 Count = 2; // 道具数量\n}\n// 丢弃物品返回\nmessage RespDiscardItem {\n  int32 ItemId = 1; // 道具id\n  int64 Count = 2; // 道具数量\n}\n\n// 出售道具\nmessage ReqSellItem\n{\n  int32 ItemId = 1; // 道具id\n}\n\n// 出售道具\nmessage RespItemChange\n{\n  map<int64, int64> ItemDic = 1; // 变化的道具\n}\n\n// 增加道具\nmessage ReqAddItem{\n  map<int32, int64> ItemDic = 1;\n}\n// 增加道具返回\nmessage RespAddItem{\n  map<int32, int64> ItemDic = 1; // 变化的道具\n}\n// 减少道具\nmessage ReqRemoveItem{\n  map<int32, int64> ItemDic = 1;\n}\n// 减少道具返回\nmessage RespRemoveItem{\n  map<int32, int64> ItemDic = 1; // 变化的道具\n}\n"
  },
  {
    "path": "Protobuf/Basic_10.proto",
    "content": "syntax = \"proto3\";\r\npackage Basic;\r\noption module = 10;\r\n// 请求心跳\r\nmessage ReqHeartBeat\r\n{\r\n  int64 Timestamp = 1; // 时间戳\r\n}\r\n// 服务器通知心跳结果，因为有些业务需要对心跳结果做处理所以不做成RPC的方式处理\r\nmessage NotifyHeartBeat\r\n{\r\n  int64 Timestamp = 1; // 时间戳\r\n}\r\n\r\n// 通知客户端服务器人数已达上限\r\nmessage NotifyServerFullyLoaded\r\n{\r\n  \r\n}"
  },
  {
    "path": "Protobuf/Common_20.proto",
    "content": "syntax = \"proto3\";\npackage Common;\noption module = 20;\n// 返回码\nenum ResultCode\n{\n  Success = 0; //成功\n  Failed = 1; //失败\n}\n\nenum PhoneType\n{\n  Mobile = 0; // 手机\n  Home = 1;\n  Work = 2; // 工作号码\n}\n\n\nmessage PhoneNumber\n{\n  string Number = 1;\n  PhoneType Type = 2;\n}\n\nmessage Person\n{\n  string Name = 1;\n  int32 Id = 2;  // Unique ID number for this person.\n  string Email = 3;\n  repeated PhoneNumber Phones = 4;\n}\n\n\n// Our address book file is just one of these.\nmessage AddressBook\n{\n  repeated Person People = 1;\n}\n\n// 操作错误代码\nenum OperationStatusCode\n{\n  Ok = 0;// 成功\n  ConfigErr = 1;// 配置表错误\n  ParamErr = 2;// 客户端传递参数错误\n  CostNotEnough = 3;// 消耗不足\n  Forbidden = 4;// 未开通服务\n  NotFound = 5;// 不存在\n  HasExist = 6;// 已经存在\n  AccountCannotBeNull = 7;// 账号不存在或为空\n  Unprocessable = 8;// 无法执行数据库修改\n  UnknownPlatform = 9;// 未知平台\n  Notice = 10;// 正常通知\n  FuncNotOpen = 11;// 功能未开启，主消息屏蔽\n  Other = 12;// 其他\n  InternalServerError = 13; // 内部服务错误\n  ServerFullyLoaded = 14; // 通知客户端服务器人数已达上限\n}"
  },
  {
    "path": "Protobuf/Inner_Basic_2.proto",
    "content": "syntax = \"proto3\";\r\npackage Inner_Basic;\r\noption module = 2;"
  },
  {
    "path": "Protobuf/Proto2CsExport-All.bat",
    "content": "@echo off\nstart Proto2CsExport_Client.bat\nstart Proto2CsExport_Server.bat\n"
  },
  {
    "path": "Protobuf/Proto2CsExport_Client.bat",
    "content": "cd /d ../Tools/ProtoExport\\bin\\Debug\\net8.0\ncall dotnet ProtoExport.dll --mode unity --inputPath ./../../../../../Protobuf --outputPath ./../../../../../Unity/Assets/Hotfix/Proto --namespaceName Hotfix.Proto --isGenerateErrorCode true\n\npause"
  },
  {
    "path": "Protobuf/Proto2CsExport_Client.sh",
    "content": "#!/bin/bash\n\n# 切换目录，-P 选项是用来处理符号链接的\ncd -P ../Tools/ProtoExport/bin/Debug/net8.0\n\n# 启动应用程序，& 表示在后台运行\ndotnet ProtoExport.dll --mode unity --inputPath ./../../../../../Protobuf --outputPath ./../../../../../Unity/Assets/Hotfix/Proto --namespaceName Hotfix.Proto --isGenerateErrorCode true &\n\n# 暂停，等待用户按任意键继续，由于 shell 环境没有直接的 pause 命令，使用 read 模拟\nread -p \"Press any key to continue . . . \" -n1 -s\n\necho \"\"  # 输出一个新行"
  },
  {
    "path": "Protobuf/Proto2CsExport_Server.bat",
    "content": "cd /d ../Tools/ProtoExport\\bin\\Debug\\net8.0\ncall dotnet ProtoExport.dll --mode server --inputPath ./../../../../../Protobuf --outputPath ./../../../../../Server/GameFrameX.Proto/Proto --namespaceName GameFrameX.Proto.Proto --isGenerateErrorCode true\n\npause"
  },
  {
    "path": "Protobuf/Proto2CsExport_Server.sh",
    "content": "#!/bin/bash\n\n# 切换目录，-P 选项是用来处理符号链接的\ncd -P ../Tools/ProtoExport/bin/Debug/net8.0\n\n# 启动应用程序，并将其放入后台执行\ndotnet ProtoExport.dll --mode server --inputPath ./../../../../../Protobuf --outputPath ./../../../../../Server/GameFrameX.Proto/Proto --namespaceName GameFrameX.Proto.Proto --isGenerateErrorCode true &\n\n# 输出提示信息\necho \"Press any key to continue . . .\"\n\n# 等待用户按下任意键\nread -n 1 -s -r -p \"\""
  },
  {
    "path": "Protobuf/User_300.proto",
    "content": "syntax = \"proto3\";\npackage User;\noption module = 300;\n// 请求账号登录\nmessage ReqLogin\n{\n  string UserName = 1;\n  string Platform = 2;\n  int32 SdkType = 3;\n  string SdkToken = 4;\n  string Device = 5;\n  string Password = 6; // 密码\n}\n\n// 请求账号登录返回\nmessage RespLogin\n{\n  int32 Code = 1;\n  string RoleName = 2; // 账号名\n  int64 Id = 3; // 账号ID\n  uint32 Level = 4; // 账号等级\n  int64 CreateTime = 5; // 创建时间\n}\n\n// 请求角色创建\nmessage ReqPlayerCreate\n{\n  int64 Id = 1; // 账号ID  \n  string Name = 2; // 角色名\n}\n\n// 请求角色创建返回\nmessage RespPlayerCreate\n{\n   PlayerInfo PlayerInfo = 1; // 角色信息\n}\n\n// 请求角色列表\nmessage ReqPlayerList\n{\n  int64 Id = 1; // 账号ID\n}\n// 请求角色列表返回\nmessage RespPlayerList\n{\n  repeated PlayerInfo PlayerList = 1; // 角色列表\n}\n\nmessage PlayerInfo\n{\n  int64 Id = 1; // 角色ID\n  string Name = 2; // 角色名\n  uint32 Level = 3; // 角色等级\n  int32 State = 4; // 角色状态\n  uint32 Avatar = 5; // 角色头像\n  uint64 CurrentExp = 6; // 角色当前经验\n}\n\n\n// 请求玩家登录\nmessage ReqPlayerLogin\n{\n  int64 Id = 1; // 角色ID\n}\n\n// 请求玩家登录返回\nmessage RespPlayerLogin\n{\n  int32 Code = 1;\n  int64 CreateTime = 2; // 创建时间  \n  PlayerInfo PlayerInfo = 3; // 角色信息\n}\n\n// 客户端每次请求都会回复错误码\nmessage RespErrorCode\n{\n  int64 ErrCode = 1; // 0:表示无错误\n  string Desc = 2; // 错误描述（不为0时有效）\n}\n\nmessage RespPrompt\n{\n  int32 Type = 1; // 提示信息类型（1Tip提示，2跑马灯，3插队跑马灯，4弹窗，5弹窗回到登陆，6弹窗退出游戏）\n  string Content = 2; // 提示内容\n}"
  },
  {
    "path": "Protobuf/_-120_InnerSocial_s.proto",
    "content": "syntax = \"proto3\";\npackage InnerSocial;\noption module = -120;\n\n// 请求添加好友\nmessage ReqInnerFriendByAdd\n{\n  int64 PlayerId = 1; // 玩家ID\n}\n// 响应添加好友\nmessage RespInnerFriendByAdd\n{\n  bool Success = 1; // 是否成功\n}\nmessage InnerFriendInfo\n{\n int64 PlayerId = 1; // 玩家ID\n string PlayerName = 2; // 玩家名称\n}\n// 请求删除好友\nmessage ReqInnerFriendByDelete\n{\n  int64 PlayerId = 1; // 玩家ID\n}\n// 响应删除好友\nmessage RespInnerFriendByDelete\n{\n  bool Success = 1; // 是否成功\n}\n// 请求好友列表\nmessage ReqInnerFriendList\n{\n  int64 PlayerId = 1; // 玩家ID\n}\n// 响应好友列表\nmessage RespInnerFriendList\n{\n  repeated FriendInfo Friends = 1; // 好友列表\n}\n"
  },
  {
    "path": "Protobuf/_120_Social.proto",
    "content": "syntax = \"proto3\";\npackage Social;\noption module = 120;\nmessage FriendInfo\n{\n int64 PlayerId = 1; // 玩家ID\n string PlayerName = 2; // 玩家名称 \n}\n// 请求社交信息\nmessage ReqSocialInfo\n{\n  \n}\n\n// 响应社交信息\nmessage RespSocialInfo\n{\n  \n}\n\n// 请求删除好友\nmessage ReqDeleteFriend\n{\n  int64 PlayerId = 1; // 玩家ID\n}\n// 响应删除好友\nmessage RespDeleteFriend\n{\n  bool Success = 1; // 是否成功\n}\n// 请求好友列表\nmessage ReqFriendList\n{\n  \n}\n// 响应好友列表\nmessage RespFriendList\n{\n  repeated FriendInfo Friends = 1; // 好友列表\n}\n\n// 请求添加好友\nmessage ReqFriendByAdd\n{\n  int64 PlayerId = 1; // 玩家ID\n}\n// 响应添加好友\nmessage RespFriendByAdd\n{\n  bool Success = 1; // 是否成功\n}\n"
  },
  {
    "path": "Protobuf/readme.txt",
    "content": "https://gameframex.doc.alianblank.com/protobuf/require"
  },
  {
    "path": "README.md",
    "content": "<div align=\"center\">\n    <a href=\"https://trendshift.io/repositories/7536\" target=\"_blank\"><img src=\"https://trendshift.io/api/badge/repositories/7536\" alt=\"GameFrameX%2FGameFrameX | Trendshift\" style=\"width: 250px; height: 55px;\" width=\"250\" height=\"55\"/></a>\n</div>\n\n这是开发分支\n\nGameFrameX是一款全面的集成式游戏开发框架，提供了从前端到后端的完整解决方案。该框架支持包括Unity、Cocos Creator、LayaBox、和Godot等多种主流游戏开发平台，确保开发者能够为不同的目标平台打造精美的游戏体验。\n\n此外，GameFrameX拥有多进程服务器的支持，并且集成了Docker的自动化构建和部署，大大简化了游戏发布和维护过程。无论是在客户端管理、运维管理、数据管理，还是游戏数据的具体运营方面，GameFrameX都提供了强有力的后台支持，使得监控、优化和更新游戏变得前所未有的简单。\n\n游戏团队通过GameFrameX能够实现资源的高效分配和管理，加快开发周期，降低运营成本，并且最终增强玩家的游戏体验。整合了先进的技术和易用的界面，GameFrameX为游戏开发和运营的各个环节提供了高效、灵活且可扩展的解决方案，让游戏从构想到上线，再到生命周期管理都成为一件轻松愉快的事情。\n\nGameFrameX不仅是一套综合性的游戏开发与运维框架，它也将数据管理和流程自动化提升至新的高度。该框架旨在通过使用MongoDB作为游戏数据库，提供了高性能、灵活的数据存储方案，这确保了大规模和复杂数据的快速读写能力，极大地增强了游戏的扩展性和稳定性。\n\n在数据表的导入方面，GameFrameX采用了LuBan工具，它自动化并优化了数据表的处理流程，极大提高了开发效率，并且保证了数据的准确性和一致性。\n\n为了满足后台管理的需求，GameFrameX选择了MySQL数据库，提供了一个稳固和可靠的后端管理系统。结合MongoDB和MySQL，GameFrameX在数据解决方案上实现了多样性和功能性的平衡，以满足不同场景下的业务需要。\n\n关于自动化构建和部署，GameFrameX通过支持Docker技术，让应用的打包、分发变得更加高效和标准化，确保了在不同环境下软件能够以同样的方式运行。此外，GameFrameX还整合了Codeup代码托管平台的自动构建系统，允许通过`tag`\n标签触发构建过程，进一步实现了代码变更的连贯性管理及自动化部署，减少了人工干预，提升了运维效率。\n\nGameFrameX为游戏开发者提供了一个强大的技术生态，将数据库管理、后台服务、自动化构建和部署融于一体，使游戏的开发、运营和维护实现流水线式高效协作，为开发者提供了无与伦比的便捷与保障。\n\n\n# 服务器（从 `geekserver` 修改而来.）\n\n    https://github.com/GameFrameX/GameFrameX.Server\n\n# 管理后台(部分源码已不开放)\n\n    https://github.com/GameFrameX/GameFrameX.Admin\n\n[`演示站点 https://game.admin.web.vue.alianblank.com`](https://game.admin.web.vue.alianblank.com/)\n\n# 工具集\n\n    https://github.com/GameFrameX/GameFrameX.Tools\n\n# 客户端\n\n## Unity\n\n    https://github.com/GameFrameX/GameFrameX.Unity\n\n## Laya Box\n\n    https://github.com/GameFrameX/GameFrameX.LayaBox\n\n## Cocos Creator\n\n    https://github.com/GameFrameX/GameFrameX.CocosCreator\n\n## Godot\n\n    https://github.com/GameFrameX/GameFrameX.Godot\n\n目录结构要求：由于项目基本上都是使用相对目录的方式。请不要乱放文件夹\n\n```\nGameFrameX/ 项目根目录.可以根据自己的项目修改\n├── Config/  # 配置表放置目录。使用的`LuBan` 导表方案 https://github.com/focus-creative-games/luban\n│ ├── Defines/ # LuBan 的常量定义配置文件目录\n│ ├── Excels/ # 核心配置表文件夹。所有的Excel配置文件存放目录\n│ └── luban.conf/ # Luban 配置文件。如需修改。请查阅LuBan文档.链接：https://github.com/focus-creative-games/luban\n├── docker/  # Docker本地运行目录\n├── Docs/ # 文档相关内容。目前是GeekServer的原始文档\n├── FairyGUIProject/ # FairyGUI 项目目录。如果不需要可删除。\n├── Protobuf/ # 前后端或后端之前的通讯协议定义文件。采用ProtoBuf 描述文件。\n├── Server/ # 游戏服务器解决方案文件夹。请从  https://github.com/AlianBlank/GameFrameX.Server  Clone 到此目录下\n│ ├── Server.XXX # 服务器文件夹开始\n│ ├── ... # 服务器解决方案文件夹列表\n│ └── Server.XXX # 服务器文件夹结束\n├── Laya/ # Laya客户端文件夹。请从  https://github.com/GameFrameX/GameFrameX.LayaBox  Clone 到此目录下\n├── CocosCreator/ # CocosCreator客户端文件夹。请从  https://github.com/GameFrameX/GameFrameX.CocosCreator  Clone 到此目录下\n├── Godot/ # Godot客户端文件夹。请从  https://github.com/GameFrameX/GameFrameX.Godot  Clone 到此目录下\n├── Unity/ # Unity客户端文件夹。请从  https://github.com/GameFrameX/GameFrameX.Unity  Clone 到此目录下\n│ ├── Assets/ # Unity客户端文件夹\n│ ├── Packages/ # Unity客户端文件夹\n│ ├── ProjectSettings/ # Unity项目设置文件夹\n│ └── UserSettings/ # Unity项目用户设置文件夹\n└── LICENSE # 许可证文件\n```\n\n# 开始使用\n\n1. 创建本地项目文件夹\n2. 开启`cmd`或`shell`,cd 到本地存放目录\n3. 执行以下命令\n\n    ```shell\n    git clone https://github.com/GameFrameX/GameFrameX.git\n    git clone https://github.com/GameFrameX/GameFrameX.Server.git ./GameFrameX/Server\n    git clone https://github.com/GameFrameX/GameFrameX.Tools.git ./GameFrameX/Tools\n    git clone https://github.com/GameFrameX/GameFrameX.Unity.git ./GameFrameX/Unity\n    \n    ```\n\n4. 打开`Tools`项目,编译一下。他目前是用来导出协议的\n5. 打开`Unity`项目和`Server`直接启动即可食用。\n\n# 交流方式(建议。需求。BUG)\n\n<!-- <div  align=\"center\">    \n\n<img src=\"images/wechat_group.png\" width = \"226\" height = \"290\" alt=\"\"/>\n\n<img src=\"images/qq_group.png\" width = \"226\" height = \"290\" alt=\"\"/>\n\n</div> -->\n\nQQ群：467608841\n\n# Doc (已经在写了,别催了!-_-!)\n\n`所有站点内容一致，不存在内容不一致的情况`\n\n文档地址 : https://gameframex.doc.alianblank.com\n\n备用文档地址 : https://gameframex-docs.pages.dev\n\n备用文档地址 : https://gameframex.doc.cloudflare.alianblank.com\n\n备用文档地址 : https://gameframex.doc.vercel.alianblank.com\n\n# 赞赏一下呗\n\n![wechat.jpg](Docs/imgs/wechat.jpg)\n\n# 使用案例\n\n| 游戏名称   | 链接地址                                       | 上线时间       |\n|:-------|:-------------------------------------------|------------|\n| 深夜的烧烤店 | [TapTap](https://www.taptap.cn/app/384964) | 2024-04-15 |\n\n# 贡献名单\n\n<!-- readme: contributors -start -->\n<table>\n\t<tbody>\n\t\t<tr>\n            <td align=\"center\">\n                <a href=\"https://github.com/AlianBlank\">\n                    <img src=\"https://avatars.githubusercontent.com/u/1950044?v=4\" width=\"100;\" alt=\"AlianBlank\"/>\n                    <br />\n                    <sub><b>Blank</b></sub>\n                </a>\n            </td>\n            <td align=\"center\">\n                <a href=\"https://github.com/blankalian\">\n                    <img src=\"https://avatars.githubusercontent.com/u/147848600?v=4\" width=\"100;\" alt=\"blankalian\"/>\n                    <br />\n                    <sub><b>blankalian</b></sub>\n                </a>\n            </td>\n            <td align=\"center\">\n                <a href=\"https://github.com/bambom\">\n                    <img src=\"https://avatars.githubusercontent.com/u/11567449?v=4\" width=\"100;\" alt=\"bambom\"/>\n                    <br />\n                    <sub><b>bambom</b></sub>\n                </a>\n            </td>\n            <td align=\"center\">\n                <a href=\"https://github.com/PlayerYF\">\n                    <img src=\"https://avatars.githubusercontent.com/u/56374327?v=4\" width=\"100;\" alt=\"PlayerYF\"/>\n                    <br />\n                    <sub><b>PlayerYF</b></sub>\n                </a>\n            </td>\n            <td align=\"center\">\n                <a href=\"https://github.com/baiwanziaaa\">\n                    <img src=\"https://avatars.githubusercontent.com/u/56676921?v=4\" width=\"100;\" alt=\"baiwanziaaa\"/>\n                    <br />\n                    <sub><b>Pilipala</b></sub>\n                </a>\n            </td>\n\t\t</tr>\n\t<tbody>\n</table>\n<!-- readme: contributors -end -->\n\n## Star History\n\n[![Star History Chart](https://api.star-history.com/svg?repos=AlianBlank/GameFrameX,AlianBlank/GameFrameX.Unity,AlianBlank/GameFrameX.Server,AlianBlank/GameFrameX.Admin&type=Date)](https://star-history.com/embed?secret=Z2hwX0l1VlJVYlE0RUhIZE9hS2pVZ21ISVozNFNNSUdETDMycmZEWQ==#GameFrameX/GameFrameX&GameFrameX/GameFrameX.Unity&GameFrameX/GameFrameX.Server&GameFrameX/GameFrameX.Admin&Date)\n\n# 免责声明\n\n所有插件均来自互联网.请各位使用时自行付费.如果以上插件涉及侵权.请发email.本人将移除.谢谢\n\n该项目不得用于当地法律不允许的使用范围.如果使用.本人或本组织将不承认和承担任何的法律责任和条款约束.\n\n技术本无罪,错的是滥用技术的人\n\n# 赞助商\n\n[RoutinAI](https://routin.ai/) 是一个企业级统一的 LLM API 网关，提供一个单一且类型安全的接口，访问来自 GPT、Claude 和 Gemini 系列的超过 100 个领先大语言模型（例如 gpt-5.4、claude-opus-4-6、gemini-3.1-pro-preview）等更多模型。它通过提供零延迟的边缘路由、无需改动代码即可无缝切换模型、统一计费，以及以支出上限和访问策略进行集中治理，消除了管理多个 AI 供应商的复杂性。\n"
  },
  {
    "path": "docker/mongo/docker-compose.yml",
    "content": "version: \"3.8\"\nservices:\n  mongodb:\n    image: mongo\n    container_name: mongodb\n    ports:\n      - 27017:27017\n    volumes:\n      - ./database:/data/db\n    environment:\n      - MONGO_INITDB_ROOT_USERNAME=admin\n      - MONGO_INITDB_ROOT_PASSWORD=admin\n  # mongo-express:\n  #   image: mongo-express\n  #   container_name: mongo-express\n  #   restart: always\n  #   ports:\n  #     - 8081:8081\n  #   environment:\n  #     - ME_CONFIG_MONGODB_ADMINUSERNAME=admin\n  #     - ME_CONFIG_MONGODB_ADMINPASSWORD=admin\n  #     - ME_CONFIG_MONGODB_SERVER=mongodb\n\nnetworks:\n  default:\n    name: mongodb_network\n"
  },
  {
    "path": "docker/redis/docker-compose.yml",
    "content": "version: '3'\nservices:\n  redis:\n    image: redis:6.0.1\n    container_name: redis\n    restart: always\n    ports:\n      - 6379:6379\n    volumes:\n      - ./apps/datadir:/data:rw\n      - ./apps/logs:/logs\n      - ./redis.conf:/usr/local/etc/redis/redis.conf:rw\n    command:\n      /bin/bash -c \"redis-server /usr/local/etc/redis/redis.conf \"\n    privileged: true # 使用该参数，container内的root拥有真正的root权限。否则，container内的root只是外部的一个普通用户权限\nnetworks:\n  default:\n    name: redis_network\n    # external: true\n"
  },
  {
    "path": "docker/redis/redis.conf",
    "content": "### 指定redis绑定的主机地址，注释掉这部分，使redis可以外部访问\n# bind 0.0.0.0\n### 设置外部网络连接redis服务，开启需配置bind ip或者设置访问密码，关闭此时外部网络可以直接访问\n# protected-mode no\n### 指定访问redis服务端的端口\nport 6379\n### 指定客户端连接redis服务器时，当闲置的时间为多少（如300）秒时关闭连接（0表示禁用）\ntimeout 0\n### 指定redis的最大内存。由于Redis 在启动时会把数据加载到内存中，当数据达到最大内存时，redis会自动把已经到期和即将到期的key值。所以可以根据需求调整自己的所需的最大内存\nmaxmemory 500mb\n### 900s内至少一次写操作则执行bgsave进行RDB持久化\nsave 900 1 \nsave 300 10\nsave 60 10000\n### 设置了maxmemory的选项，redis内存使用达到上限。可以通过设置LRU算法来删除部分key，释放空间。默认是按照过期时间的,如果set时候没有加上过期时间就会导致数据写满maxmemory\nmaxmemory-policy volatile-lru\n### 文件压缩\nrdbcompression yes\n### 文件名\ndbfilename dump.rdb\n### 文件目录\ndir /data\n### 开启redis持久化，默认为no\nappendonly yes\n### 持久化方式, always、everysec和no。\nappendfsync everysec\n### 给redis设置密码，不需要密码的话则注释\nrequirepass 12345678\n\n"
  }
]