S9SourceNine Labs / CMAPI Docs 1.0
CMAPI / API reference

API reference

Browse 59 documented public CMAPI types.

CMAPI 1.0.0Standalone runtimeWindows x64Tested with Planet Crafter 2.008

The public API is deliberately independent from Unity and Planet Crafter implementation assemblies. Normal mods reference only CMAPI.API.dll; keep CMAPI.API.xml beside it for editor descriptions.

Interfaces

IConsoleCommandContextDescribes one invocation of a registered console command.IConsoleCommandManagerRegisters console commands owned by the current mod.IEnvironmentManagerProvides safe current-planet environment information and actions.IGameLoopEventsProvides safe, main-thread game-loop events.IItemDefinitionDescribes one Planet Crafter inventory item.IItemManagerProvides item discovery and host-safe local-backpack mutations.IModEventsProvides the event groups exposed by CMAPI.IModHelperProvides the CMAPI services available to one mod.IModRegistryProvides safe feature and loaded-mod discovery.IModSchedulerQueues mod-owned work for safe execution on Unity's main thread.IModStorageProvides paths and JSON storage isolated to the current mod.IMonitorWrites messages attributed to the current mod.INotificationManagerShows short messages through Planet Crafter's native HUD.IPlanetDefinitionDescribes one installed Planet Crafter planet.IPlanetManagerProvides safe, read-only information about installed planets.IPlayerRepresents one player visible to the current Planet Crafter session.IPlayerEventsProvides normalized player lifecycle events.IPlayerInventoryManagerProvides read-only local backpack and equipment state.IPlayerManagerProvides read-only access to players in the active session.IPlayerPlacementManagerProvides host-safe, same-planet placement for the local player.IRecipeDefinitionDescribes one recipe defined by Planet Crafter.IRecipeIngredientDescribes one distinct ingredient and its required quantity.IRecipeManagerProvides read-only discovery of Planet Crafter recipes.IScheduledActionRepresents work queued through IModScheduler.ITerraTokenManagerProvides the shared Terra Token balance and host-safe additions.IUnlockDefinitionDescribes the live unlock state and rules for one game group.IUnlockManagerProvides read-only content unlock rules and live state.IWeatherEventDefinitionDescribes one weather or meteor event available on a planet.IWeatherManagerProvides current-planet weather discovery, status, and host-safe starts.IWorldEventsProvides loaded-world, planet, save, and weather lifecycle events.IWorldStateManagerProvides read-only terraformation values, rates, and stage progress.

Classes

Structures

Enumerations

Delegates