Infrastruttura: nome «Rail Enterprise», CI e rilasci su Gitea, documentazione
Il progetto adotta il nome «Rail Enterprise» ovunque (codice RailEnterprise.*, variabili RE_*, intestazioni RESV/RECL, immagine rail-enterprise-server) per allinearsi al repository Gitea. Aggiunge Gitea Actions sul modello di Chronos: CI su PR e main, rilascio da tag con gioco Windows (client Godot + server in server/), server Windows/Linux e immagine Docker nel registro Gitea, nightly. Aggiunge i riferimenti visivi 06–09, i modelli di PR e issue, l'ADR 0014 e aggiorna README (comandi locali), STATE e CLAUDE.md. 120 test verdi. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
f6c2a17b4d
commit
c1a0049bcf
300 files changed
+1602
-1045
No files matched your search
+4
-4
@@ -1,13 +1,13 @@
|
||||
<Project Sdk="Godot.NET.Sdk/4.7.2">
|
||||
|
||||
<!--
|
||||
Client Godot di Via Ferrea: fuori dalla soluzione principale. Usa Core e Protocol (net8.0)
|
||||
Client Godot di Rail Enterprise: fuori dalla soluzione principale. Usa Core e Protocol (net8.0)
|
||||
per le anteprime e per la copia locale del mondo; nessuna logica di gioco.
|
||||
-->
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net8.0</TargetFramework>
|
||||
<EnableDynamicLoading>true</EnableDynamicLoading>
|
||||
<RootNamespace>ViaFerrea.Client</RootNamespace>
|
||||
<RootNamespace>RailEnterprise.Client</RootNamespace>
|
||||
<Nullable>enable</Nullable>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<LangVersion>latest</LangVersion>
|
||||
@@ -16,8 +16,8 @@
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\..\src\ViaFerrea.Core\ViaFerrea.Core.csproj" />
|
||||
<ProjectReference Include="..\..\src\ViaFerrea.Protocol\ViaFerrea.Protocol.csproj" />
|
||||
<ProjectReference Include="..\..\src\RailEnterprise.Core\RailEnterprise.Core.csproj" />
|
||||
<ProjectReference Include="..\..\src\RailEnterprise.Protocol\RailEnterprise.Protocol.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
<!-- I file dati del gioco entrano nel progetto Godot (res://data) prima di ogni build. -->
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
+2
-2
@@ -282,7 +282,7 @@ Seleziona un treno,,Select a train
|
||||
Seleziona un treno e un deposito,,Select a train and a depot
|
||||
Sentiment del mercato,,Market sentiment
|
||||
Serve un deposito,,A depot is required
|
||||
Server locale non trovato: compila src/ViaFerrea.Server o imposta VF_SERVER_PATH.,,Local server not found: build src/ViaFerrea.Server or set VF_SERVER_PATH.
|
||||
Server locale non trovato: compila src/RailEnterprise.Server o imposta RE_SERVER_PATH.,,Local server not found: build src/RailEnterprise.Server or set RE_SERVER_PATH.
|
||||
Servizi,,Services
|
||||
Servono almeno due fermate,,At least two stops are needed
|
||||
Soddisfazione,,Satisfaction
|
||||
@@ -314,7 +314,7 @@ Veicoli,,Vehicles
|
||||
Velocità,,Speed
|
||||
Vendi,,Sell
|
||||
Verde,,Green
|
||||
Via Ferrea,,Via Ferrea
|
||||
Rail Enterprise,,Rail Enterprise
|
||||
a piedi,,on foot
|
||||
abitanti,,inhabitants
|
||||
agli azionisti; i dividendi alzano il sentiment del titolo.,,to shareholders; dividends raise the share's sentiment.
|
||||
|
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
|
Before Width: | Height: | Size: 351 B After Width: | Height: | Size: 351 B |
File renamed without changes.
+4
-4
@@ -8,7 +8,7 @@ custom_features=""
|
||||
export_filter="all_resources"
|
||||
include_filter="data/*.json, data/schema/*.json, assets/i18n/*.csv, assets/fonts/*.ttf, assets/fonts/OFL.txt"
|
||||
exclude_filter=""
|
||||
export_path="export/windows/ViaFerrea.exe"
|
||||
export_path="export/windows/RailEnterprise.exe"
|
||||
encryption_include_filters=""
|
||||
encryption_exclude_filters=""
|
||||
encrypt_pck=false
|
||||
@@ -21,8 +21,8 @@ custom_template/release=""
|
||||
debug/export_console_wrapper=1
|
||||
binary_format/embed_pck=false
|
||||
binary_format/architecture="x86_64"
|
||||
application/product_name="Via Ferrea"
|
||||
application/company_name="Via Ferrea"
|
||||
application/product_name="Rail Enterprise"
|
||||
application/company_name="Rail Enterprise"
|
||||
application/file_description="Gestionale ferroviario dall'alto"
|
||||
dotnet/include_scripts_content=false
|
||||
dotnet/include_debug_symbols=false
|
||||
@@ -38,7 +38,7 @@ custom_features=""
|
||||
export_filter="all_resources"
|
||||
include_filter="data/*.json, data/schema/*.json, assets/i18n/*.csv, assets/fonts/*.ttf, assets/fonts/OFL.txt"
|
||||
exclude_filter=""
|
||||
export_path="export/linux/ViaFerrea.x86_64"
|
||||
export_path="export/linux/RailEnterprise.x86_64"
|
||||
encrypt_pck=false
|
||||
encrypt_directory=false
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
; File di progetto di Godot 4: client di Via Ferrea (rendering, input, interfaccia).
|
||||
; File di progetto di Godot 4: client di Rail Enterprise (rendering, input, interfaccia).
|
||||
; Nessuna logica di gioco: il server è autorevole (docs/GUIDA.md, sezione 14.3).
|
||||
|
||||
config_version=5
|
||||
|
||||
[application]
|
||||
|
||||
config/name="Via Ferrea"
|
||||
config/name="Rail Enterprise"
|
||||
config/description="Gestionale ferroviario dall'alto"
|
||||
run/main_scene="res://scenes/Main.tscn"
|
||||
config/features=PackedStringArray("4.7", "C#", "GL Compatibility")
|
||||
@@ -21,7 +21,7 @@ window/stretch/aspect="expand"
|
||||
|
||||
[dotnet]
|
||||
|
||||
project/assembly_name="ViaFerrea.Client"
|
||||
project/assembly_name="RailEnterprise.Client"
|
||||
|
||||
[internationalization]
|
||||
|
||||
File renamed without changes.
+10
-10
@@ -1,15 +1,15 @@
|
||||
using Godot;
|
||||
using ViaFerrea.Client.Hud;
|
||||
using ViaFerrea.Client.Map;
|
||||
using ViaFerrea.Client.Net;
|
||||
using ViaFerrea.Client.Screens;
|
||||
using ViaFerrea.Core.Commands;
|
||||
using ViaFerrea.Core.Common;
|
||||
using ViaFerrea.Core.Rail;
|
||||
using ViaFerrea.Protocol.Client;
|
||||
using ViaFerrea.Protocol.Messages;
|
||||
using RailEnterprise.Client.Hud;
|
||||
using RailEnterprise.Client.Map;
|
||||
using RailEnterprise.Client.Net;
|
||||
using RailEnterprise.Client.Screens;
|
||||
using RailEnterprise.Core.Commands;
|
||||
using RailEnterprise.Core.Common;
|
||||
using RailEnterprise.Core.Rail;
|
||||
using RailEnterprise.Protocol.Client;
|
||||
using RailEnterprise.Protocol.Messages;
|
||||
|
||||
namespace ViaFerrea.Client.App;
|
||||
namespace RailEnterprise.Client.App;
|
||||
|
||||
/// <summary>
|
||||
/// Pilota automatico per il collaudo del client (<c>-- --autopilot cartella</c>): nella partita
|
||||
File renamed without changes.
+2
-2
@@ -1,7 +1,7 @@
|
||||
using Godot;
|
||||
using ViaFerrea.Core.Data;
|
||||
using RailEnterprise.Core.Data;
|
||||
|
||||
namespace ViaFerrea.Client.App;
|
||||
namespace RailEnterprise.Client.App;
|
||||
|
||||
/// <summary>File dati del gioco dentro il progetto Godot (res://data, copiati dalla build del client).</summary>
|
||||
public sealed class GodotDataSource(string root = "res://data") : IDataSource
|
||||
File renamed without changes.
+1
-1
@@ -1,6 +1,6 @@
|
||||
using Godot;
|
||||
|
||||
namespace ViaFerrea.Client.App;
|
||||
namespace RailEnterprise.Client.App;
|
||||
|
||||
/// <summary>
|
||||
/// Testi dell'interfaccia: la lingua sorgente è l'italiano (le chiavi sono i testi italiani),
|
||||
File renamed without changes.
+1
-1
@@ -1,6 +1,6 @@
|
||||
using Godot;
|
||||
|
||||
namespace ViaFerrea.Client.App;
|
||||
namespace RailEnterprise.Client.App;
|
||||
|
||||
/// <summary>Palette dell'immagine di riferimento 05: interfaccia blu-ardesia con accento ambra, mappa cartografica chiara.</summary>
|
||||
public static class Palette
|
||||
File renamed without changes.
+1
-1
@@ -1,6 +1,6 @@
|
||||
using Godot;
|
||||
|
||||
namespace ViaFerrea.Client.App;
|
||||
namespace RailEnterprise.Client.App;
|
||||
|
||||
/// <summary>
|
||||
/// Tema dell'interfaccia costruito in codice dalla palette (immagine 05): titoli in Big Shoulders
|
||||
File renamed without changes.
+5
-5
@@ -1,10 +1,10 @@
|
||||
using Godot;
|
||||
using ViaFerrea.Client.App;
|
||||
using ViaFerrea.Client.Map;
|
||||
using ViaFerrea.Core.Map;
|
||||
using ViaFerrea.Protocol.Client;
|
||||
using RailEnterprise.Client.App;
|
||||
using RailEnterprise.Client.Map;
|
||||
using RailEnterprise.Core.Map;
|
||||
using RailEnterprise.Protocol.Client;
|
||||
|
||||
namespace ViaFerrea.Client.Hud;
|
||||
namespace RailEnterprise.Client.Hud;
|
||||
|
||||
/// <summary>Minimappa: terreno ridotto, linee, città e rettangolo della vista; un clic centra la mappa.</summary>
|
||||
public partial class Minimap : Control
|
||||
File renamed without changes.
+4
-4
@@ -1,9 +1,9 @@
|
||||
using Godot;
|
||||
using ViaFerrea.Client.App;
|
||||
using ViaFerrea.Protocol.Messages;
|
||||
using static ViaFerrea.Client.App.Localization;
|
||||
using RailEnterprise.Client.App;
|
||||
using RailEnterprise.Protocol.Messages;
|
||||
using static RailEnterprise.Client.App.Localization;
|
||||
|
||||
namespace ViaFerrea.Client.Hud;
|
||||
namespace RailEnterprise.Client.Hud;
|
||||
|
||||
/// <summary>Notiziario in basso (immagine 01): «Notizie» e gli ultimi eventi che scorrono.</summary>
|
||||
public partial class Ticker : PanelContainer
|
||||
File renamed without changes.
+3
-3
@@ -1,8 +1,8 @@
|
||||
using Godot;
|
||||
using ViaFerrea.Client.App;
|
||||
using static ViaFerrea.Client.App.Localization;
|
||||
using RailEnterprise.Client.App;
|
||||
using static RailEnterprise.Client.App.Localization;
|
||||
|
||||
namespace ViaFerrea.Client.Hud;
|
||||
namespace RailEnterprise.Client.Hud;
|
||||
|
||||
/// <summary>Strumenti e pannelli della barra sinistra (immagine 01).</summary>
|
||||
public enum Tool { None, Track, Station, Signal, Depot, Trains, Lines, Maintenance, Employment, Industries, Market, Companies, Finance, Demolish }
|
||||
File renamed without changes.
+4
-4
@@ -1,9 +1,9 @@
|
||||
using Godot;
|
||||
using ViaFerrea.Client.App;
|
||||
using ViaFerrea.Client.Net;
|
||||
using static ViaFerrea.Client.App.Localization;
|
||||
using RailEnterprise.Client.App;
|
||||
using RailEnterprise.Client.Net;
|
||||
using static RailEnterprise.Client.App.Localization;
|
||||
|
||||
namespace ViaFerrea.Client.Hud;
|
||||
namespace RailEnterprise.Client.Hud;
|
||||
|
||||
/// <summary>Barra superiore (immagine 01): compagnia e livello, data, velocità, cassa, patrimonio, rating, stato del server.</summary>
|
||||
public partial class TopBar : PanelContainer
|
||||
File renamed without changes.
+11
-11
@@ -1,11 +1,11 @@
|
||||
using Godot;
|
||||
using ViaFerrea.Client.App;
|
||||
using ViaFerrea.Client.Net;
|
||||
using ViaFerrea.Client.Screens;
|
||||
using ViaFerrea.Core.Data;
|
||||
using static ViaFerrea.Client.App.Localization;
|
||||
using RailEnterprise.Client.App;
|
||||
using RailEnterprise.Client.Net;
|
||||
using RailEnterprise.Client.Screens;
|
||||
using RailEnterprise.Core.Data;
|
||||
using static RailEnterprise.Client.App.Localization;
|
||||
|
||||
namespace ViaFerrea.Client;
|
||||
namespace RailEnterprise.Client;
|
||||
|
||||
/// <summary>
|
||||
/// Nodo radice: tema e traduzioni, dati del gioco, passaggio tra menu, collegamento e partita;
|
||||
@@ -26,7 +26,7 @@ public partial class Main : Node
|
||||
string locale = (string)cfg.GetValue("ui", "locale", "it");
|
||||
Localization.Load(locale);
|
||||
GetWindow().Theme = UiTheme.Build();
|
||||
GetWindow().Title = "Via Ferrea";
|
||||
GetWindow().Title = "Rail Enterprise";
|
||||
try
|
||||
{
|
||||
_data = GodotDataSource.LoadGameData();
|
||||
@@ -42,9 +42,9 @@ public partial class Main : Node
|
||||
{
|
||||
// collaudo: mappa piccola e seme fisso per il server locale
|
||||
_autopilot = i + 1 < args.Length ? args[i + 1] : ProjectSettings.GlobalizePath("user://autopilot");
|
||||
System.Environment.SetEnvironmentVariable("VF_MAP_SIZE", "64");
|
||||
System.Environment.SetEnvironmentVariable("VF_SEED", "3");
|
||||
System.Environment.SetEnvironmentVariable("VF_AUTOSAVE_MIN", "0");
|
||||
System.Environment.SetEnvironmentVariable("RE_MAP_SIZE", "64");
|
||||
System.Environment.SetEnvironmentVariable("RE_SEED", "3");
|
||||
System.Environment.SetEnvironmentVariable("RE_AUTOSAVE_MIN", "0");
|
||||
StartLocal();
|
||||
}
|
||||
}
|
||||
@@ -102,7 +102,7 @@ public partial class Main : Node
|
||||
string? server = LocalServerLauncher.FindServer();
|
||||
if (server is null)
|
||||
{
|
||||
ShowMenu(T("Server locale non trovato: compila src/ViaFerrea.Server o imposta VF_SERVER_PATH."));
|
||||
ShowMenu(T("Server locale non trovato: compila src/RailEnterprise.Server o imposta RE_SERVER_PATH."));
|
||||
return;
|
||||
}
|
||||
if (_screen is MenuScreen menu) menu.SetStatus(T("Avvio del server locale…"));
|
||||
File renamed without changes.
+5
-5
@@ -1,10 +1,10 @@
|
||||
using Godot;
|
||||
using ViaFerrea.Client.App;
|
||||
using ViaFerrea.Core.Map;
|
||||
using ViaFerrea.Protocol.Client;
|
||||
using ViaFerrea.Protocol.Messages;
|
||||
using RailEnterprise.Client.App;
|
||||
using RailEnterprise.Core.Map;
|
||||
using RailEnterprise.Protocol.Client;
|
||||
using RailEnterprise.Protocol.Messages;
|
||||
|
||||
namespace ViaFerrea.Client.Map;
|
||||
namespace RailEnterprise.Client.Map;
|
||||
|
||||
/// <summary>
|
||||
/// Entità sulla mappa (immagine 04): case con tetti in coppi sulle celle d'abitato, impronte
|
||||
File renamed without changes.
+4
-4
@@ -1,9 +1,9 @@
|
||||
using Godot;
|
||||
using ViaFerrea.Client.App;
|
||||
using ViaFerrea.Core.Common;
|
||||
using ViaFerrea.Protocol.Client;
|
||||
using RailEnterprise.Client.App;
|
||||
using RailEnterprise.Core.Common;
|
||||
using RailEnterprise.Protocol.Client;
|
||||
|
||||
namespace ViaFerrea.Client.Map;
|
||||
namespace RailEnterprise.Client.Map;
|
||||
|
||||
/// <summary>
|
||||
/// Etichette a dimensione costante sullo schermo: città in Big Shoulders Display con gli abitanti,
|
||||
File renamed without changes.
+2
-2
@@ -1,7 +1,7 @@
|
||||
using Godot;
|
||||
using ViaFerrea.Core.Common;
|
||||
using RailEnterprise.Core.Common;
|
||||
|
||||
namespace ViaFerrea.Client.Map;
|
||||
namespace RailEnterprise.Client.Map;
|
||||
|
||||
/// <summary>
|
||||
/// Scala dei simboli: a zoom ravvicinato binari e treni hanno le misure della guida in metri
|
||||
File renamed without changes.
+2
-2
@@ -1,7 +1,7 @@
|
||||
using Godot;
|
||||
using ViaFerrea.Client.Net;
|
||||
using RailEnterprise.Client.Net;
|
||||
|
||||
namespace ViaFerrea.Client.Map;
|
||||
namespace RailEnterprise.Client.Map;
|
||||
|
||||
/// <summary>
|
||||
/// Vista della mappa: Node2D con Camera2D e i livelli (terreno, opere e binari, entità, treni,
|
||||
File renamed without changes.
+4
-4
@@ -1,9 +1,9 @@
|
||||
using Godot;
|
||||
using ViaFerrea.Client.App;
|
||||
using ViaFerrea.Core.Map;
|
||||
using ViaFerrea.Protocol.Client;
|
||||
using RailEnterprise.Client.App;
|
||||
using RailEnterprise.Core.Map;
|
||||
using RailEnterprise.Protocol.Client;
|
||||
|
||||
namespace ViaFerrea.Client.Map;
|
||||
namespace RailEnterprise.Client.Map;
|
||||
|
||||
/// <summary>
|
||||
/// Terreno a chunk (immagine 01): colori per tipo di cella e fascia altimetrica, ombreggiatura
|
||||
File renamed without changes.
+4
-4
@@ -1,9 +1,9 @@
|
||||
using Godot;
|
||||
using ViaFerrea.Client.App;
|
||||
using ViaFerrea.Core.Rail;
|
||||
using ViaFerrea.Protocol.Client;
|
||||
using RailEnterprise.Client.App;
|
||||
using RailEnterprise.Core.Rail;
|
||||
using RailEnterprise.Protocol.Client;
|
||||
|
||||
namespace ViaFerrea.Client.Map;
|
||||
namespace RailEnterprise.Client.Map;
|
||||
|
||||
/// <summary>Sagome degli strumenti: tracciato in corso con l'anteprima delle opere, stazione o deposito da posare, fermate di una linea.</summary>
|
||||
public partial class ToolOverlay : Node2D
|
||||
File renamed without changes.
+5
-5
@@ -1,10 +1,10 @@
|
||||
using Godot;
|
||||
using ViaFerrea.Client.App;
|
||||
using ViaFerrea.Core.Rail;
|
||||
using ViaFerrea.Protocol.Client;
|
||||
using ViaFerrea.Protocol.Messages;
|
||||
using RailEnterprise.Client.App;
|
||||
using RailEnterprise.Core.Rail;
|
||||
using RailEnterprise.Protocol.Client;
|
||||
using RailEnterprise.Protocol.Messages;
|
||||
|
||||
namespace ViaFerrea.Client.Map;
|
||||
namespace RailEnterprise.Client.Map;
|
||||
|
||||
/// <summary>
|
||||
/// Binari e opere (immagini 01 e 02): massicciata #bfb79f, traversine #5b4a39 ogni 5,3 unità,
|
||||
File renamed without changes.
+7
-7
@@ -1,12 +1,12 @@
|
||||
using Godot;
|
||||
using ViaFerrea.Client.App;
|
||||
using ViaFerrea.Client.Net;
|
||||
using ViaFerrea.Core.Data;
|
||||
using ViaFerrea.Core.Rail;
|
||||
using ViaFerrea.Protocol.Client;
|
||||
using ViaFerrea.Protocol.Messages;
|
||||
using RailEnterprise.Client.App;
|
||||
using RailEnterprise.Client.Net;
|
||||
using RailEnterprise.Core.Data;
|
||||
using RailEnterprise.Core.Rail;
|
||||
using RailEnterprise.Protocol.Client;
|
||||
using RailEnterprise.Protocol.Messages;
|
||||
|
||||
namespace ViaFerrea.Client.Map;
|
||||
namespace RailEnterprise.Client.Map;
|
||||
|
||||
/// <summary>
|
||||
/// Treni dall'alto (immagine 03): locomotiva scura con dettagli ambra, carri e carrozze con le
|
||||
File renamed without changes.
+6
-6
@@ -1,11 +1,11 @@
|
||||
using Godot;
|
||||
using ViaFerrea.Core.Commands;
|
||||
using ViaFerrea.Core.Data;
|
||||
using ViaFerrea.Protocol;
|
||||
using ViaFerrea.Protocol.Client;
|
||||
using ViaFerrea.Protocol.Messages;
|
||||
using RailEnterprise.Core.Commands;
|
||||
using RailEnterprise.Core.Data;
|
||||
using RailEnterprise.Protocol;
|
||||
using RailEnterprise.Protocol.Client;
|
||||
using RailEnterprise.Protocol.Messages;
|
||||
|
||||
namespace ViaFerrea.Client.Net;
|
||||
namespace RailEnterprise.Client.Net;
|
||||
|
||||
/// <summary>
|
||||
/// Sessione di gioco del client: connessione, copia locale del mondo, esiti dei comandi e
|
||||
File renamed without changes.
+6
-6
@@ -1,7 +1,7 @@
|
||||
using System.Diagnostics;
|
||||
using Godot;
|
||||
|
||||
namespace ViaFerrea.Client.Net;
|
||||
namespace RailEnterprise.Client.Net;
|
||||
|
||||
/// <summary>
|
||||
/// Partita locale: avvia il server come processo figlio con <c>--local --token</c>, legge
|
||||
@@ -14,22 +14,22 @@ public sealed class LocalServerLauncher : IDisposable
|
||||
public int Port { get; private set; }
|
||||
public string Token { get; } = Guid.NewGuid().ToString("N");
|
||||
|
||||
/// <summary>Percorso del server: variabile VF_SERVER_PATH, cartella «server» accanto al gioco, build del repository.</summary>
|
||||
/// <summary>Percorso del server: variabile RE_SERVER_PATH, cartella «server» accanto al gioco, build del repository.</summary>
|
||||
public static string? FindServer()
|
||||
{
|
||||
string? env = System.Environment.GetEnvironmentVariable("VF_SERVER_PATH");
|
||||
string? env = System.Environment.GetEnvironmentVariable("RE_SERVER_PATH");
|
||||
if (!string.IsNullOrWhiteSpace(env) && File.Exists(env)) return env;
|
||||
string exeDir = Path.GetDirectoryName(OS.GetExecutablePath()) ?? ".";
|
||||
foreach (string name in new[] { "ViaFerrea.Server.exe", "ViaFerrea.Server", "ViaFerrea.Server.dll" })
|
||||
foreach (string name in new[] { "RailEnterprise.Server.exe", "RailEnterprise.Server", "RailEnterprise.Server.dll" })
|
||||
{
|
||||
string candidate = Path.Combine(exeDir, "server", name);
|
||||
if (File.Exists(candidate)) return candidate;
|
||||
}
|
||||
// sviluppo: il progetto Godot sta in client/ViaFerrea.Client, il server in src/
|
||||
// sviluppo: il progetto Godot sta in client/RailEnterprise.Client, il server in src/
|
||||
string project = ProjectSettings.GlobalizePath("res://");
|
||||
foreach (string config in new[] { "Release", "Debug" })
|
||||
{
|
||||
string candidate = Path.GetFullPath(Path.Combine(project, "..", "..", "src", "ViaFerrea.Server", "bin", config, "net10.0", "ViaFerrea.Server.dll"));
|
||||
string candidate = Path.GetFullPath(Path.Combine(project, "..", "..", "src", "RailEnterprise.Server", "bin", config, "net10.0", "RailEnterprise.Server.dll"));
|
||||
if (File.Exists(candidate)) return candidate;
|
||||
}
|
||||
return null;
|
||||
File renamed without changes.
+9
-9
@@ -1,14 +1,14 @@
|
||||
using Godot;
|
||||
using ViaFerrea.Client.App;
|
||||
using ViaFerrea.Client.Net;
|
||||
using ViaFerrea.Core.Commands;
|
||||
using ViaFerrea.Core.Common;
|
||||
using ViaFerrea.Core.Economy;
|
||||
using ViaFerrea.Protocol.Client;
|
||||
using ViaFerrea.Protocol.Messages;
|
||||
using static ViaFerrea.Client.App.Localization;
|
||||
using RailEnterprise.Client.App;
|
||||
using RailEnterprise.Client.Net;
|
||||
using RailEnterprise.Core.Commands;
|
||||
using RailEnterprise.Core.Common;
|
||||
using RailEnterprise.Core.Economy;
|
||||
using RailEnterprise.Protocol.Client;
|
||||
using RailEnterprise.Protocol.Messages;
|
||||
using static RailEnterprise.Client.App.Localization;
|
||||
|
||||
namespace ViaFerrea.Client.Panels;
|
||||
namespace RailEnterprise.Client.Panels;
|
||||
|
||||
/// <summary>
|
||||
/// Compagnie e borsa (sezione 12, pannello a tutto schermo con palette e componenti dell'immagine
|
||||
File renamed without changes.
+8
-8
@@ -1,13 +1,13 @@
|
||||
using Godot;
|
||||
using ViaFerrea.Client.App;
|
||||
using ViaFerrea.Client.Net;
|
||||
using ViaFerrea.Core.Commands;
|
||||
using ViaFerrea.Core.Common;
|
||||
using ViaFerrea.Protocol.Client;
|
||||
using ViaFerrea.Protocol.Messages;
|
||||
using static ViaFerrea.Client.App.Localization;
|
||||
using RailEnterprise.Client.App;
|
||||
using RailEnterprise.Client.Net;
|
||||
using RailEnterprise.Core.Commands;
|
||||
using RailEnterprise.Core.Common;
|
||||
using RailEnterprise.Protocol.Client;
|
||||
using RailEnterprise.Protocol.Messages;
|
||||
using static RailEnterprise.Client.App.Localization;
|
||||
|
||||
namespace ViaFerrea.Client.Panels;
|
||||
namespace RailEnterprise.Client.Panels;
|
||||
|
||||
/// <summary>
|
||||
/// Registro degli impieghi (sezione 9): convenzioni proposte dalle industrie (accetta o rifiuta),
|
||||
File renamed without changes.
+4
-4
@@ -1,9 +1,9 @@
|
||||
using System.Globalization;
|
||||
using ViaFerrea.Core.Common;
|
||||
using ViaFerrea.Protocol.Client;
|
||||
using static ViaFerrea.Client.App.Localization;
|
||||
using RailEnterprise.Core.Common;
|
||||
using RailEnterprise.Protocol.Client;
|
||||
using static RailEnterprise.Client.App.Localization;
|
||||
|
||||
namespace ViaFerrea.Client.Panels;
|
||||
namespace RailEnterprise.Client.Panels;
|
||||
|
||||
/// <summary>
|
||||
/// Formati numerici dell'interfaccia (immagine 05): separatore delle migliaia con il punto,
|
||||
File renamed without changes.
+9
-9
@@ -1,14 +1,14 @@
|
||||
using Godot;
|
||||
using ViaFerrea.Client.App;
|
||||
using ViaFerrea.Client.Net;
|
||||
using ViaFerrea.Core.Commands;
|
||||
using ViaFerrea.Core.Common;
|
||||
using ViaFerrea.Core.Economy;
|
||||
using ViaFerrea.Protocol.Client;
|
||||
using ViaFerrea.Protocol.Messages;
|
||||
using static ViaFerrea.Client.App.Localization;
|
||||
using RailEnterprise.Client.App;
|
||||
using RailEnterprise.Client.Net;
|
||||
using RailEnterprise.Core.Commands;
|
||||
using RailEnterprise.Core.Common;
|
||||
using RailEnterprise.Core.Economy;
|
||||
using RailEnterprise.Protocol.Client;
|
||||
using RailEnterprise.Protocol.Messages;
|
||||
using static RailEnterprise.Client.App.Localization;
|
||||
|
||||
namespace ViaFerrea.Client.Panels;
|
||||
namespace RailEnterprise.Client.Panels;
|
||||
|
||||
/// <summary>
|
||||
/// Industrie (sezione 11): elenco delle industrie della regione e pannello del proprietario
|
||||
File renamed without changes.
+7
-7
@@ -1,11 +1,11 @@
|
||||
using Godot;
|
||||
using ViaFerrea.Client.App;
|
||||
using ViaFerrea.Client.Net;
|
||||
using ViaFerrea.Core.Common;
|
||||
using ViaFerrea.Core.Rail;
|
||||
using static ViaFerrea.Client.App.Localization;
|
||||
using RailEnterprise.Client.App;
|
||||
using RailEnterprise.Client.Net;
|
||||
using RailEnterprise.Core.Common;
|
||||
using RailEnterprise.Core.Rail;
|
||||
using static RailEnterprise.Client.App.Localization;
|
||||
|
||||
namespace ViaFerrea.Client.Panels;
|
||||
namespace RailEnterprise.Client.Panels;
|
||||
|
||||
/// <summary>Scheda dell'entità selezionata (treno, stazione, industria, città) come nel pannello destro dell'immagine 01.</summary>
|
||||
public partial class InfoPanel : VBoxContainer
|
||||
@@ -197,7 +197,7 @@ public partial class InfoPanel : VBoxContainer
|
||||
}
|
||||
default:
|
||||
{
|
||||
AddChild(UiTheme.TitleLabel(T("Via Ferrea"), 38));
|
||||
AddChild(UiTheme.TitleLabel(T("Rail Enterprise"), 38));
|
||||
var help = UiTheme.Text(T("Scegli uno strumento a sinistra oppure fai clic su un treno, una stazione, un'industria o una città per vederne la scheda."), 14, Palette.TextSecondary);
|
||||
help.AutowrapMode = TextServer.AutowrapMode.WordSmart;
|
||||
AddChild(help);
|
||||
File renamed without changes.
+7
-7
@@ -1,12 +1,12 @@
|
||||
using Godot;
|
||||
using ViaFerrea.Client.App;
|
||||
using ViaFerrea.Client.Net;
|
||||
using ViaFerrea.Core.Commands;
|
||||
using ViaFerrea.Core.Common;
|
||||
using ViaFerrea.Core.Rail;
|
||||
using static ViaFerrea.Client.App.Localization;
|
||||
using RailEnterprise.Client.App;
|
||||
using RailEnterprise.Client.Net;
|
||||
using RailEnterprise.Core.Commands;
|
||||
using RailEnterprise.Core.Common;
|
||||
using RailEnterprise.Core.Rail;
|
||||
using static RailEnterprise.Client.App.Localization;
|
||||
|
||||
namespace ViaFerrea.Client.Panels;
|
||||
namespace RailEnterprise.Client.Panels;
|
||||
|
||||
/// <summary>Linee: fermate scelte con un clic sulle stazioni, nome e colore, attesa del pieno alla prima fermata.</summary>
|
||||
public partial class LinesPanel : VBoxContainer
|
||||
File renamed without changes.
+7
-7
@@ -1,12 +1,12 @@
|
||||
using Godot;
|
||||
using ViaFerrea.Client.App;
|
||||
using ViaFerrea.Client.Net;
|
||||
using ViaFerrea.Core.Commands;
|
||||
using ViaFerrea.Core.Common;
|
||||
using ViaFerrea.Protocol.Messages;
|
||||
using static ViaFerrea.Client.App.Localization;
|
||||
using RailEnterprise.Client.App;
|
||||
using RailEnterprise.Client.Net;
|
||||
using RailEnterprise.Core.Commands;
|
||||
using RailEnterprise.Core.Common;
|
||||
using RailEnterprise.Protocol.Messages;
|
||||
using static RailEnterprise.Client.App.Localization;
|
||||
|
||||
namespace ViaFerrea.Client.Panels;
|
||||
namespace RailEnterprise.Client.Panels;
|
||||
|
||||
/// <summary>
|
||||
/// Officine (sezione 10.3): politica della flotta, avvisi, flotta ordinata per condizione con la
|
||||
File renamed without changes.
+2
-2
@@ -1,7 +1,7 @@
|
||||
using Godot;
|
||||
using ViaFerrea.Client.App;
|
||||
using RailEnterprise.Client.App;
|
||||
|
||||
namespace ViaFerrea.Client.Panels;
|
||||
namespace RailEnterprise.Client.Panels;
|
||||
|
||||
/// <summary>Mattoni comuni dei pannelli laterali.</summary>
|
||||
public static class PanelKit
|
||||
File renamed without changes.
+4
-4
@@ -1,9 +1,9 @@
|
||||
using Godot;
|
||||
using ViaFerrea.Client.App;
|
||||
using ViaFerrea.Client.Map;
|
||||
using ViaFerrea.Core.Rail;
|
||||
using RailEnterprise.Client.App;
|
||||
using RailEnterprise.Client.Map;
|
||||
using RailEnterprise.Core.Rail;
|
||||
|
||||
namespace ViaFerrea.Client.Panels;
|
||||
namespace RailEnterprise.Client.Panels;
|
||||
|
||||
/// <summary>Grafico altimetrico del tracciato: terreno, quota del binario e opere colorate (pannello TrackProfile).</summary>
|
||||
public partial class ProfileChart : Control
|
||||
File renamed without changes.
+3
-3
@@ -1,8 +1,8 @@
|
||||
using Godot;
|
||||
using ViaFerrea.Client.App;
|
||||
using static ViaFerrea.Client.App.Localization;
|
||||
using RailEnterprise.Client.App;
|
||||
using static RailEnterprise.Client.App.Localization;
|
||||
|
||||
namespace ViaFerrea.Client.Panels;
|
||||
namespace RailEnterprise.Client.Panels;
|
||||
|
||||
/// <summary>
|
||||
/// Grafico di una serie (come ProfileChart): linea con area per i prezzi mensili delle azioni,
|
||||
File renamed without changes.
+6
-6
@@ -1,11 +1,11 @@
|
||||
using Godot;
|
||||
using ViaFerrea.Client.App;
|
||||
using ViaFerrea.Client.Net;
|
||||
using ViaFerrea.Core.Commands;
|
||||
using ViaFerrea.Core.Common;
|
||||
using static ViaFerrea.Client.App.Localization;
|
||||
using RailEnterprise.Client.App;
|
||||
using RailEnterprise.Client.Net;
|
||||
using RailEnterprise.Core.Commands;
|
||||
using RailEnterprise.Core.Common;
|
||||
using static RailEnterprise.Client.App.Localization;
|
||||
|
||||
namespace ViaFerrea.Client.Panels;
|
||||
namespace RailEnterprise.Client.Panels;
|
||||
|
||||
/// <summary>Strumento stazione: numero di binari, nome facoltativo, costo stimato; clic sulla mappa per posarla.</summary>
|
||||
public partial class StationPanel : VBoxContainer
|
||||
File renamed without changes.
+6
-6
@@ -1,11 +1,11 @@
|
||||
using Godot;
|
||||
using ViaFerrea.Client.App;
|
||||
using ViaFerrea.Core.Data;
|
||||
using ViaFerrea.Core.Rail;
|
||||
using ViaFerrea.Protocol.Client;
|
||||
using static ViaFerrea.Client.App.Localization;
|
||||
using RailEnterprise.Client.App;
|
||||
using RailEnterprise.Core.Data;
|
||||
using RailEnterprise.Core.Rail;
|
||||
using RailEnterprise.Protocol.Client;
|
||||
using static RailEnterprise.Client.App.Localization;
|
||||
|
||||
namespace ViaFerrea.Client.Panels;
|
||||
namespace RailEnterprise.Client.Panels;
|
||||
|
||||
/// <summary>
|
||||
/// Strumento binari: classe, ponti, gallerie, doppio binario, elettrificazione e quota; anteprima
|
||||
File renamed without changes.
+9
-9
@@ -1,14 +1,14 @@
|
||||
using Godot;
|
||||
using ViaFerrea.Client.App;
|
||||
using ViaFerrea.Client.Net;
|
||||
using ViaFerrea.Core.Commands;
|
||||
using ViaFerrea.Core.Common;
|
||||
using ViaFerrea.Core.Data;
|
||||
using ViaFerrea.Core.Rail;
|
||||
using ViaFerrea.Protocol.Messages;
|
||||
using static ViaFerrea.Client.App.Localization;
|
||||
using RailEnterprise.Client.App;
|
||||
using RailEnterprise.Client.Net;
|
||||
using RailEnterprise.Core.Commands;
|
||||
using RailEnterprise.Core.Common;
|
||||
using RailEnterprise.Core.Data;
|
||||
using RailEnterprise.Core.Rail;
|
||||
using RailEnterprise.Protocol.Messages;
|
||||
using static RailEnterprise.Client.App.Localization;
|
||||
|
||||
namespace ViaFerrea.Client.Panels;
|
||||
namespace RailEnterprise.Client.Panels;
|
||||
|
||||
/// <summary>
|
||||
/// Treni: acquisto dei veicoli in un deposito, composizione, assegnazione alle linee, rientro.
|
||||
File renamed without changes.
+6
-6
@@ -1,11 +1,11 @@
|
||||
using Godot;
|
||||
using ViaFerrea.Client.App;
|
||||
using ViaFerrea.Client.Panels;
|
||||
using ViaFerrea.Protocol.Client;
|
||||
using ViaFerrea.Protocol.Messages;
|
||||
using static ViaFerrea.Client.App.Localization;
|
||||
using RailEnterprise.Client.App;
|
||||
using RailEnterprise.Client.Panels;
|
||||
using RailEnterprise.Protocol.Client;
|
||||
using RailEnterprise.Protocol.Messages;
|
||||
using static RailEnterprise.Client.App.Localization;
|
||||
|
||||
namespace ViaFerrea.Client.Screens;
|
||||
namespace RailEnterprise.Client.Screens;
|
||||
|
||||
/// <summary>
|
||||
/// Cronaca finale (12.3), a tutto schermo sopra la partita: storia della compagnia anno per anno
|
||||
File renamed without changes.
+3
-3
@@ -1,8 +1,8 @@
|
||||
using Godot;
|
||||
using ViaFerrea.Client.App;
|
||||
using static ViaFerrea.Client.App.Localization;
|
||||
using RailEnterprise.Client.App;
|
||||
using static RailEnterprise.Client.App.Localization;
|
||||
|
||||
namespace ViaFerrea.Client.Screens;
|
||||
namespace RailEnterprise.Client.Screens;
|
||||
|
||||
/// <summary>
|
||||
/// Collegamento a un server (immagine 09 non fornita: palette e componenti dell'immagine 05).
|
||||
File renamed without changes.
+13
-13
@@ -1,18 +1,18 @@
|
||||
using Godot;
|
||||
using ViaFerrea.Client.App;
|
||||
using ViaFerrea.Client.Hud;
|
||||
using ViaFerrea.Client.Map;
|
||||
using ViaFerrea.Client.Net;
|
||||
using ViaFerrea.Client.Panels;
|
||||
using ViaFerrea.Core.Commands;
|
||||
using ViaFerrea.Core.Common;
|
||||
using ViaFerrea.Core.Data;
|
||||
using ViaFerrea.Core.Rail;
|
||||
using ViaFerrea.Protocol;
|
||||
using ViaFerrea.Protocol.Messages;
|
||||
using static ViaFerrea.Client.App.Localization;
|
||||
using RailEnterprise.Client.App;
|
||||
using RailEnterprise.Client.Hud;
|
||||
using RailEnterprise.Client.Map;
|
||||
using RailEnterprise.Client.Net;
|
||||
using RailEnterprise.Client.Panels;
|
||||
using RailEnterprise.Core.Commands;
|
||||
using RailEnterprise.Core.Common;
|
||||
using RailEnterprise.Core.Data;
|
||||
using RailEnterprise.Core.Rail;
|
||||
using RailEnterprise.Protocol;
|
||||
using RailEnterprise.Protocol.Messages;
|
||||
using static RailEnterprise.Client.App.Localization;
|
||||
|
||||
namespace ViaFerrea.Client.Screens;
|
||||
namespace RailEnterprise.Client.Screens;
|
||||
|
||||
/// <summary>
|
||||
/// Partita: mappa con i livelli, HUD (barra superiore, strumenti, pannello destro con minimappa,
|
||||
File renamed without changes.
+4
-4
@@ -1,8 +1,8 @@
|
||||
using Godot;
|
||||
using ViaFerrea.Client.App;
|
||||
using static ViaFerrea.Client.App.Localization;
|
||||
using RailEnterprise.Client.App;
|
||||
using static RailEnterprise.Client.App.Localization;
|
||||
|
||||
namespace ViaFerrea.Client.Screens;
|
||||
namespace RailEnterprise.Client.Screens;
|
||||
|
||||
/// <summary>Menu iniziale: partita locale (server figlio), collegamento a un server, lingua, uscita.</summary>
|
||||
public partial class MenuScreen : Control
|
||||
@@ -26,7 +26,7 @@ public partial class MenuScreen : Control
|
||||
var col = new VBoxContainer { CustomMinimumSize = new Vector2(440, 0) };
|
||||
col.AddThemeConstantOverride("separation", 14);
|
||||
center.AddChild(col);
|
||||
col.AddChild(UiTheme.TitleLabel("Via Ferrea", 96));
|
||||
col.AddChild(UiTheme.TitleLabel("Rail Enterprise", 96));
|
||||
col.AddChild(UiTheme.Text(T("Gestionale ferroviario dall'alto"), 18, Palette.TextSecondary));
|
||||
col.AddChild(new Control { CustomMinimumSize = new Vector2(0, 20) });
|
||||
var local = UiTheme.Primary(T("Partita locale"));
|
||||
Reference in new issue
Block a user