Files
L2Bot2.0/Client/Domain/Entities/Drop.cs
2023-02-07 22:21:15 +04:00

34 lines
1.3 KiB
C#

using Client.Domain.Common;
using Client.Domain.Enums;
using Client.Domain.ValueObjects;
namespace Client.Domain.Entities
{
public class Drop : ObservableObject, EntityInterface
{
private uint id;
private Transform transform;
private uint itemId;
private uint amount;
private string name;
private string iconName;
public uint Id { get => id; set => id = value; }
public Transform Transform { get => transform; set { if (value != transform) { transform = value; OnPropertyChanged(); } } }
public uint ItemId { get => itemId; set { if (value != itemId) { itemId = value; OnPropertyChanged(); } } }
public uint Amount { get => amount; set { if (value != amount) { amount = value; OnPropertyChanged(); } } }
public string Name { get => name; set { if (value != name) { name = value; OnPropertyChanged(); } } }
public string IconName { get => iconName; set { if (value != iconName) { iconName = value; OnPropertyChanged(); } } }
public Drop(uint id, Transform transform, uint itemId, uint amount, string name, string iconName)
{
this.id = id;
this.transform = transform;
this.itemId = itemId;
this.amount = amount;
this.name = name;
this.iconName = iconName;
}
}
}