PIbd-23_Starostin_I.K._Lain.../lainer/Lainer1/EntityLainer.cs

24 lines
800 B
C#
Raw Normal View History

2023-12-03 18:15:11 +04:00
namespace ProjectLainer
{
public class EntityLainer
{
public int Speed { get; private set; }
public double Weight { get; private set; }
public Color BodyColor { get; private set; }
public Color AdditionalColor { get; private set; }
public bool Pool { get; private set; }
public bool Decks { get; private set; }
public double Step => (double)Speed * 100 / Weight;
public void Init(int speed, double weight, Color bodyColor, Color
additionalColor, bool ispool, bool addDecks)
{
Speed = speed;
Weight = weight;
BodyColor = bodyColor;
AdditionalColor = additionalColor;
Pool = ispool;
Decks = addDecks;
}
}
}