refactor: rename NotifyPropertyChanged to ObservableObject

This commit is contained in:
k0t9i 2023-01-31 19:09:07 +04:00
parent bd50473bfb
commit 5388dea95f
16 changed files with 16 additions and 16 deletions

View File

@ -9,7 +9,7 @@ using System.Threading.Tasks;
namespace Client.Application.ViewModels
{
public class CreatureListViewModel : NotifyPropertyChanged
public class CreatureListViewModel : ObservableObject
{
public uint Id => creature.Id;

View File

@ -8,7 +8,7 @@ using System.Threading.Tasks;
namespace Client.Application.ViewModels
{
public class DropListViewModel : NotifyPropertyChanged
public class DropListViewModel : ObservableObject
{
public uint Id
{

View File

@ -9,7 +9,7 @@ using System.Threading.Tasks;
namespace Client.Application.ViewModels
{
public class HeroSummaryInfoViewModel : NotifyPropertyChanged
public class HeroSummaryInfoViewModel : ObservableObject
{
public bool IsVisible {
get

View File

@ -18,7 +18,7 @@ using System.Windows.Media;
namespace Client.Application.ViewModels
{
public class MainViewModel :
NotifyPropertyChanged,
ObservableObject,
EventHandlerInterface<HeroCreatedEvent>,
EventHandlerInterface<HeroDeletedEvent>,
EventHandlerInterface<CreatureCreatedEvent>,

View File

@ -8,7 +8,7 @@ using System.Threading.Tasks;
namespace Client.Domain.Common
{
public class NotifyPropertyChanged : INotifyPropertyChanged
public class ObservableObject : INotifyPropertyChanged
{
public event PropertyChangedEventHandler? PropertyChanged;
public void OnPropertyChanged([CallerMemberName] string prop = "")

View File

@ -3,7 +3,7 @@ using Client.Domain.ValueObjects;
namespace Client.Domain.Entities
{
public class Drop : NotifyPropertyChanged, EntityInterface
public class Drop : ObservableObject, EntityInterface
{
private uint id;
private Transform transform;

View File

@ -5,7 +5,7 @@ using System.Diagnostics;
namespace Client.Domain.Entities
{
public class Hero : NotifyPropertyChanged, EntityInterface, CreatureInterface
public class Hero : ObservableObject, EntityInterface, CreatureInterface
{
private FullName fullName;
private Phenotype phenotype;

View File

@ -10,7 +10,7 @@ using System.Threading.Tasks;
namespace Client.Domain.Entities
{
public class NPC : NotifyPropertyChanged, EntityInterface, CreatureInterface
public class NPC : ObservableObject, EntityInterface, CreatureInterface
{
public uint Id { get; set; }
public Transform Transform { get; set; }

View File

@ -11,7 +11,7 @@ using System.Threading.Tasks;
namespace Client.Domain.Entities
{
public class Player : NotifyPropertyChanged, EntityInterface, CreatureInterface
public class Player : ObservableObject, EntityInterface, CreatureInterface
{
private FullName fullName;
private Phenotype phenotype;

View File

@ -2,7 +2,7 @@
namespace Client.Domain.ValueObjects
{
public class ExperienceInfo : NotifyPropertyChanged
public class ExperienceInfo : ObservableObject
{
private uint level;
private uint exp;

View File

@ -2,7 +2,7 @@
namespace Client.Domain.ValueObjects
{
public class FullName : NotifyPropertyChanged
public class FullName : ObservableObject
{
private string nickname;
private string title;

View File

@ -2,7 +2,7 @@
namespace Client.Domain.ValueObjects
{
public class InventoryInfo : NotifyPropertyChanged
public class InventoryInfo : ObservableObject
{
private uint maxWeight;
private uint weight;

View File

@ -3,7 +3,7 @@ using Client.Domain.Enums;
namespace Client.Domain.ValueObjects
{
public class Phenotype : NotifyPropertyChanged
public class Phenotype : ObservableObject
{
private RaceEnum race;
private bool isMale;

View File

@ -2,7 +2,7 @@
namespace Client.Domain.ValueObjects
{
public class Transform : NotifyPropertyChanged
public class Transform : ObservableObject
{
private Vector3 position;
private Vector3 rotation;

View File

@ -3,7 +3,7 @@ using System;
namespace Client.Domain.ValueObjects
{
public class Vector3 : NotifyPropertyChanged
public class Vector3 : ObservableObject
{
private float x;
private float y;

View File

@ -2,7 +2,7 @@
namespace Client.Domain.ValueObjects
{
public class VitalStats : NotifyPropertyChanged
public class VitalStats : ObservableObject
{
private uint hp;
private uint maxHp;