Развитие системы растений

This commit is contained in:
ThomasCharester committed 2026-03-02 18:25:46 +03:00
1 parent 1b578067f3
commit ba49ef5015
218 files changed
+70415 -1519

No files matched your search

@@ -3,19 +3,38 @@ using System.Collections.Generic;
namespace Code.Calendar.DataStructures
{
public struct Plant
public struct Plant : IEquatable<Plant>
{
public string Name;
public string IconPath;
public int Id;
public Guid Id;
public bool Equals(Plant other) => Id == other.Id;
public override bool Equals(object obj) => obj is Plant other && Equals(other);
public override int GetHashCode() => Id.GetHashCode();
}
public struct Task
public struct Task : IEquatable<Task>
{
public Guid Id;
public bool Active;
public string Description;
public DateTime Date;
public bool IsPeriodic;
public int PeriodicInterval;
public int PlantId;
public DateTime PeriodicUntil;
public Guid PlantId;
public List<string> PhotoPaths;
public bool Equals(Task other) => Id == other.Id;
public override bool Equals(object obj) => obj is Task other && Equals(other);
public override int GetHashCode() => Id.GetHashCode();
}
}