24 lines
800 B
C#
24 lines
800 B
C#
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;
|
|
}
|
|
}
|
|
}
|