Nur was zum Bauen und Starten nötig ist: Mono/ (Spiel), Game/, Core/, Languages/, Assets/ (Bilder, Clips, 3D-Figuren, Ton), build-release.bat. Bauen: build-release.bat → Spiel\GladiatorIdle.exe Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
18 lines
1.0 KiB
C#
18 lines
1.0 KiB
C#
namespace GladiatorIdle
|
|
{
|
|
/// <summary>Kurzer Weg zu den Bildnamen (Assets/Sprites/<name>.png).</summary>
|
|
internal static class Art
|
|
{
|
|
public static string Fighter(GladiatorClass c) => "fig_" + c.ToString().ToLowerInvariant();
|
|
/// Vorlage des eigenen Gladiators (Teamfarbe in Magenta, im Spiel umgefärbt).
|
|
public static string Hero(GladiatorClass c, int preset) => $"hero_{c.ToString().ToLowerInvariant()}_{preset}";
|
|
/// "foe.brawler" → "foe_brawler", "champion.flamma" → "champ_flamma"
|
|
public static string Enemy(string nameKey) => nameKey.Replace("champion.", "champ_").Replace("foe.", "foe_");
|
|
public static string Arena(ArenaDef a) => "arena_" + a.Id;
|
|
public static string Stat(Stat s) => "icon_" + s.ToString().ToLowerInvariant();
|
|
public static string God(God g) => "icon_" + g.ToString().ToLowerInvariant();
|
|
public static string Upgrade(UpgradeDef u) =>
|
|
u.Stat is GladiatorIdle.Stat s ? Stat(s) : "icon_" + u.Id[(u.Id.IndexOf('.') + 1)..];
|
|
}
|
|
}
|