<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://mindattic.com/wiki/docs/index.php?action=history&amp;feed=atom&amp;title=Unity.Multiplayer%2Farticles%2Fcase-study-cursory</id>
	<title>Unity.Multiplayer/articles/case-study-cursory - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://mindattic.com/wiki/docs/index.php?action=history&amp;feed=atom&amp;title=Unity.Multiplayer%2Farticles%2Fcase-study-cursory"/>
	<link rel="alternate" type="text/html" href="https://mindattic.com/wiki/docs/index.php?title=Unity.Multiplayer/articles/case-study-cursory&amp;action=history"/>
	<updated>2026-12-05T10:17:25Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.46.3</generator>
	<entry>
		<id>https://mindattic.com/wiki/docs/index.php?title=Unity.Multiplayer/articles/case-study-cursory&amp;diff=907&amp;oldid=prev</id>
		<title>Docs Sync: md2wiki: sync from MindAttic.Docs</title>
		<link rel="alternate" type="text/html" href="https://mindattic.com/wiki/docs/index.php?title=Unity.Multiplayer/articles/case-study-cursory&amp;diff=907&amp;oldid=prev"/>
		<updated>2026-11-29T20:36:33Z</updated>

		<summary type="html">&lt;p&gt;md2wiki: sync from MindAttic.Docs&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= Case study: Unity.Cursory =&lt;br /&gt;
&lt;br /&gt;
[[Unity.Cursory|Unity.Cursory]] is Cursory, the co-op physics puzzle, rebuilt in Unity 6 with a dedicated server and host multiplayer. Each player is a cursor on a rope; heavy blocks need several players pulling together to reach their pads. It is the first game built on the kit, and every piece of this library was promoted out of it or proved in it. This page walks through how Cursory uses each piece, with links to its files, so you can see the kit in a real game rather than the [[Unity.Multiplayer/articles/getting-started|template&amp;#039;s]] toy.&lt;br /&gt;
&lt;br /&gt;
Links below point at &amp;lt;code&amp;gt;main&amp;lt;/code&amp;gt; in [[Unity.Cursory|mindattic/Unity.Cursory]]. Paths are short for &amp;lt;code&amp;gt;Assets/Unity.Cursory/...&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== The manifest and the assemblies ==&lt;br /&gt;
&lt;br /&gt;
Cursory&amp;#039;s [https://github.com/mindattic/Unity.Cursory/blob/main/Packages/manifest.json Packages/manifest.json] holds the [[Unity.Multiplayer/articles/kit|kit]]&amp;#039;s three packages by &amp;lt;code&amp;gt;file:&amp;lt;/code&amp;gt; path, as siblings: &amp;lt;code&amp;gt;com.mindattic.unity.multiplayer&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;com.mindattic.components.unity&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;com.mindattic.unity.shared&amp;lt;/code&amp;gt;, with &amp;lt;code&amp;gt;com.unity.netcode.gameobjects&amp;lt;/code&amp;gt; under &amp;lt;code&amp;gt;testables&amp;lt;/code&amp;gt; for the test kit.&lt;br /&gt;
&lt;br /&gt;
Its code is split the way the library&amp;#039;s is:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Assembly&lt;br /&gt;
! What&lt;br /&gt;
! References&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/mindattic/Unity.Cursory/blob/main/Assets/Unity.Cursory/Core/Unity.Cursory.Core.asmdef Core/Unity.Cursory.Core.asmdef]&lt;br /&gt;
| Engine-free rules: levels, goals, circuits, rope geometry, vote kinds, the bot plan&lt;br /&gt;
| nothing (&amp;lt;code&amp;gt;noEngineReferences&amp;lt;/code&amp;gt;); &amp;lt;code&amp;gt;Tests/Core.Tests&amp;lt;/code&amp;gt; compiles the same files for plain &amp;lt;code&amp;gt;dotnet test&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/mindattic/Unity.Cursory/blob/main/Assets/Unity.Cursory/Runtime/Unity.Cursory.Runtime.asmdef Runtime/Unity.Cursory.Runtime.asmdef]&lt;br /&gt;
| Networking, physics, presentation, bots&lt;br /&gt;
| Core, &amp;lt;code&amp;gt;Unity.Multiplayer&amp;lt;/code&amp;gt; (and &amp;lt;code&amp;gt;.Core&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;.UI&amp;lt;/code&amp;gt;), Netcode, MindAttic Components, URP&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/mindattic/Unity.Cursory/tree/main/Assets/Unity.Cursory/Tests/PlayMode Tests/PlayMode]&lt;br /&gt;
| PlayMode suites&lt;br /&gt;
| Runtime, &amp;lt;code&amp;gt;Unity.Multiplayer.Testing&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;Unity.Multiplayer.UI.Testing&amp;lt;/code&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== One scene for players, the server and bots ==&lt;br /&gt;
&lt;br /&gt;
[https://github.com/mindattic/Unity.Cursory/blob/main/Assets/Unity.Cursory/Scenes/Main.unity Scenes/Main.unity] has one &amp;lt;code&amp;gt;NetworkManager&amp;lt;/code&amp;gt; GameObject holding &amp;lt;code&amp;gt;NetworkManager&amp;lt;/code&amp;gt;, Unity Transport, &amp;lt;strong&amp;gt;&amp;lt;code&amp;gt;NetBootstrap&amp;lt;/code&amp;gt;&amp;lt;/strong&amp;gt; (port 7777, tick rate 30, eight players, serve when headless, read the command line and the server package&amp;#039;s &amp;lt;code&amp;gt;server.json&amp;lt;/code&amp;gt;), Cursory&amp;#039;s &amp;lt;code&amp;gt;LevelServer&amp;lt;/code&amp;gt;, and &amp;lt;strong&amp;gt;&amp;lt;code&amp;gt;NetFrontEnd&amp;lt;/code&amp;gt;&amp;lt;/strong&amp;gt;. The same scene is the player&amp;#039;s game, the dedicated server (a headless or &amp;lt;code&amp;gt;-mode server&amp;lt;/code&amp;gt; launch serves by itself) and a bot (&amp;lt;code&amp;gt;-bot A&amp;lt;/code&amp;gt;). Nothing in Cursory decides which: &amp;lt;code&amp;gt;NetLaunch&amp;lt;/code&amp;gt; does.&lt;br /&gt;
&lt;br /&gt;
The scene was wired by the library&amp;#039;s &amp;lt;strong&amp;gt;Add Front End&amp;lt;/strong&amp;gt; wizard, called from Cursory&amp;#039;s own setup script ([https://github.com/mindattic/Unity.Cursory/blob/main/Assets/Unity.Cursory/Editor/ProjectSetup.cs Editor/ProjectSetup.cs], &amp;lt;code&amp;gt;NetFrontEndSetup.Run&amp;lt;/code&amp;gt;).&lt;br /&gt;
&lt;br /&gt;
== The server&amp;#039;s rules: &amp;lt;code&amp;gt;LevelServer&amp;lt;/code&amp;gt; ==&lt;br /&gt;
&lt;br /&gt;
[https://github.com/mindattic/Unity.Cursory/blob/main/Assets/Unity.Cursory/Runtime/Server/LevelServer.cs Runtime/Server/LevelServer.cs] sits beside the &amp;lt;code&amp;gt;NetBootstrap&amp;lt;/code&amp;gt; with &amp;lt;code&amp;gt;[DefaultExecutionOrder(-1000)]&amp;lt;/code&amp;gt;, so it registers its network prefabs and the player prefab before the bootstrap starts a session. On &amp;lt;code&amp;gt;session.Started&amp;lt;/code&amp;gt;, and only when &amp;lt;code&amp;gt;session.IsServer&amp;lt;/code&amp;gt;, it loads the level, builds the physics world, binds the simulation to the session&amp;#039;s tick clock (&amp;lt;code&amp;gt;ITickClock&amp;lt;/code&amp;gt;), and spawns the level state, the vote board and the whistle board. &amp;lt;code&amp;gt;Serve(session)&amp;lt;/code&amp;gt; does the same for a test&amp;#039;s own session. The template&amp;#039;s &amp;lt;code&amp;gt;Arena.Serve&amp;lt;/code&amp;gt; is the same shape.&lt;br /&gt;
&lt;br /&gt;
This is the library&amp;#039;s one rule ([[Unity.Multiplayer/BIBLE#UM-LAW-1 — The server owns state|UM-LAW-1]]) in practice: the server owns the game state, and clients send what they want to happen.&lt;br /&gt;
&lt;br /&gt;
== Networked entities and attributes ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Class&lt;br /&gt;
! Attributes&lt;br /&gt;
! What&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/mindattic/Unity.Cursory/blob/main/Assets/Unity.Cursory/Runtime/Net/CursorAvatar.cs Runtime/Net/CursorAvatar.cs] (the player prefab)&lt;br /&gt;
| &amp;lt;code&amp;gt;[ToServer(Delivery = Unreliable, RateLimit = 30)] Move&amp;lt;/code&amp;gt;; &amp;lt;code&amp;gt;[ToServer]&amp;lt;/code&amp;gt; &amp;lt;code&amp;gt;Grab&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;GrabShape&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;GrabWall&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;GrabWireEnd&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;Release&amp;lt;/code&amp;gt;, settings toggles; &amp;lt;code&amp;gt;[ToOwner] ReceiveGeometry&amp;lt;/code&amp;gt;; &amp;lt;code&amp;gt;[Synced]&amp;lt;/code&amp;gt; position, seat, rope&lt;br /&gt;
| The cursor: input up, rope state down&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/mindattic/Unity.Cursory/blob/main/Assets/Unity.Cursory/Runtime/Levels/LevelStateSync.cs Runtime/Levels/LevelStateSync.cs]&lt;br /&gt;
| &amp;lt;code&amp;gt;[Synced(OnChanged = ...)]&amp;lt;/code&amp;gt; level number, solved goals, bulb, &amp;lt;code&amp;gt;LevelSolved&amp;lt;/code&amp;gt;; &amp;lt;code&amp;gt;[ToClients] WiresMoved&amp;lt;/code&amp;gt;; &amp;lt;code&amp;gt;[ToClient] WiresFor&amp;lt;/code&amp;gt;; &amp;lt;code&amp;gt;[ToServer(RequireOwnership = false, RateLimit = 2)] RequestWires&amp;lt;/code&amp;gt;&lt;br /&gt;
| The level&amp;#039;s progress, every direction of RPC in one class&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/mindattic/Unity.Cursory/blob/main/Assets/Unity.Cursory/Runtime/Whistles/WhistleBoard.cs Runtime/Whistles/WhistleBoard.cs]&lt;br /&gt;
| &amp;lt;code&amp;gt;[ToServer(RequireOwnership = false, RateLimit = 8)] Whistle&amp;lt;/code&amp;gt; (with the &amp;lt;code&amp;gt;NetSender&amp;lt;/code&amp;gt;), &amp;lt;code&amp;gt;[ToClients] BroadcastWhistle&amp;lt;/code&amp;gt;&lt;br /&gt;
| A server-wide object any player calls&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
See [[Unity.Multiplayer/articles/attributes|Attributes reference]] for every option used here.&lt;br /&gt;
&lt;br /&gt;
== Players: names and colours from the roster ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;CursorAvatar&amp;lt;/code&amp;gt; keeps only its owner&amp;#039;s seat as a &amp;lt;code&amp;gt;[Synced]&amp;lt;/code&amp;gt; field ([https://github.com/mindattic/Unity.Cursory/blob/main/Assets/Unity.Cursory/Runtime/Net/CursorAvatar.Identity.cs CursorAvatar.Identity.cs]). Its name and colour come from &amp;lt;code&amp;gt;session.Roster.TryGetBySeat(seat)&amp;lt;/code&amp;gt;, falling back to &amp;lt;code&amp;gt;PlayerColors.ForSeat&amp;lt;/code&amp;gt;. The cursor, its rope ([https://github.com/mindattic/Unity.Cursory/blob/main/Assets/Unity.Cursory/Runtime/Presentation/TetherRenderer.cs TetherRenderer.cs]), its name tag, its minimap dot, its whistle ripples and the lobby all follow a mid-game rename with no Cursory code copying names around. The name and colour start in the player&amp;#039;s Unity.Shared profile, through the front end&amp;#039;s &amp;lt;code&amp;gt;ProfileIdentitySource&amp;lt;/code&amp;gt;; Cursory never touches Unity.Shared itself. See [[Unity.Multiplayer/articles/players|Players]].&lt;br /&gt;
&lt;br /&gt;
== Menus: the drop-in front end ==&lt;br /&gt;
&lt;br /&gt;
Cursory has no menu code. &amp;lt;code&amp;gt;NetFrontEnd&amp;lt;/code&amp;gt; gives it the main menu, Join by IP and by code, the lobby with the code and roster, connection dialogs, reconnect and the Esc menu, styled by [https://github.com/mindattic/Unity.Cursory/blob/main/Assets/Unity.Cursory/Settings/FrontEndSettings.asset Settings/FrontEndSettings.asset] (title &amp;quot;Cursory&amp;quot;, five reconnect attempts). Its one hook is &amp;lt;code&amp;gt;AddPauseMenuItems&amp;lt;/code&amp;gt;, in [https://github.com/mindattic/Unity.Cursory/blob/main/Assets/Unity.Cursory/Runtime/Presentation/CursoryClient.cs Runtime/Presentation/CursoryClient.cs], which adds two MindAttic Components toggles from [https://github.com/mindattic/Unity.Cursory/blob/main/Assets/Unity.Cursory/Runtime/Presentation/PlayerSettingsItems.cs PlayerSettingsItems.cs]. The HUD shows itself while &amp;lt;code&amp;gt;frontEnd.State&amp;lt;/code&amp;gt; is &amp;lt;code&amp;gt;InGame&amp;lt;/code&amp;gt; and opens the front end&amp;#039;s pause menu from its own pause button. See [[Unity.Multiplayer/articles/front-end|Drop-in front end]].&lt;br /&gt;
&lt;br /&gt;
== The HUD: MindAttic Components ==&lt;br /&gt;
&lt;br /&gt;
[https://github.com/mindattic/Unity.Cursory/blob/main/Assets/Unity.Cursory/Runtime/Presentation/CursoryHud.cs Runtime/Presentation/CursoryHud.cs] is built from the same design system as the menus: an &amp;lt;code&amp;gt;MaCanvas&amp;lt;/code&amp;gt;, an &amp;lt;code&amp;gt;MaToolbar&amp;lt;/code&amp;gt; with an &amp;lt;code&amp;gt;MaSelect&amp;lt;/code&amp;gt; level picker, a Reset &amp;lt;code&amp;gt;MaButton&amp;lt;/code&amp;gt;, an &amp;lt;code&amp;gt;MaStatusPill&amp;lt;/code&amp;gt; for the connection and an &amp;lt;code&amp;gt;MaIconButton&amp;lt;/code&amp;gt; for pause, an &amp;lt;code&amp;gt;MaBanner&amp;lt;/code&amp;gt; for &amp;quot;Level 3&amp;quot;, and &amp;lt;code&amp;gt;MaToast&amp;lt;/code&amp;gt; when a level is solved. [https://github.com/mindattic/Unity.Cursory/blob/main/Assets/Unity.Cursory/Runtime/Presentation/MinimapView.cs MinimapView.cs] wraps &amp;lt;code&amp;gt;MaMinimap&amp;lt;/code&amp;gt;, which fits the level and pans the camera on a click. Because the menus, the vote overlay and the HUD share one theme, they read as one game.&lt;br /&gt;
&lt;br /&gt;
== Votes: reset and change level ==&lt;br /&gt;
&lt;br /&gt;
[https://github.com/mindattic/Unity.Cursory/blob/main/Assets/Unity.Cursory/Core/Levels/LevelVotes.cs Core/Levels/LevelVotes.cs] defines Cursory&amp;#039;s two kinds in engine-free code: &amp;lt;code&amp;gt;reset&amp;lt;/code&amp;gt; (&amp;quot;Reset the level?&amp;quot;) and &amp;lt;code&amp;gt;level&amp;lt;/code&amp;gt; (&amp;quot;Switch to Level N?&amp;quot;, with a &amp;lt;code&amp;gt;Check&amp;lt;/code&amp;gt; that the level exists). &amp;lt;code&amp;gt;LevelServer&amp;lt;/code&amp;gt; spawns the vote board with &amp;lt;code&amp;gt;VoteBoard.Spawn(session)&amp;lt;/code&amp;gt; and adds the two kinds (&amp;lt;code&amp;gt;AddVoteKinds&amp;lt;/code&amp;gt;); their &amp;lt;code&amp;gt;Passed&amp;lt;/code&amp;gt; effects reset or switch the level on the server. The HUD&amp;#039;s level picker and Reset button call &amp;lt;code&amp;gt;StartVote&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;VoteOverlay&amp;lt;/code&amp;gt; shows the question, tally and Yes / No. (A scene can do the same with the &amp;lt;code&amp;gt;NetVotes&amp;lt;/code&amp;gt; component, as the template does.) See [[Unity.Multiplayer/articles/votes|Votes]].&lt;br /&gt;
&lt;br /&gt;
== Networked objects by key ==&lt;br /&gt;
&lt;br /&gt;
Every block and shape in a level has an id in the level data. On the server, [https://github.com/mindattic/Unity.Cursory/blob/main/Assets/Unity.Cursory/Runtime/Net/NgoBodySync.cs Runtime/Net/NgoBodySync.cs] spawns each body with &amp;lt;code&amp;gt;session.Objects.Spawn(prefab, id, ...)&amp;lt;/code&amp;gt; from a prefab that carries a &amp;lt;code&amp;gt;NetKey&amp;lt;/code&amp;gt; (&amp;lt;code&amp;gt;NetworkedBody.prefab&amp;lt;/code&amp;gt;), and despawns them by key when a level resets or switches, so the same ids can be spawned again in the same tick. On a client, [https://github.com/mindattic/Unity.Cursory/blob/main/Assets/Unity.Cursory/Runtime/Presentation/ClientBodies.cs ClientBodies.cs] finds each block&amp;#039;s body with &amp;lt;code&amp;gt;objects.TryGet(id, out Transform body)&amp;lt;/code&amp;gt;. Late joiners and resets need no special case. See [[Unity.Multiplayer/articles/objects|Networked objects by key]].&lt;br /&gt;
&lt;br /&gt;
== Bots: two cursors solving level 2 ==&lt;br /&gt;
&lt;br /&gt;
[https://github.com/mindattic/Unity.Cursory/blob/main/Assets/Unity.Cursory/Runtime/Bots/CursoryBot.cs Runtime/Bots/CursoryBot.cs] is Cursory&amp;#039;s &amp;lt;code&amp;gt;[NetBotDriver]&amp;lt;/code&amp;gt; &amp;lt;code&amp;gt;IBotDriver&amp;lt;/code&amp;gt;: the only bot code it has. The library joins the bot by code, with no menus, and hands over the session. The driver waits for its cursor and the level&amp;#039;s geometry, looks the heavy block up by id in &amp;lt;code&amp;gt;NetSession.Objects&amp;lt;/code&amp;gt;, and plays its half of a plan from [https://github.com/mindattic/Unity.Cursory/blob/main/Assets/Unity.Cursory/Core/Bots/BotPlan.cs Core/Bots/BotPlan.cs]: role A grabs one end of the block, role B the other, and they pull it around a wall onto the pad. It passes on the server&amp;#039;s own synced &amp;lt;code&amp;gt;LevelSolved&amp;lt;/code&amp;gt;. &amp;lt;code&amp;gt;LevelServer&amp;lt;/code&amp;gt; reads &amp;lt;code&amp;gt;-scenario 2&amp;lt;/code&amp;gt; (&amp;lt;code&amp;gt;NetBots.Scenario&amp;lt;/code&amp;gt;) to start on level 2. See [[Unity.Multiplayer/articles/bots|Bots]].&lt;br /&gt;
&lt;br /&gt;
== Tests ==&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;strong&amp;gt;Plain &amp;lt;code&amp;gt;dotnet test&amp;lt;/code&amp;gt;&amp;lt;/strong&amp;gt;: [https://github.com/mindattic/Unity.Cursory/tree/main/Tests/Core.Tests Tests/Core.Tests] covers the engine-free Core: levels, goals, circuits, rope geometry, vote kinds, the bot plan, and solvability.&lt;br /&gt;
* &amp;lt;strong&amp;gt;PlayMode on the test kit&amp;lt;/strong&amp;gt;: [https://github.com/mindattic/Unity.Cursory/blob/main/Assets/Unity.Cursory/Tests/PlayMode/BotEndToEndTests.cs BotEndToEndTests.cs] is a &amp;lt;code&amp;gt;NetBotTest&amp;lt;/code&amp;gt;. It serves &amp;lt;code&amp;gt;LevelServer&amp;lt;/code&amp;gt; on the fixture&amp;#039;s server and runs two &amp;lt;code&amp;gt;CursoryBot&amp;lt;/code&amp;gt;s, which join by code through an in-process rendezvous service and solve level 2. [https://github.com/mindattic/Unity.Cursory/blob/main/Assets/Unity.Cursory/Tests/PlayMode/WhistleBoardTests.cs WhistleBoardTests.cs] is a &amp;lt;code&amp;gt;NetSessionTest&amp;lt;/code&amp;gt; (a host and two clients). [https://github.com/mindattic/Unity.Cursory/blob/main/Assets/Unity.Cursory/Tests/PlayMode/FrontEndTests.cs FrontEndTests.cs] drives Cursory&amp;#039;s real menus with &amp;lt;code&amp;gt;FrontEndTesting&amp;lt;/code&amp;gt; (Host, Join by code, a rename reaching the host&amp;#039;s cursor and lobby). See [[Unity.Multiplayer/articles/testing|Testing]].&lt;br /&gt;
&lt;br /&gt;
== Hosting and the nightly smoke ==&lt;br /&gt;
&lt;br /&gt;
Cursory has no build or deploy code of its own. [https://github.com/mindattic/Unity.Cursory/blob/main/mp-host.json mp-host.json] holds its defaults (&amp;lt;code&amp;gt;&amp;quot;name&amp;quot;: &amp;quot;cursory&amp;quot;&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;&amp;quot;image&amp;quot;: &amp;quot;mindattic/unity-cursory&amp;quot;&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;&amp;quot;bots&amp;quot;: &amp;quot;A,B&amp;quot;&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;&amp;quot;scenario&amp;quot;: &amp;quot;2&amp;quot;&amp;lt;/code&amp;gt;), and [https://github.com/mindattic/Unity.Cursory/blob/main/run.ps1 run.ps1] is a thin call to &amp;lt;code&amp;gt;mp-host game deploy &amp;amp;#124; local &amp;amp;#124; down --project .&amp;lt;/code&amp;gt;, kept so MindAttic&amp;#039;s &amp;lt;code&amp;gt;/deploy&amp;lt;/code&amp;gt; router finds it. &amp;lt;code&amp;gt;mp-host game&amp;lt;/code&amp;gt; finds the editor, builds the server package from &amp;lt;code&amp;gt;Main.unity&amp;lt;/code&amp;gt; with the library&amp;#039;s batch build, and deploys it. Credentials live in MindAttic.Vault. See Cursory&amp;#039;s [[Unity.Cursory/hosting|docs/hosting.md]] and [[Unity.Multiplayer/articles/hosting|Hosting]].&lt;br /&gt;
&lt;br /&gt;
Its [https://github.com/mindattic/Unity.Cursory/blob/main/.github/workflows/nightly.yml nightly workflow] runs the dotnet and PlayMode suites. Its end-to-end job is one &amp;lt;code&amp;gt;uses:&amp;lt;/code&amp;gt; of this library&amp;#039;s [[Unity.Multiplayer/articles/bots#The nightly workflow|game-smoke.yml]], with Cursory&amp;#039;s sibling repos listed. That job runs the Linux player as a dedicated server, the rendezvous service, and the two bots under Docker Compose until both log &amp;lt;code&amp;gt;OK:&amp;lt;/code&amp;gt;. Locally, &amp;lt;code&amp;gt;mp-host game smoke&amp;lt;/code&amp;gt; does the same.&lt;br /&gt;
&lt;br /&gt;
== What to copy ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! In your game&lt;br /&gt;
! Copy from Cursory&lt;br /&gt;
! Or start from&lt;br /&gt;
|-&lt;br /&gt;
| Server rules that start with the session&lt;br /&gt;
| &amp;lt;code&amp;gt;LevelServer&amp;lt;/code&amp;gt; (&amp;lt;code&amp;gt;Serve(session)&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;Started&amp;lt;/code&amp;gt; + &amp;lt;code&amp;gt;IsServer&amp;lt;/code&amp;gt;)&lt;br /&gt;
| the template&amp;#039;s &amp;lt;code&amp;gt;Arena.Serve&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| Engine-free rules tested with &amp;lt;code&amp;gt;dotnet test&amp;lt;/code&amp;gt;&lt;br /&gt;
| &amp;lt;code&amp;gt;Core/&amp;lt;/code&amp;gt; + &amp;lt;code&amp;gt;Tests/Core.Tests&amp;lt;/code&amp;gt;&lt;br /&gt;
| —&lt;br /&gt;
|-&lt;br /&gt;
| Names and colours everywhere&lt;br /&gt;
| &amp;lt;code&amp;gt;CursorAvatar.Identity.cs&amp;lt;/code&amp;gt; (seat → roster)&lt;br /&gt;
| the template&amp;#039;s &amp;lt;code&amp;gt;Player.DisplayName&amp;lt;/code&amp;gt; / &amp;lt;code&amp;gt;Color&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| Objects found by id&lt;br /&gt;
| &amp;lt;code&amp;gt;NgoBodySync&amp;lt;/code&amp;gt; + &amp;lt;code&amp;gt;ClientBodies&amp;lt;/code&amp;gt;&lt;br /&gt;
| the template&amp;#039;s crates&lt;br /&gt;
|-&lt;br /&gt;
| Votes with a payload and a check&lt;br /&gt;
| &amp;lt;code&amp;gt;LevelVotes&amp;lt;/code&amp;gt;&lt;br /&gt;
| the template&amp;#039;s restart vote&lt;br /&gt;
|-&lt;br /&gt;
| A bot with a real strategy&lt;br /&gt;
| &amp;lt;code&amp;gt;CursoryBot&amp;lt;/code&amp;gt; + &amp;lt;code&amp;gt;BotPlan&amp;lt;/code&amp;gt;&lt;br /&gt;
| the template&amp;#039;s &amp;lt;code&amp;gt;GameBot&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| An end-to-end test&lt;br /&gt;
| &amp;lt;code&amp;gt;BotEndToEndTests&amp;lt;/code&amp;gt;&lt;br /&gt;
| the template&amp;#039;s &amp;lt;code&amp;gt;BotTests&amp;lt;/code&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;md2wiki-crumb&amp;quot;&amp;gt;Part of [[Unity.Multiplayer]].&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;md2wiki-source&amp;quot;&amp;gt;From [https://github.com/mindattic/Unity.Multiplayer/blob/main/docs/articles/case-study-cursory.md Unity.Multiplayer/docs/articles/case-study-cursory.md] via MindAttic.Docs; synced automatically, so edit the repo, not this page.&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Unity.Multiplayer]]&lt;/div&gt;</summary>
		<author><name>Docs Sync</name></author>
	</entry>
</feed>