Skip to content

Add Region API + Lite version - #3

Open
Nb1X wants to merge 4 commits into
nightlyfrom
add-api
Open

Nb1X wants to merge 4 commits into
nightlyfrom
add-api

Conversation

@Nb1X

@Nb1X Nb1X commented Oct 7, 2026

Copy link
Copy Markdown
Owner

This PR adds an API to RegionInstaller.

Changes:

  • Added API for other mods to use
  • Added a Lite build without the API
  • Changed GitHub Actions workflow with Lite + Default build

@Nb1X
Nb1X requested a balanced review from Copilot October 7, 2026 19:35

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

API state is not consistently preserved, disabling behavior is unreliable, and Lite release packaging is incomplete.

6 open findings
What changed in this PR

Adds a public region-management API and a Lite build variant.

Changes:

  • Adds APIs for dynamic regions, DTLS control, and official-region disabling.
  • Introduces Default and Lite build configurations.
  • Updates region regeneration and CI artifact handling.
File Description
src/​ReloadButton.cs Integrates API filtering into manual refresh.
src/​RegionInstaller.csproj Defines Default/Lite outputs and DLL renaming.
src/​RegionInstaller.cs Adds variant naming and logging.
src/​RegionFileGenerator.cs Adds strict official-region filtering.
src/​Api/​RegionApi.cs Implements the region-management API.
.github/​workflows/​build.yml Builds and uploads both variants.

🧠 Review effort: Balanced


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

uses: softprops/action-gh-release@v2
with:
files: src/bin/Debug/net6.0/RegionInstaller.dll
files: src/bin/Default/net6.0/RegionInstaller.dll
Comment thread src/Api/RegionApi.cs
Comment on lines +67 to +68
forceDisableInnersloth = true;
TriggerRefresh();
Comment thread src/Api/RegionApi.cs
Comment on lines +115 to +116
string regionJsonPath = Path.Combine(Application.persistentDataPath, "regionInfo.json");
RegionFileGenerator.RegenerateRegionFile(regionJsonPath, configData, forceDisableInnersloth);
{
if (!reg.IsValid) continue;

if (ignoreInnerslothAndGlitch && InnerslothRegions.IsOfficialInnersloth(reg.Name))
Comment thread src/RegionInstaller.cs
public const string Version = "1.2.1";
#endif

public const string Version = "1.0.0";
Comment thread src/ReloadButton.cs

string regionJsonPath = Path.Combine(Application.persistentDataPath, "regionInfo.json");
RegionFileGenerator.RegenerateRegionFile(regionJsonPath, configData);
RegionFileGenerator.RegenerateRegionFile(regionJsonPath, configData, shouldDisableInnersloth);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants