namespace ODMO.Commons.ViewModel.SpawnPoint { public class SpawnPointUpdateViewModel { /// /// Unique sequential identifier. /// public long Id { get; set; } /// /// Region index. /// public byte Index { get; set; } /// /// Axys X position. /// public int X { get; set; } /// /// Axys Y position. /// public int Y { get; set; } /// /// Region name. /// public string Name { get; set; } public bool Invalid => string.IsNullOrEmpty(Name) || Index == 0; public SpawnPointUpdateViewModel() { Index = 1; } } }