mirror of
https://github.com/raphaelcheung/zircon-legend-server.git
synced 2026-10-22 01:27:41 +08:00
d6db0bfdb2
武器精炼调整:普通、高级、稀有 的武器精炼上限递增
86 lines
1.8 KiB
C#
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();
|
|
}
|
|
|
|
}
|
|
}
|