namespace ODMO.Commons.ViewModel.SpawnPoint { public class SpawnPointCreationViewModel { /// /// 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 SpawnPointCreationViewModel() { Index = 1; } } }