You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
926 B
36 lines
926 B
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
|
|
namespace ClassLib000.Walker
|
|
{
|
|
/// <summary>
|
|
/// Квадрат уборки
|
|
///- дата последней уборки
|
|
///- стены(СЗЮВ)
|
|
///- тип уборки(влажная / сухая / не убирать)
|
|
/// </summary>
|
|
public class CleanSpace
|
|
{
|
|
public DateTime DateClean;
|
|
public int X;
|
|
public int Y;
|
|
public bool WallEast;
|
|
public bool WallWest;
|
|
public bool WallSouth;
|
|
public bool WallNorth;
|
|
public ECleanType CleanType;
|
|
|
|
public CleanSpace(int x1, int y1)
|
|
{
|
|
this.X = x1;
|
|
this.Y = y1;
|
|
DateClean = DateTime.Now.AddYears(-1);
|
|
}
|
|
|
|
internal object GetContent()
|
|
{
|
|
return $"{X};{Y};{DateClean:yyyy.MM.dd};{(int)CleanType};{WallNorth};{WallSouth}...";
|
|
}
|
|
}
|
|
}
|
|
|