Optional Unity multiplayer integration
The main IronPerimeter.Runtime assembly does not reference NGO, Unity Transport, Unity Services or Collections. It owns the SDK-independent MultiplayerRuntime boundary, room/protocol values, command admission and replica data used by gameplay. With no provider, Ensure() creates OfflineMultiplayerRuntime; it never connects, pauses the simulation or changes authority. Skirmish and campaign remain playable.
IronPerimeter.UnityMultiplayer is the optional adapter assembly. Its UnityMultiplayerRuntime implements the existing player-hosted transport, private rooms and automatic matchmaking. An AfterAssembliesLoaded callback registers its factory after the core's SubsystemRegistration reset. The integration does not initialize Unity Services or open a socket simply because it is installed. Cloud calls occur only after an explicit online action.
The assembly compiles when NGO >=2.0, Multiplayer Services >=2.0 and Transport >=2.0 are installed, using assembly version defines. The project was developed against NGO 2.13.3, Multiplayer Services 2.4.1 and their resolved Transport dependency; those are the validation target, not a claim that every later SDK is compatible. Core still requires its documented URP/Input System/AI Navigation/uGUI dependencies.
For an offline-only product, remove this Integrations/UnityMultiplayer folder from the release copy and remove the NGO/Multiplayer Services dependencies using Unity Package Manager. Do not remove the core Scripts/Multiplayer contract/data folder: it is deliberately SDK-free and used for authority guards and saved/replicated state. To restore networking, restore this folder with its metas, install the required SDKs through Package Manager, then restart Play mode. Never install or switch a provider during a running match.
Create and link your own Unity cloud project, enable the needed services, and deploy the supplied matchmaking queue configuration. An unlinked project can still use LAN. No account IDs or credentials are encoded in this adapter. See the customer multiplayer guide for queue deployment, costs, two-player/shared-army scope and validation limits.
MultiplayerRoomLifecycleTests lives in the optional integration test assembly because it opens a real local transport. SDK-independent protocol, order, UI and snapshot tests remain in the normal tests. OptionalMultiplayerTests checks the core assembly dependency boundary and safe fallback behavior. A passing compilation with this folder and SDK packages removed is a separate required release check.
To supply a different backend, derive from MultiplayerRuntime, claim/release its singleton from Awake/OnDestroy, implement the abstract session contract, and register one factory from AfterAssembliesLoaded. Keep MatchActive true for a disconnected replica until its battlefield unloads, and keep ReadyForSimulation false during that interval. Never let loss of transport turn a guest into an authoritative local simulation.