[English] | 简体中文
This mod is not affiliated with Among Us or Innersloth LLC, and the content contained therein is not endorsed or otherwise sponsored by Innersloth LLC. Portions of the materials contained herein are property of Innersloth LLC. © Innersloth LLC.
ClazAU hard fork. Mira API was created by All-Of-Us-Mods, and all credit for it goes to them. This fork prioritises long-term stability over new features and carries changes made specifically for ClazAU's mods, so it may diverge from upstream and isn't guaranteed to stay compatible with it. We were already maintaining our own modified build to keep up with each Among Us release, and most new upstream features went unused in our projects. For the original project, its support and its releases, see All-Of-Us-Mods/MiraAPI.
A thorough, but simple, Among Us modding API and utility library that covers:
- Roles
- Options
- Modifiers
- Buttons
- Custom Colors
- Events
- Voting
- Assets
- Keybinds
- Local Settings
- Custom Game Over Conditions
- Compatibility
Game Modes(coming soon)
Mira API strives to be comprehensive, yet straightforward, while also using as many base game elements as possible. The result is a less intrusive, better modding API that covers general use cases.
Join the Discord for support and to stay updated on the latest releases
To start using Mira API, you need to:
- Add a reference to Mira API either through a DLL, project reference, or NuGet package.
- Add a BepInDependency on your plugin class like this:
[BepInDependency(MiraApiPlugin.Id)] - Implement the
IMiraPlugininterface on your plugin class.
Mira API also depends on Reactor to function properly!
Remember to include it as a reference and BepInDependency!
For a full example, see this file.
It is highly recommended to follow this project structure when using Mira API to keep your code clean and organized. You can also view the Example Mod in this repository for some guidance.
MyMiraMod/
├── Buttons/
│ └── MyCoolButton.cs
├── Options/
│ ├── Roles/
│ │ └── CoolCustomRoleOptions.cs
│ └── MainOptionGroup.cs
├── Patches/
│ ├── Roles/
│ │ └── CoolCustomRole/
│ │ ├── PlayerControlPatches.cs
│ │ └── ExileControllerPatches.cs
│ └── General/
│ └── HudManagerPatches.cs
├── Resources/
│ ├── CoolButton.png
│ └── myAssets-win-x86.bundle
├── Roles/
│ └── CoolCustomRole.cs
├── MyMiraModPlugin.cs
└── MyModAssets.cs
Full documentation for every Mira API feature is available on the wiki: