MimicAPI
MimicAPI is a modding library for Mimesis built on top of MelonLoader. It wraps the game's internal server-side types — which aren't directly accessible from mods — and exposes them through a clean, reflection-based API.
What's included
| API | What it does |
|---|---|
| CoreAPI | Access to Hub, VWorld, and VRoomManager |
| ManagerAPI | All game managers (DataManager, UIManager, etc.) |
| PlayerAPI | Local and remote players via ProtoActor |
| RoomAPI | Game rooms — waiting, maintenance, death match |
| ActorAPI | Server-side actors — players, monsters, loot objects |
| LootAPI | Loot objects in the Unity scene |
| ServerNetworkAPI | Sessions, connections, server state |
| ReflectionHelper | Low-level field/method access for anything not yet wrapped |
Why reflection?
Mimesis runs server logic in Assembly-CSharp using types like IVroom, VPlayer, and VActor. These types are not exposed to mods as typed references — MimicAPI uses reflection to reach them at runtime and returns them as object. This means you can use every API without needing game assembly stubs in your project.
Quick example
using MelonLoader;
using MimicAPI.GameAPI;
public class MyMod : MelonMod
{
public override void OnUpdate()
{
var room = RoomAPI.GetCurrentRoom();
if (room == null) return;
MelonLogger.Msg($"Room: {RoomAPI.GetRoomName(room)}");
MelonLogger.Msg($"Day: {RoomAPI.GetCurrentGameDay(room)}");
MelonLogger.Msg($"Players: {RoomAPI.GetRoomPlayers(room).Count}");
}
}
Ready to set up? Head to Getting Started.