Compare commits
No commits in common. "7479a44cf36d617775500900b67b0c10eb8099dd" and "b24c1358e20c17c0e585e19c6d4b56d5161f21fd" have entirely different histories.
7479a44cf3
...
b24c1358e2
@ -1,4 +1,5 @@
|
||||
using Battleship.Exceptions;
|
||||
using Battleship.Drawings;
|
||||
using Battleship.Exceptions;
|
||||
|
||||
namespace Battleship.CollectionGenericObjects;
|
||||
|
||||
|
@ -44,12 +44,6 @@ public class StorageCollection<T>
|
||||
_storages = new Dictionary<CollectionInfo, ICollectionGenericObjects<T>>();
|
||||
}
|
||||
|
||||
private readonly string _collectionKey = "CollectionsStorage";
|
||||
|
||||
private readonly string _separatorForKeyValue = "|";
|
||||
|
||||
private readonly string _separatorItems = ";";
|
||||
|
||||
/// <summary>
|
||||
/// Добавление коллекции в хранилище
|
||||
/// </summary>
|
||||
|
@ -5,6 +5,18 @@
|
||||
/// </summary>
|
||||
public class EntityBattleship : EntityWarship
|
||||
{
|
||||
/// <summary>
|
||||
/// Скорость
|
||||
/// </summary>
|
||||
public int Speed { get; private set; }
|
||||
/// <summary>
|
||||
/// Вес
|
||||
/// </summary>
|
||||
public double Weight { get; private set; }
|
||||
/// <summary>
|
||||
/// Основной цвет
|
||||
/// </summary>
|
||||
public Color BodyColor { get; private set; }
|
||||
/// /// <summary>
|
||||
/// Признак (опция) отсека для ракет
|
||||
/// </summary>
|
||||
@ -45,15 +57,6 @@ public class EntityBattleship : EntityWarship
|
||||
AdditionalColor = additionalColor;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Получение строки с значением свойств объекта класса-сущности
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public override string[] GetStringRepresentation()
|
||||
{
|
||||
return new[] { nameof(EntityBattleship), Speed.ToString(), Weight.ToString(), BodyColor.Name, Compartment.ToString(), Tower.ToString(), BodyDeck.ToString(), AdditionalColor.Name};
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Создание продвинутого объекта из массива строк
|
||||
/// </summary>
|
||||
|
Loading…
Reference in New Issue
Block a user