refactor: rename NotifyPropertyChanged to ObservableObject
This commit is contained in:
parent
bd50473bfb
commit
5388dea95f
@ -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;
|
||||
|
||||
|
@ -8,7 +8,7 @@ using System.Threading.Tasks;
|
||||
|
||||
namespace Client.Application.ViewModels
|
||||
{
|
||||
public class DropListViewModel : NotifyPropertyChanged
|
||||
public class DropListViewModel : ObservableObject
|
||||
{
|
||||
public uint Id
|
||||
{
|
||||
|
@ -9,7 +9,7 @@ using System.Threading.Tasks;
|
||||
|
||||
namespace Client.Application.ViewModels
|
||||
{
|
||||
public class HeroSummaryInfoViewModel : NotifyPropertyChanged
|
||||
public class HeroSummaryInfoViewModel : ObservableObject
|
||||
{
|
||||
public bool IsVisible {
|
||||
get
|
||||
|
@ -18,7 +18,7 @@ using System.Windows.Media;
|
||||
namespace Client.Application.ViewModels
|
||||
{
|
||||
public class MainViewModel :
|
||||
NotifyPropertyChanged,
|
||||
ObservableObject,
|
||||
EventHandlerInterface<HeroCreatedEvent>,
|
||||
EventHandlerInterface<HeroDeletedEvent>,
|
||||
EventHandlerInterface<CreatureCreatedEvent>,
|
||||
|
@ -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 = "")
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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; }
|
||||
|
@ -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;
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
namespace Client.Domain.ValueObjects
|
||||
{
|
||||
public class ExperienceInfo : NotifyPropertyChanged
|
||||
public class ExperienceInfo : ObservableObject
|
||||
{
|
||||
private uint level;
|
||||
private uint exp;
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
namespace Client.Domain.ValueObjects
|
||||
{
|
||||
public class FullName : NotifyPropertyChanged
|
||||
public class FullName : ObservableObject
|
||||
{
|
||||
private string nickname;
|
||||
private string title;
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
namespace Client.Domain.ValueObjects
|
||||
{
|
||||
public class InventoryInfo : NotifyPropertyChanged
|
||||
public class InventoryInfo : ObservableObject
|
||||
{
|
||||
private uint maxWeight;
|
||||
private uint weight;
|
||||
|
@ -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;
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
namespace Client.Domain.ValueObjects
|
||||
{
|
||||
public class Transform : NotifyPropertyChanged
|
||||
public class Transform : ObservableObject
|
||||
{
|
||||
private Vector3 position;
|
||||
private Vector3 rotation;
|
||||
|
@ -3,7 +3,7 @@ using System;
|
||||
|
||||
namespace Client.Domain.ValueObjects
|
||||
{
|
||||
public class Vector3 : NotifyPropertyChanged
|
||||
public class Vector3 : ObservableObject
|
||||
{
|
||||
private float x;
|
||||
private float y;
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
namespace Client.Domain.ValueObjects
|
||||
{
|
||||
public class VitalStats : NotifyPropertyChanged
|
||||
public class VitalStats : ObservableObject
|
||||
{
|
||||
private uint hp;
|
||||
private uint maxHp;
|
||||
|
Loading…
Reference in New Issue
Block a user