0
mirror of https://github.com/sampletext32/ParkanPlayground.git synced 2025-06-19 07:59:47 +03:00

добавил tma в просмотр и отрефакторил код

This commit is contained in:
bird_egop
2024-11-26 04:05:25 +03:00
parent b336f44b72
commit e16b219854
28 changed files with 878 additions and 537 deletions

24
MissionTmaLib/ClanType.cs Normal file
View File

@ -0,0 +1,24 @@
namespace MissionTmaLib;
public enum ClanType
{
Environment = 0,
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})"
};
}
}