chip-game/Assets/Scripts/Statistics/PlayerStatsRecord.cs
2026-01-12 09:36:17 +03:00

34 lines
1.1 KiB
C#

using System;
public class PlayerStatsRecord
{
public int Id { get; set; }
public string PlayerName { get; set; }
public float CompletionTimeSec { get; set; }
public int MovesCount { get; set; }
public DateTime CompletedAt { get; set; }
public bool IsSynced { get; set; }
public bool IsBot { get; set; } // Новое поле
public PlayerStatsRecord() { }
public PlayerStatsRecord(string playerName, float completionTimeSec, int movesCount, bool isBot = false)
{
PlayerName = playerName;
CompletionTimeSec = completionTimeSec;
MovesCount = movesCount;
CompletedAt = DateTime.Now;
IsSynced = false;
IsBot = isBot; // Новый параметр
}
public PlayerStatsRecord(string playerName, float completionTimeSec, int movesCount, DateTime completedAt, bool isBot = false)
{
PlayerName = playerName;
CompletionTimeSec = completionTimeSec;
MovesCount = movesCount;
CompletedAt = completedAt;
IsSynced = false;
IsBot = isBot; // Новый параметр
}
}