feat: Add multiplayer networking architecture and documentation updates
- Updated Master Blueprint Index to include Multiplayer Networking support. - Added detailed Multiplayer Networking sections across all developer documentation (01-11). - Introduced authority maps, key patterns, and RPC guidelines for each system. - Established a comprehensive multiplayer networking architecture document outlining core principles, replication strategies, and anti-cheat considerations. - Enhanced UI documentation to clarify local-only behavior and binding to replicated dispatchers. - Implemented client prediction strategies and RPC naming conventions for consistency across the framework.
This commit is contained in:
@@ -241,4 +241,31 @@ Barricaded → (break) → Closed
|
||||
|
||||
---
|
||||
|
||||
## Multiplayer Networking
|
||||
|
||||
### Category Authority Map
|
||||
| System | Authority | Client Request Pattern |
|
||||
|--------|-----------|----------------------|
|
||||
| `BPC_InteractionDetector` | Detection runs locally; interaction validated by server | `Server_PerformInteraction` RPC |
|
||||
| `BP_DoorActor` | Server-authoritative state machine | `Server_Interact` → server validates → OnRep animates |
|
||||
| `BP_PuzzleDeviceActor` | Server-authoritative | `Server_TrySolution` RPC |
|
||||
| `BPC_ContextualTraversalSystem` | Client-predicted movement | Server validates traversal target |
|
||||
| `BPC_PhysicsDragSystem` | Client-predicted physics | Server periodically corrects position |
|
||||
| `BPC_UsableWorldObjectSystem` | Server-authoritative toggle/adjust | `Server_Use` RPC |
|
||||
|
||||
### Interaction Flow (Multiplayer)
|
||||
```
|
||||
Client looks at door → local trace detects it → shows "Press E"
|
||||
Client presses E → calls Server_Interact(DoorActor)
|
||||
Server: validates range, door state, lock
|
||||
→ If valid: door state changes → RepNotify broadcasts
|
||||
→ All clients: OnRep plays door animation
|
||||
→ If locked: server rejects, Client_ShowError RPC to requesting client
|
||||
```
|
||||
|
||||
### Full Spec
|
||||
See [`docs/architecture/multiplayer-networking.md`](../architecture/multiplayer-networking.md) Section 3.3.
|
||||
|
||||
---
|
||||
|
||||
*Developer Reference v1.0 — 03 Interaction Systems. Companion to docs/blueprints/03-interaction/ specs.*
|
||||
|
||||
Reference in New Issue
Block a user