0
mirror of https://github.com/sampletext32/ParkanPlayground.git synced 2025-06-18 23:59:46 +03:00

add gameobjects view

This commit is contained in:
bird_egop
2024-11-28 05:07:17 +03:00
parent e16b219854
commit c50512ea52
4 changed files with 240 additions and 29 deletions

View File

@ -6,19 +6,4 @@ public enum ClanType
Player = 1,
AI = 2,
Neutral = 3
}
public static class Extensions
{
public static string ToReadableString(this ClanType clanType)
{
return clanType switch
{
ClanType.Environment => $"Окружение ({clanType:D})",
ClanType.Player => $"Игрок ({clanType:D})",
ClanType.AI => $"AI ({clanType:D})",
ClanType.Neutral => $"Нейтральный ({clanType:D})",
_ => $"Неизвестный ({clanType:D})"
};
}
}