Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "TerraDrive",
"name": "VectorRoad",
"image": "mcr.microsoft.com/devcontainers/base:ubuntu-24.04",

// Install .NET 8 SDK via the official devcontainer feature
Expand All @@ -18,12 +18,12 @@
// GitHub Copilot – inline suggestions + chat panel
"github.copilot",
"github.copilot-chat",
// C# language support and rich editing for the TerraDrive codebase
// C# language support and rich editing for the VectorRoad codebase
"ms-dotnettools.csdevkit",
"ms-dotnettools.csharp"
],
"settings": {
"dotnet.defaultSolution": "terradrive.slnx",
"dotnet.defaultSolution": "vectorroad.slnx",
"github.copilot.enable": {
"*": true
}
Expand Down
18 changes: 9 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,13 @@ jobs:
dotnet-version: "8.0.x"

- name: Restore dependencies
run: dotnet restore Tests/TerraDrive.Tests/TerraDrive.Tests.csproj
run: dotnet restore Tests/VectorRoad.Tests/VectorRoad.Tests.csproj

- name: Build
run: dotnet build Tests/TerraDrive.Tests/TerraDrive.Tests.csproj --no-restore
run: dotnet build Tests/VectorRoad.Tests/VectorRoad.Tests.csproj --no-restore

- name: Run tests
run: dotnet test Tests/TerraDrive.Tests/TerraDrive.Tests.csproj --no-build --verbosity normal
run: dotnet test Tests/VectorRoad.Tests/VectorRoad.Tests.csproj --no-build --verbosity normal

# ── 3. Build Unity project for each target platform ───────────────────────
build:
Expand Down Expand Up @@ -106,7 +106,7 @@ jobs:
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
with:
buildMethod: TerraDrive.Editor.ProjectSetup.Configure
buildMethod: VectorRoad.Editor.ProjectSetup.Configure
allowDirtyBuild: true

- name: Build project
Expand All @@ -117,20 +117,20 @@ jobs:
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
with:
targetPlatform: ${{ matrix.targetPlatform }}
buildName: TerraDrive
buildName: VectorRoad
versioning: Custom
version: ${{ needs.version.outputs.version }}

- name: Archive build output
run: |
cd build/${{ matrix.targetPlatform }}
zip -r "../../TerraDrive-${{ needs.version.outputs.version }}-${{ matrix.targetPlatform }}.zip" .
zip -r "../../VectorRoad-${{ needs.version.outputs.version }}-${{ matrix.targetPlatform }}.zip" .

- name: Upload build artifact
uses: actions/upload-artifact@v4
with:
name: TerraDrive-${{ needs.version.outputs.version }}-${{ matrix.targetPlatform }}
path: TerraDrive-${{ needs.version.outputs.version }}-${{ matrix.targetPlatform }}.zip
name: VectorRoad-${{ needs.version.outputs.version }}-${{ matrix.targetPlatform }}
path: VectorRoad-${{ needs.version.outputs.version }}-${{ matrix.targetPlatform }}.zip
if-no-files-found: error
retention-days: 90

Expand All @@ -155,7 +155,7 @@ jobs:
uses: softprops/action-gh-release@v2
with:
tag_name: v${{ needs.version.outputs.version }}
name: TerraDrive v${{ needs.version.outputs.version }}
name: VectorRoad v${{ needs.version.outputs.version }}
draft: false
prerelease: false
generate_release_notes: true
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ jobs:
dotnet-version: "8.0.x"

- name: Restore dependencies
run: dotnet restore Tests/TerraDrive.Tests/TerraDrive.Tests.csproj
run: dotnet restore Tests/VectorRoad.Tests/VectorRoad.Tests.csproj

- name: Build
run: dotnet build Tests/TerraDrive.Tests/TerraDrive.Tests.csproj --no-restore
run: dotnet build Tests/VectorRoad.Tests/VectorRoad.Tests.csproj --no-restore

- name: Run tests
run: dotnet test Tests/TerraDrive.Tests/TerraDrive.Tests.csproj --no-build --verbosity normal --filter "Category!=Integration"
run: dotnet test Tests/VectorRoad.Tests/VectorRoad.Tests.csproj --no-build --verbosity normal --filter "Category!=Integration"

osm-downloader-build:
name: Build OsmDownloader tool (.NET)
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# ── Downloaded map data ───────────────────────────────────────────────────────
Assets/Data/*.osm
Assets/StreamingAssets/Data/downloaded.*

# ── Unity build artifacts ─────────────────────────────────────────────────────
[Ll]ibrary/
Expand Down
5 changes: 4 additions & 1 deletion Assets/Data/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Downloaded .osm map files are stored here at runtime.
# Downloaded .osm map files may be stored here at runtime.
# They are intentionally excluded from version control — regenerate them with:
# dotnet run --project Tools/OsmDownloader -- --lat ... --lon ...
#
# Note: The default bundled map data (Ames, Iowa) lives in
# Assets/StreamingAssets/Data/ so that it is included in standalone builds.
4 changes: 2 additions & 2 deletions Assets/Scenes/ProofOfConcept.unity
Original file line number Diff line number Diff line change
Expand Up @@ -407,8 +407,8 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: c5d6e7f8a9b0c1d2e3f4a5b6c7d8e9f0, type: 3}
m_Name:
m_EditorClassIdentifier:
OsmFilePath: Assets/Data/map.osm.xml
ElevationCsvPath: Assets/Data/map.elevation.csv
OsmFilePath: Data/map.osm.xml
ElevationCsvPath: Data/map.elevation.csv
OriginLatitude: 41.895720000000004
OriginLongitude: -93.588755
Registry: {fileID: 3003}
Expand Down
2 changes: 1 addition & 1 deletion Assets/Scripts/Core/CoordinateConverter.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using UnityEngine;

namespace TerraDrive.Core
namespace VectorRoad.Core
{
/// <summary>
/// Converts WGS-84 GPS coordinates (latitude / longitude) to Unity world-space
Expand Down
8 changes: 4 additions & 4 deletions Assets/Scripts/Core/GameManager.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using UnityEngine;
using UnityEngine.Events;

namespace TerraDrive.Core
namespace VectorRoad.Core
{
/// <summary>
/// High-level game state values.
Expand All @@ -17,7 +17,7 @@ public enum GameState
}

/// <summary>
/// Singleton entry-point for TerraDrive. Owns the top-level game state machine
/// Singleton entry-point for VectorRoad. Owns the top-level game state machine
/// and exposes events so other systems can react to state transitions without
/// tight coupling.
///
Expand Down Expand Up @@ -67,7 +67,7 @@ public static GameManager Instance
/// When set, <see cref="MapSceneBuilder"/> uses this path instead of its
/// inspector-configured <c>OsmFilePath</c> on the next scene load.
///
/// Populated by <see cref="TerraDrive.Hud.CoordinateEntryHud"/> after a
/// Populated by <see cref="VectorRoad.Hud.CoordinateEntryHud"/> after a
/// successful in-game download so the reloaded scene picks up the new data.
/// Clear back to an empty string to restore the inspector default.
/// </summary>
Expand All @@ -78,7 +78,7 @@ public static GameManager Instance
/// When set, <see cref="MapSceneBuilder"/> uses this path instead of its
/// inspector-configured <c>ElevationCsvPath</c> on the next scene load.
///
/// Populated by <see cref="TerraDrive.Hud.CoordinateEntryHud"/> after a
/// Populated by <see cref="VectorRoad.Hud.CoordinateEntryHud"/> after a
/// successful in-game download so the reloaded scene picks up the new data.
/// Clear back to an empty string to restore the inspector default.
/// </summary>
Expand Down
2 changes: 1 addition & 1 deletion Assets/Scripts/Core/LocationLoadResult.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using UnityEngine;

namespace TerraDrive.Core
namespace VectorRoad.Core
{
/// <summary>
/// Result returned by <see cref="LocationMenuController.LoadLocationAsync"/>.
Expand Down
10 changes: 5 additions & 5 deletions Assets/Scripts/Core/LocationMenuController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
using System.IO;
using System.Threading;
using System.Threading.Tasks;
using TerraDrive.Terrain;
using TerraDrive.Tools;
using VectorRoad.Terrain;
using VectorRoad.Tools;

namespace TerraDrive.Core
namespace VectorRoad.Core
{
/// <summary>
/// Encapsulates the game-menu logic for choosing a new real-world location by
Expand Down Expand Up @@ -86,10 +86,10 @@ public LocationMenuController(IOsmDownloader downloader, string dataDirectory)

/// <summary>
/// Initialises a new instance using the default <see cref="OsmDownloader"/> and
/// a <c>terradrive</c> subdirectory inside the system temp folder.
/// a <c>vectorroad</c> subdirectory inside the system temp folder.
/// </summary>
public LocationMenuController()
: this(new OsmDownloader(), Path.Combine(Path.GetTempPath(), "terradrive")) { }
: this(new OsmDownloader(), Path.Combine(Path.GetTempPath(), "vectorroad")) { }

/// <summary>
/// Returns <c>true</c> when <paramref name="latitude"/> and
Expand Down
6 changes: 3 additions & 3 deletions Assets/Scripts/Core/MapData.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
using System.Collections.Generic;
using TerraDrive.DataInversion;
using TerraDrive.Terrain;
using VectorRoad.DataInversion;
using VectorRoad.Terrain;

namespace TerraDrive.Core
namespace VectorRoad.Core
{
/// <summary>
/// Holds all data produced by <see cref="MapLoader.LoadMapAsync"/>: the parsed OSM
Expand Down
6 changes: 3 additions & 3 deletions Assets/Scripts/Core/MapLoader.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
using System.Threading;
using System.Threading.Tasks;
using TerraDrive.DataInversion;
using TerraDrive.Terrain;
using VectorRoad.DataInversion;
using VectorRoad.Terrain;

namespace TerraDrive.Core
namespace VectorRoad.Core
{
/// <summary>
/// Loads a full map scene from a pre-downloaded <c>.osm</c> and
Expand Down
Loading
Loading