142 lines
4.5 KiB
C#
142 lines
4.5 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Security.Principal;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
using Newtonsoft.Json;
|
|
|
|
|
|
using ServerBase;
|
|
using MetaAssets;
|
|
|
|
|
|
using ITEM_GUID = System.String;
|
|
using OWNER_GUID = System.String;
|
|
using META_ID = System.UInt32;
|
|
|
|
|
|
|
|
namespace ServerCommon.BusinessLogDomain;
|
|
|
|
public class ItemLogInfo : ILogInvoker.IInfo
|
|
{
|
|
public ItemLogInfo()
|
|
: base()
|
|
{ }
|
|
|
|
[JsonProperty]
|
|
public ITEM_GUID ItemGUID { get; set; } = string.Empty;
|
|
|
|
[JsonProperty]
|
|
public OwnerEntityType OwnerEntityType { get; set; } = OwnerEntityType.None;
|
|
[JsonProperty]
|
|
public OWNER_GUID OwnerGuid { get; set; } = string.Empty;
|
|
|
|
[JsonProperty]
|
|
public string ItemPK { get; set; } = string.Empty;
|
|
[JsonProperty]
|
|
public string ItemSK { get; set; } = string.Empty;
|
|
|
|
[JsonProperty]
|
|
public CountDeltaType CountDeltaType { get; set; } = CountDeltaType.None;
|
|
[JsonProperty]
|
|
public int StackCount { get; set; } = 0;
|
|
[JsonProperty]
|
|
public int DeltaCount { get; set; } = 0;
|
|
[JsonProperty]
|
|
public META_ID ItemMID { get; set; } = 0;
|
|
[JsonProperty]
|
|
public string ItemName { get; set; } = string.Empty;
|
|
[JsonProperty]
|
|
public int Level { get; set; } = 0;
|
|
[JsonProperty]
|
|
public int DeltaLevel { get; set; } = 0;
|
|
[JsonProperty]
|
|
public string ItemTypeLarge { get; set; } = string.Empty;
|
|
[JsonProperty]
|
|
public string ItemTypeSmall { get; set; } = string.Empty;
|
|
[JsonProperty]
|
|
public List<int> Attribute { get; set; } = new List<int>();
|
|
[JsonProperty]
|
|
public List<int> OldAttributes { get; set; } = new List<int>();
|
|
|
|
//=====================================================================================
|
|
// 로그 생성용 객체 정의
|
|
//=====================================================================================
|
|
public void setItemInfo(ItemLogInfo itemInfo)
|
|
{
|
|
ItemGUID = itemInfo.ItemGUID;
|
|
|
|
ItemPK = itemInfo.ItemPK;
|
|
ItemSK = itemInfo.ItemSK;
|
|
|
|
OwnerEntityType = itemInfo.OwnerEntityType;
|
|
OwnerGuid = itemInfo.OwnerGuid;
|
|
|
|
CountDeltaType = itemInfo.CountDeltaType;
|
|
StackCount = itemInfo.StackCount;
|
|
DeltaCount = itemInfo.DeltaCount;
|
|
ItemMID = itemInfo.ItemMID;
|
|
ItemName = itemInfo.ItemName;
|
|
Level = itemInfo.Level;
|
|
DeltaLevel = itemInfo.DeltaLevel;
|
|
ItemTypeLarge = itemInfo.ItemTypeLarge;
|
|
ItemTypeSmall = itemInfo.ItemTypeSmall;
|
|
Attribute = itemInfo.Attribute;
|
|
OldAttributes = itemInfo.OldAttributes;
|
|
}
|
|
|
|
//=====================================================================================
|
|
// 로그 출력용 객체 정의
|
|
//=====================================================================================
|
|
public ItemLogInfo(ILogInvoker parent, ItemLogInfo itemParam)
|
|
: base(parent)
|
|
{
|
|
if (null != itemParam)
|
|
{
|
|
setItemInfo(itemParam);
|
|
}
|
|
}
|
|
|
|
//=====================================================================================
|
|
// 로그 설정용 함수
|
|
//=====================================================================================
|
|
public void setLogProperty( ITEM_GUID itemGuid
|
|
, string itemPK, string itemSK
|
|
, OwnerEntityType ownerEntityType
|
|
, OWNER_GUID ownerGuid
|
|
, CountDeltaType countDeltaType
|
|
, int stackCount
|
|
, int deltaCount
|
|
, META_ID itemMetaId
|
|
, string itemName
|
|
, int level
|
|
, int deltaLevel
|
|
, EItemLargeType itemTypeLarge
|
|
, EItemSmallType itemTypeSmall
|
|
, List<int> attributes
|
|
, List<int> oldAttributes )
|
|
{
|
|
ItemGUID = itemGuid;
|
|
|
|
OwnerEntityType = ownerEntityType;
|
|
OwnerGuid = ownerGuid;
|
|
|
|
ItemPK = itemPK;
|
|
ItemSK = itemSK;
|
|
CountDeltaType = countDeltaType;
|
|
StackCount = stackCount;
|
|
DeltaCount = deltaCount;
|
|
ItemMID = itemMetaId;
|
|
ItemName = itemName;
|
|
Level = level;
|
|
DeltaLevel = deltaLevel;
|
|
ItemTypeLarge = itemTypeLarge.ToString();
|
|
ItemTypeSmall = itemTypeSmall.ToString();
|
|
Attribute = attributes;
|
|
OldAttributes = oldAttributes;
|
|
}
|
|
} |