This is a tiny region API for Among Us all in one line. Requires C# 9
Usage:
- Create a new file called C.cs
- paste the C.cs file from this gist into it
- in your plugin load method, use
C.A("your region name", "your IP", {your port});
/*CC0*/using System.Linq;using S=ServerManager;[HarmonyLib.HarmonyPatch(typeof(S),"LoadServers")]class C{static System.Collections.Generic.List<IRegionInfo>R=S.DefaultRegions.ToList();static void Prefix()=>S.DefaultRegions=R.ToArray();public static void A(string N,string I,ushort P)=>R.Add(new DnsRegionInfo(I, N, (StringNames)1003, I, P).Duplicate());} |
Poggers