Files
raphael d6db0bfdb2 跨平台初版,修复了一些主线BUG,部分字符串做了汉化
武器精炼调整:普通、高级、稀有 的武器精炼上限递增
2024-08-07 15:11:07 +08:00

86 lines
1.8 KiB
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Library.SystemModels;
using MirDB;
namespace Server.DBModels
{
[UserObject]
public sealed class UserDrop : DBObject
{
[Association("UserDrops")]
public AccountInfo Account
{
get { return _Account; }
set
{
if (_Account == value) return;
var oldValue = _Account;
_Account = value;
OnChanged(oldValue, value, "Account");
}
}
private AccountInfo _Account;
public ItemInfo Item
{
get { return _Item; }
set
{
if (_Item == value) return;
var oldValue = _Item;
_Item = value;
OnChanged(oldValue, value, "Item");
}
}
private ItemInfo _Item;
public decimal Progress
{
get { return _Progress; }
set
{
if (_Progress == value) return;
var oldValue = _Progress;
_Progress = value;
OnChanged(oldValue, value, "Progress");
}
}
private decimal _Progress;
public long DropCount
{
get { return _DropCount; }
set
{
if (_DropCount == value) return;
var oldValue = _DropCount;
_DropCount = value;
OnChanged(oldValue, value, "DropCount");
}
}
private long _DropCount;
protected override void OnDeleted()
{
Account = null;
Item = null;
base.OnDeleted();
}
}
}