mirror of
https://github.com/sampletext32/ParkanPlayground.git
synced 2025-06-18 15:49:47 +03:00
add gameobjects view
This commit is contained in:
@ -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})"
|
||||
};
|
||||
}
|
||||
}
|
28
MissionTmaLib/Extensions.cs
Normal file
28
MissionTmaLib/Extensions.cs
Normal file
@ -0,0 +1,28 @@
|
||||
namespace MissionTmaLib;
|
||||
|
||||
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})"
|
||||
};
|
||||
}
|
||||
|
||||
public static string ToReadableString(this GameObjectType type)
|
||||
{
|
||||
return type switch
|
||||
{
|
||||
GameObjectType.Building => $"Строение {type:D}",
|
||||
GameObjectType.Warbot => $"Варбот {type:D}",
|
||||
GameObjectType.Tree => $"Дерево {type:D}",
|
||||
GameObjectType.Stone => $"Камень {type:D}",
|
||||
_ => $"Неизвестный ({type:D})"
|
||||
};
|
||||
}
|
||||
}
|
@ -1,3 +1,3 @@
|
||||
namespace MissionTmaLib;
|
||||
|
||||
public record LodeInfo(Vector3 UnknownVector, int UnknownInt1, int UnknownInt2, float UnknownFloat, int UnknownInt3);
|
||||
public record LodeInfo(Vector3 UnknownVector, int UnknownInt1, int UnknownFlags2, float UnknownFloat, int UnknownInt3);
|
Reference in New Issue
Block a user