# wls0yd/arslope architecture

> Architecture diagram of the GitHub repository wls0yd/arslope, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-11). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/wls0yd/arslope
- Repository: https://github.com/wls0yd/arslope

## Overview

This repository describes an HoloLens AR racing game that turns recognized real-world objects into drivable tracks, supports hand interaction, and documents local multiplayer. Its README supplies the principal workflow, but the supplied tree and excerpts chiefly contain vendored MRTK code; no game-specific track-generation, vehicle, or Photon implementation was shown. The graph therefore separates documented product stages from the visible MRTK input and service foundations; README-backed links describe intended behavior, not verified calls between custom modules.

Main entry points: [`003 Code/Packages/com.microsoft.mixedreality.toolkit.foundation/Core/Definitions/SpatialAwareness`](https://github.com/wls0yd/arslope/tree/main/003%20Code/Packages/com.microsoft.mixedreality.toolkit.foundation/Core/Definitions/SpatialAwareness) (Spatial Awareness), [`003 Code/Packages/com.microsoft.mixedreality.toolkit.foundation/Core/Providers`](https://github.com/wls0yd/arslope/tree/main/003%20Code/Packages/com.microsoft.mixedreality.toolkit.foundation/Core/Providers) (Hand Input), [`003 Code/Packages/com.microsoft.mixedreality.toolkit.foundation/Core/Interfaces/InputSystem/IMixedRealityInputSystem.cs`](https://github.com/wls0yd/arslope/blob/main/003%20Code/Packages/com.microsoft.mixedreality.toolkit.foundation/Core/Interfaces/InputSystem/IMixedRealityInputSystem.cs) (Input Events), [`003 Code/Packages/com.microsoft.mixedreality.toolkit.foundation/Core/Utilities/CoreServices.cs`](https://github.com/wls0yd/arslope/blob/main/003%20Code/Packages/com.microsoft.mixedreality.toolkit.foundation/Core/Utilities/CoreServices.cs) (Service Access)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_game["AR Racing Game"]
  node_recognition["Object Recognition"]
  node_track["Track Generation"]
  node_driving["AR Driving"]
  node_multiplayer["Local Multiplayer"]
end

subgraph group_mrtk["MRTK Runtime"]
  node_spatial["Spatial Awareness<br/>[SpatialAwareness]"]
  node_handinput["Hand Input<br/>[Providers]"]
  node_inputsystem["Input Events"]
  node_serviceaccess["Service Access<br/>[CoreServices.cs]"]
end

subgraph group_integration["Device and Network"]
  node_hololens["HoloLens 2"]
  node_photon["Photon PUN"]
end

node_player(("Player"))

node_player -->|"scans space"| node_spatial
node_spatial -->|"provides mesh"| node_recognition
node_recognition -->|"guides generation"| node_track
node_track -->|"hosts racing"| node_driving
node_player -->|"controls by hand"| node_handinput
node_handinput -.->|"raises input events"| node_inputsystem
node_serviceaccess -->|"retrieves service"| node_inputsystem
node_hololens -->|"supplies spatial data"| node_spatial
node_player -->|"races together"| node_multiplayer
node_multiplayer -->|"uses networking"| node_photon
node_multiplayer -->|"synchronizes racing"| node_driving

click node_spatial "https://github.com/wls0yd/arslope/tree/main/003%20Code/Packages/com.microsoft.mixedreality.toolkit.foundation/Core/Definitions/SpatialAwareness"
click node_handinput "https://github.com/wls0yd/arslope/tree/main/003%20Code/Packages/com.microsoft.mixedreality.toolkit.foundation/Core/Providers"
click node_inputsystem "https://github.com/wls0yd/arslope/blob/main/003%20Code/Packages/com.microsoft.mixedreality.toolkit.foundation/Core/Interfaces/InputSystem/IMixedRealityInputSystem.cs"
click node_serviceaccess "https://github.com/wls0yd/arslope/blob/main/003%20Code/Packages/com.microsoft.mixedreality.toolkit.foundation/Core/Utilities/CoreServices.cs"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_recognition,node_track,node_driving,node_multiplayer toneBlue
class node_spatial,node_handinput,node_inputsystem,node_serviceaccess toneAmber
class node_hololens,node_photon toneMint
class node_player toneIndigo
```

## Components

### AR Racing Game

- **Object Recognition**
- **Track Generation**
- **AR Driving**
- **Local Multiplayer**

### MRTK Runtime

- [Spatial Awareness](https://github.com/wls0yd/arslope/tree/main/003%20Code/Packages/com.microsoft.mixedreality.toolkit.foundation/Core/Definitions/SpatialAwareness): `003 Code/Packages/com.microsoft.mixedreality.toolkit.foundation/Core/Definitions/SpatialAwareness`
- [Hand Input](https://github.com/wls0yd/arslope/tree/main/003%20Code/Packages/com.microsoft.mixedreality.toolkit.foundation/Core/Providers): `003 Code/Packages/com.microsoft.mixedreality.toolkit.foundation/Core/Providers`
- [Input Events](https://github.com/wls0yd/arslope/blob/main/003%20Code/Packages/com.microsoft.mixedreality.toolkit.foundation/Core/Interfaces/InputSystem/IMixedRealityInputSystem.cs): `003 Code/Packages/com.microsoft.mixedreality.toolkit.foundation/Core/Interfaces/InputSystem/IMixedRealityInputSystem.cs`
- [Service Access](https://github.com/wls0yd/arslope/blob/main/003%20Code/Packages/com.microsoft.mixedreality.toolkit.foundation/Core/Utilities/CoreServices.cs): `003 Code/Packages/com.microsoft.mixedreality.toolkit.foundation/Core/Utilities/CoreServices.cs`

### Device and Network

- **HoloLens 2**
- **Photon PUN**

### Other components

- **Player**

## Connections

- Player → Spatial Awareness: scans space
- Spatial Awareness → Object Recognition: provides mesh
- Object Recognition → Track Generation: guides generation
- Track Generation → AR Driving: hosts racing
- Player → Hand Input: controls by hand
- Hand Input → Input Events: raises input events (evidence: `003 Code/Packages/com.microsoft.mixedreality.toolkit.foundation/Core/Providers/BaseInputDeviceManager.cs`)
- Service Access → Input Events: retrieves service (evidence: `003 Code/Packages/com.microsoft.mixedreality.toolkit.foundation/Core/Utilities/CoreServices.cs`)
- HoloLens 2 → Spatial Awareness: supplies spatial data
- Player → Local Multiplayer: races together
- Local Multiplayer → Photon PUN: uses networking
- Local Multiplayer → AR Driving: synchronizes racing
