English | 简体中文
Equip AI-driven colonists with battlefield triage, autonomous construction, farming, and tactical emergency mechanisms.
RimMind-Actions translates high-level AI tactical and colony-building intents into robust, multi-step game actions called Composite Mechanisms. When facing sudden crises or executing long-running colony projects, colonists autonomously execute and poll composite workflows to completion.
- 11 Built-in Composite Tools:
- Emergency & Survival:
actions.stabilize_rest,actions.emergency_flee,actions.eat_and_recreation,actions.triage_patient,actions_manage_equipment - Construction & Spatial Query:
actions_place_blueprint,actions_plan_room_project,actions_query_buildable_structures - Production, Zones & Resources:
actions_designate_resources,actions_add_worktable_bill,actions_manage_zone
- Emergency & Survival:
ConstructionIntentChainer& Spatial Solver: Evaluates room topology, peer clustering, and interaction cells viaColonySpatialClusterSolver, then attaches continuousBlueprint_Build->Frameconstruction leases throughRimMindAPI.Agent.StartIntentSession.ActionPermissionGuard&ResourceSafetyGuard: Enforces active spawned colonist eligibility, tri-state autonomy permissions, stuffed and fixed material reserve checks, and concurrent blueprint caps before mutating map state.
In-game Mechanisms Registry & Autonomous Execution: Inspecting registered mechanisms while colonists autonomously place and build blueprints beside the colony lodge.
RimMind-Actions depends solely on the public API of RimMind-Core:
flowchart LR
Advisor["RimMind-Advisor / AI Planner"] -->|Issues Intent| Actions["RimMind-Actions"]
Actions -->|ActionPermissionGuard & ResourceSafetyGuard| Gate{"Safe & Valid?"}
Gate -- Yes --> Chainer["ConstructionIntentChainer & Verse Execution"]
Gate -- No --> Fallback["Return Structured RimMindError"]
Actions -->|Registered via Public API| Core["RimMind-Core ToolRegistry"]
Ensure RimMind-Core is loaded before RimMind-Actions:
1. Harmony
2. Core (Vanilla RimWorld)
3. RimMind-Core
4. RimMind-Actions
Run unit tests directly:
dotnet test RimMind-Actions/Tests/RimMindActions.Tests.csproj -c ReleaseLicensed under the MIT License.