diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c29e8cf --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +.vs +obj +bin diff --git a/MiraAPI.sln b/MiraAPI.sln new file mode 100644 index 0000000..56145e3 --- /dev/null +++ b/MiraAPI.sln @@ -0,0 +1,16 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MiraAPI", "MiraAPI\MiraAPI.csproj", "{11FBC798-BAF5-4EE5-9511-BE6DB0592F99}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {11FBC798-BAF5-4EE5-9511-BE6DB0592F99}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {11FBC798-BAF5-4EE5-9511-BE6DB0592F99}.Debug|Any CPU.Build.0 = Debug|Any CPU + {11FBC798-BAF5-4EE5-9511-BE6DB0592F99}.Release|Any CPU.ActiveCfg = Release|Any CPU + {11FBC798-BAF5-4EE5-9511-BE6DB0592F99}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection +EndGlobal diff --git a/MiraAPI/MiraAPI.csproj b/MiraAPI/MiraAPI.csproj new file mode 100644 index 0000000..bea5ef1 --- /dev/null +++ b/MiraAPI/MiraAPI.csproj @@ -0,0 +1,33 @@ + + + net6.0 + latest + embedded + + 1.0.0 + dev + Simple and easy to use Among Us modding API. + Angxl, XtraCube + + + + Steam + 2024.3.5 + + + + + + + + + + + compile; build; native; contentfiles; analyzers; buildtransitive + + + + + + + diff --git a/MiraAPI/MiraAPIPlugin.cs b/MiraAPI/MiraAPIPlugin.cs new file mode 100644 index 0000000..44fceac --- /dev/null +++ b/MiraAPI/MiraAPIPlugin.cs @@ -0,0 +1,22 @@ +using BepInEx; +using BepInEx.Unity.IL2CPP; +using HarmonyLib; +using Reactor; +using Reactor.Networking; +using Reactor.Networking.Attributes; + +namespace MiraAPI; + +[BepInAutoPlugin("dev.xtracube.launchpad", "MiraAPI")] +[BepInProcess("Among Us.exe")] +[BepInDependency(ReactorPlugin.Id)] +[ReactorModFlags(ModFlags.RequireOnAllClients)] +public partial class MiraAPIPlugin : BasePlugin +{ + public Harmony Harmony { get; } = new(Id); + + public override void Load() + { + Harmony.PatchAll(); + } +} diff --git a/nuget.config b/nuget.config new file mode 100644 index 0000000..3ee52a2 --- /dev/null +++ b/nuget.config @@ -0,0 +1,7 @@ + + + + + + +