초기커밋

This commit is contained in:
2025-05-01 07:20:41 +09:00
commit 98bb2e3c5c
2747 changed files with 646947 additions and 0 deletions

View File

@@ -0,0 +1,47 @@
using Newtonsoft.Json;
using ServerCore;
using ServerBase;
using WORLD_ID = System.UInt32;
namespace ServerCommon;
public class CaliumActorLog : ILogActor
{
// 서버 정보
[JsonProperty]
public string RegionId { get; private set; } = string.Empty;
[JsonProperty]
public WORLD_ID WorldId { get; private set; } = 0;
[JsonProperty]
public ServerType ServerType { get; private set; } = ServerType.None;
public void initLogInfo( string regionId, WORLD_ID worldId, ServerType serverType)
{
RegionId = regionId;
WorldId = worldId;
ServerType = serverType;
}
public void setLogInfo(CaliumActorLog logInfo)
{
RegionId = logInfo.RegionId;
WorldId = logInfo.WorldId;
ServerType = logInfo.ServerType;
}
public CaliumActorLog()
{
}
public CaliumActorLog(CaliumActorLog logInfo)
{
setLogInfo(logInfo);
}
}

View File

@@ -0,0 +1,46 @@
using Newtonsoft.Json;
using ServerBase;
using WORLD_ID = System.UInt32;
namespace ServerCommon;
public class GlobalPartyActorLog : ILogActor
{
// 서버 정보
[JsonProperty]
public string RegionId { get; private set; } = string.Empty;
[JsonProperty]
public WORLD_ID WorldId { get; private set; } = 0;
[JsonProperty]
public ServerType ServerType { get; private set; } = ServerType.None;
public void initLogInfo( string regionId, WORLD_ID worldId, ServerType serverType)
{
RegionId = regionId;
WorldId = worldId;
ServerType = serverType;
}
public void setLogInfo(GlobalPartyActorLog logInfo)
{
RegionId = logInfo.RegionId;
WorldId = logInfo.WorldId;
ServerType = logInfo.ServerType;
}
public GlobalPartyActorLog()
{
}
public GlobalPartyActorLog(GlobalPartyActorLog logInfo)
{
setLogInfo(logInfo);
}
}

View File

@@ -0,0 +1,66 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Newtonsoft.Json;
using Newtonsoft.Json.Serialization;
using ServerCore;
using ServerBase;
using SESSION_ID = System.Int32;
using WORLD_ID = System.UInt32;
using META_ID = System.UInt32;
using ENTITY_GUID = System.String;
using ACCOUNT_ID = System.String;
using OWNER_GUID = System.String;
using USER_GUID = System.String;
using CHARACTER_GUID = System.String;
using ITEM_GUID = System.String;
namespace ServerCommon;
public class LandAuctionActorLog : ILogActor
{
// 서버 정보
[JsonProperty]
public string RegionId { get; private set; } = string.Empty;
[JsonProperty]
public WORLD_ID WorldId { get; private set; } = 0;
[JsonProperty]
public ServerType ServerType { get; private set; } = ServerType.None;
public void initLogInfo(string regionId, WORLD_ID worldId, ServerType serverType)
{
RegionId = regionId;
WorldId = worldId;
ServerType = serverType;
}
public void setLogInfo(LandAuctionActorLog logInfo)
{
RegionId = logInfo.RegionId;
WorldId = logInfo.WorldId;
ServerType = logInfo.ServerType;
}
public LandAuctionActorLog()
{
}
public LandAuctionActorLog(LandAuctionActorLog logInfo)
{
setLogInfo(logInfo);
}
}

View File

@@ -0,0 +1,50 @@
using Newtonsoft.Json;
using ServerBase;
using WORLD_ID = System.UInt32;
namespace ServerCommon;
public class LogicActorLog : ILogActor
{
// 서버 정보
[JsonProperty]
public string RegionId { get; private set; } = string.Empty;
[JsonProperty]
public WORLD_ID WorldId { get; private set; } = 0;
[JsonProperty]
public ServerType ServerType { get; private set; } = ServerType.None;
[JsonProperty]
public string ServerDetail { get; private set; } = string.Empty;
public void initLogInfo( string regionId, WORLD_ID worldId
, ServerType serverType, string serverDetail)
{
RegionId = regionId;
WorldId = worldId;
ServerType = serverType;
ServerDetail = serverDetail;
}
public void setLogInfo(LogicActorLog logInfo)
{
RegionId = logInfo.RegionId;
WorldId = logInfo.WorldId;
ServerType = logInfo.ServerType;
ServerDetail = logInfo.ServerDetail;
}
public LogicActorLog()
{
}
public LogicActorLog(LogicActorLog logInfo)
{
setLogInfo(logInfo);
}
}

View File

@@ -0,0 +1,47 @@
using Newtonsoft.Json;
using WORLD_ID = System.UInt32;
using ServerCore;
using ServerBase;
namespace ServerCommon;
public class NoticeChatActorLog : ILogActor
{
// 서버 정보
[JsonProperty]
public string RegionId { get; private set; } = string.Empty;
[JsonProperty]
public WORLD_ID WorldId { get; private set; } = 0;
[JsonProperty]
public ServerType ServerType { get; private set; } = ServerType.None;
public void initLogInfo(string regionId, WORLD_ID worldId, ServerType serverType)
{
RegionId = regionId;
WorldId = worldId;
ServerType = serverType;
}
public void setLogInfo(NoticeChatActorLog logInfo)
{
RegionId = logInfo.RegionId;
WorldId = logInfo.WorldId;
ServerType = logInfo.ServerType;
}
public NoticeChatActorLog()
{
}
public NoticeChatActorLog(NoticeChatActorLog logInfo)
{
setLogInfo(logInfo);
}
}

View File

@@ -0,0 +1,46 @@
using Newtonsoft.Json;
using ServerBase;
using WORLD_ID = System.UInt32;
namespace ServerCommon;
public class SystemMailActorLog : ILogActor
{
// 서버 정보
[JsonProperty]
public string RegionId { get; private set; } = string.Empty;
[JsonProperty]
public WORLD_ID WorldId { get; private set; } = 0;
[JsonProperty]
public ServerType ServerType { get; private set; } = ServerType.None;
public void initLogInfo(string regionId, WORLD_ID worldId, ServerType serverType)
{
RegionId = regionId;
WorldId = worldId;
ServerType = serverType;
}
public void setLogInfo(GlobalPartyActorLog logInfo)
{
RegionId = logInfo.RegionId;
WorldId = logInfo.WorldId;
ServerType = logInfo.ServerType;
}
public SystemMailActorLog()
{
}
public SystemMailActorLog(GlobalPartyActorLog logInfo)
{
setLogInfo(logInfo);
}
}

View File

@@ -0,0 +1,128 @@
using System;
using System.Collections.Generic;
using Newtonsoft.Json;
using Newtonsoft.Json.Serialization;
using ServerCore;
using ServerBase;
using SESSION_ID = System.Int32;
using WORLD_ID = System.UInt32;
using META_ID = System.UInt32;
using ENTITY_GUID = System.String;
using ACCOUNT_ID = System.String;
using OWNER_GUID = System.String;
using USER_GUID = System.String;
using CHARACTER_GUID = System.String;
using ITEM_GUID = System.String;
namespace ServerCommon;
//===================================================================================
// 로그 주체 : UserActorLog,
//===================================================================================
public class UserActorLog : ILogActor
{
// 서버 정보
[JsonProperty]
public string RegionId { get; private set; } = string.Empty;
[JsonProperty]
public WORLD_ID WorldId { get; private set; } = 0;
[JsonProperty]
public ServerType ServerType { get; private set; } = ServerType.None;
[JsonProperty]
public string ServerDetail { get; private set; } = string.Empty;
// 계정 정보
[JsonProperty]
public string AccountIdString { get; private set; } = string.Empty; // 계정 식별 문자열
[JsonProperty]
public string AccountId { get; private set; } = string.Empty; // 계정 식별키
// 유저 정보
[JsonProperty]
public string UserGuid { get; private set; } = string.Empty; // 유저 식별키
[JsonProperty]
public string UserNickname { get; set; } = string.Empty;
[JsonProperty]
public UInt16 UserLevel { get; private set; } = 0;
// 캐릭터 정보
[JsonProperty]
public META_ID CharacterMetaId { get; private set; } = 0;
[JsonProperty]
public CharRace CharacterRace { get; private set; } = CharRace.None;
// 기타
[JsonProperty]
public AuthAdminLevelType AuthAdminLevelType { get; private set; } = AuthAdminLevelType.None;
[JsonProperty]
public AccountType AccountType { get; private set; } = AccountType.None;
[JsonProperty]
public AccountCreationType AccountCreationType { get; private set; } = AccountCreationType.None;
[JsonProperty]
public Google.Protobuf.ByteString WebAuthParams { get; private set; } = Google.Protobuf.ByteString.Empty;
public void initLogInfo( string regionId, WORLD_ID worldId
, ServerType serverType
, string serverDetail
, string accountIdString, string accountId
, string userGuid
, string userNickname
, UInt16 userLevel
, META_ID charMetaId, CharRace charRace
, AuthAdminLevelType authAdminLevelType
, AccountType accountType
, AccountCreationType accountCreationType
, Google.Protobuf.ByteString webAuthParams)
{
RegionId = regionId;
WorldId = worldId;
ServerType = serverType;
ServerDetail = serverDetail;
AccountIdString = accountIdString;
AccountId = accountId;
UserGuid = userGuid;
UserNickname = userNickname;
UserLevel = UserLevel;
CharacterMetaId = charMetaId;
CharacterRace = charRace;
AuthAdminLevelType = authAdminLevelType;
AccountType = accountType;
AccountCreationType = accountCreationType;
WebAuthParams = webAuthParams;
}
public void setLogInfo(UserActorLog logInfo)
{
RegionId = logInfo.RegionId;
WorldId = logInfo.WorldId;
ServerType = logInfo.ServerType;
ServerDetail = logInfo.ServerDetail;
UserGuid = logInfo.UserGuid;
AccountIdString = logInfo.AccountIdString;
AccountId = logInfo.AccountId;
UserNickname = logInfo.UserNickname;
UserLevel = logInfo.UserLevel;
CharacterMetaId = logInfo.CharacterMetaId;
CharacterRace = logInfo.CharacterRace;
AuthAdminLevelType = logInfo.AuthAdminLevelType;
AccountType = logInfo.AccountType;
AccountCreationType = logInfo.AccountCreationType;
WebAuthParams = logInfo.WebAuthParams;
}
public UserActorLog()
{
}
public UserActorLog(UserActorLog logInfo)
{
setLogInfo(logInfo);
}
}//UserActorLog

View File

@@ -0,0 +1,46 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Newtonsoft.Json;
using ServerCore;
using ServerBase;
using META_ID = System.UInt32;
using CHARACTER_GUID = System.String;
using META_TYPE = System.String;
namespace ServerCommon.BusinessLogDomain;
public static class CharacterBusinessLogHelper
{
public static async Task<(Result, CharacterLogInfo?)> toCharacterLogInfo(this CharacterAttribute characterAttribute)
{
var result = new Result();
(result, var character_base_doc) = await characterAttribute.toDocBase(false);
NullReferenceCheckHelper.throwIfNull(character_base_doc, () => $"character_base_doc is null !!!");
if (result.isFail())
{
return (result, null);
}
var character_base_attrib = character_base_doc.getAttrib<CharacterBaseAttrib>();
NullReferenceCheckHelper.throwIfNull(character_base_attrib, () => $"character_base_attrib is null !!!");
var character_log_info = new CharacterLogInfo();
character_log_info.setLogProperty( character_base_attrib.CharacterGuid
, character_base_doc.getPK(), character_base_doc.getSK()
, character_base_attrib.ApperanceProfileValue.CustomValues
);
return await Task.FromResult((result, character_log_info));
}
}

View File

@@ -0,0 +1,84 @@
using Amazon.S3.Model;
using ServerControlCenter;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ServerCore; using ServerBase;
namespace ServerCommon.BusinessLogDomain
{
public static class ItemBusinessLogHelper
{
public static (Result, ItemLogInfo?) toItemLogInfo( this ItemAttributeBase itemAttributeBase )
{
var try_pending_item_doc = itemAttributeBase.getTryPendingDocBase() as ItemDoc;
NullReferenceCheckHelper.throwIfNull(try_pending_item_doc, () => $"try_pending_item_doc is null !!!");
var item_attrib = try_pending_item_doc.getAttrib<ItemAttrib>();
NullReferenceCheckHelper.throwIfNull(item_attrib, () => $"item_attrib is null !!! : {itemAttributeBase.toBasicString()}");
var result = new Result();
var item_meta_id = (int)itemAttributeBase.ItemMetaId;
if (false == MetaData.Instance._ItemTable.TryGetValue(item_meta_id, out var found_item_meta_data))
{
var err_msg = $"Failed to TryGetValue() !!! : itemMetaId:{item_meta_id} - {itemAttributeBase.toBasicString()}";
result.setFail(ServerErrorCode.ItemMetaDataNotFound, err_msg);
Log.getLogger().error(result.toBasicString());
return (result, null);
}
var log_item_info = new ItemLogInfo();
log_item_info.setLogProperty( item_attrib.ItemGuid
, try_pending_item_doc.getPK(), try_pending_item_doc.getSK()
, item_attrib.OwnerEntityType, item_attrib.OwnerGuid
, CountDeltaType.None, item_attrib.ItemStackCount, 0
, item_attrib.ItemMetaId, found_item_meta_data.Name
, item_attrib.Level, 0
, found_item_meta_data.TypeLarge, found_item_meta_data.TypeSmall
, itemAttributeBase.Attributes.Select(x => (int)x).ToList(), new List<int>() );
return (result, log_item_info);
}
public static async Task<(Result, ItemLogInfo?)> toItemLogInfo4Create( this ItemDoc itemDoc )
{
var result = new Result();
var item_attrib = itemDoc.getAttrib<ItemAttrib>();
NullReferenceCheckHelper.throwIfNull(item_attrib, () => $"item_attrib is null !!!");
var item_meta_id = (int)item_attrib.ItemMetaId;
if (false == MetaData.Instance._ItemTable.TryGetValue(item_meta_id, out var found_item_meta_data))
{
var err_msg = $"Failed to TryGetValue() !!! : itemMetaId:{item_meta_id} - {item_attrib.toBasicString()}";
result.setFail(ServerErrorCode.ItemMetaDataNotFound, err_msg);
Log.getLogger().error(result.toBasicString());
return (result, null);
}
var delta_stack_count = item_attrib.ItemStackCount;
var delta_level = item_attrib.Level;
var log_item_info = new ItemLogInfo();
log_item_info.setLogProperty( item_attrib.ItemGuid
, itemDoc.getPK(), itemDoc.getSK()
, item_attrib.OwnerEntityType, item_attrib.OwnerGuid
, CountDeltaType.Acquire, item_attrib.ItemStackCount, delta_stack_count
, item_attrib.ItemMetaId, found_item_meta_data.Name
, item_attrib.Level, delta_level
, found_item_meta_data.TypeLarge, found_item_meta_data.TypeSmall
, item_attrib.Attributes.Select(x => (int)x).ToList(), new List<int>() );
return await Task.FromResult((result, log_item_info));
}
}
}

View File

@@ -0,0 +1,35 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ServerCore;
using ServerBase;
namespace ServerCommon.BusinessLogDomain;
public class AddressBusinessLog : ILogInvokerEx
{
private AddressLogInfo m_data_to_log;
public AddressBusinessLog(AddressLogInfo logParam)
: base(LogDomainType.Address)
{
m_data_to_log = new AddressLogInfo(this, logParam);
}
public override bool hasLog()
{
return true;
}
protected override void fillup(ref BusinessLog.LogBody body)
{
body.append(m_data_to_log);
}
}

View File

@@ -0,0 +1,39 @@

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ServerCore;
using ServerBase;
namespace ServerCommon.BusinessLogDomain;
public class BeaconBusinessLog : ILogInvokerEx
{
private BeaconLogInfo m_beacon_log_info;
public BeaconBusinessLog(LogAction logAction, BeaconLogInfo logInfo)
: base(LogDomainType.Beacon, logAction)
{
m_beacon_log_info = new BeaconLogInfo(this, logInfo);
}
public override bool hasLog()
{
return true;
}
protected override void fillup(ref BusinessLog.LogBody body)
{
body.append(m_beacon_log_info);
}
public BeaconLogInfo getInfo()
{
return m_beacon_log_info;
}
}

View File

@@ -0,0 +1,39 @@

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ServerCore;
using ServerBase;
namespace ServerCommon.BusinessLogDomain;
public class BeaconCreateBusinessLog : ILogInvokerEx
{
private BeaconCreateLogInfo m_beacon_create_log_info;
public BeaconCreateBusinessLog(LogAction logAction, DateTime createdTime, BeaconCreateLogInfo logInfo)
: base(LogDomainType.BeaconCreate, logAction)
{
m_beacon_create_log_info = new BeaconCreateLogInfo(this, createdTime, logInfo);
}
public override bool hasLog()
{
return true;
}
protected override void fillup(ref BusinessLog.LogBody body)
{
body.append(m_beacon_create_log_info);
}
public BeaconCreateLogInfo getInfo()
{
return m_beacon_create_log_info;
}
}

View File

@@ -0,0 +1,26 @@

using ServerBase;
namespace ServerCommon.BusinessLogDomain;
public class BuildingBusinessLog : ILogInvokerEx
{
private BuildingLogInfo m_data_to_log;
public BuildingBusinessLog(BuildingLogInfo logParam)
: base(LogDomainType.Building)
{
m_data_to_log = new BuildingLogInfo(this, logParam);
}
public override bool hasLog()
{
return true;
}
protected override void fillup(ref BusinessLog.LogBody body)
{
body.append(m_data_to_log);
}
}

View File

@@ -0,0 +1,26 @@
using ServerBase;
namespace ServerCommon.BusinessLogDomain;
public class BuildingProfitBusinessLog : ILogInvokerEx
{
private BuildingProfitLogInfo m_data_to_log;
public BuildingProfitBusinessLog(BuildingProfitLogInfo logParam)
: base(LogDomainType.BuildingProfit)
{
m_data_to_log = new BuildingProfitLogInfo(this, logParam);
}
public override bool hasLog()
{
return true;
}
protected override void fillup(ref BusinessLog.LogBody body)
{
body.append(m_data_to_log);
}
}

View File

@@ -0,0 +1,31 @@

using ServerCore;
using ServerBase;
namespace ServerCommon.BusinessLogDomain;
public class CaliumBusinessLog : ILogInvokerEx
{
private readonly CaliumConverterLogData _converterLogData;
public CaliumBusinessLog(CaliumConverterLogData converterLogData)
: base(LogDomainType.Calium)
{
_converterLogData = converterLogData;
}
public CaliumBusinessLog(LogAction logAction, CaliumConverterLogData converterLogData)
: base(LogDomainType.Calium, logAction)
{
_converterLogData = converterLogData;
}
public override bool hasLog() => true;
protected override void fillup(ref BusinessLog.LogBody body)
{
body.append(new CaliumConverterLogData(this, _converterLogData));
}
}

View File

@@ -0,0 +1,29 @@

using ServerBase;
using ServerCommon;
namespace ServerCommon.BusinessLogDomain;
public class ChangeDanceEntityStateBusinessLog : ILogInvokerEx
{
private ChangeDanceEntityState m_data;
public ChangeDanceEntityStateBusinessLog(EntityStateType originType, EntityStateType changeType, string metaGuid, UInt32 metaId)
: base(LogDomainType.ChangeDanceEntityState)
{
m_data = new(this, originType, changeType, metaGuid, metaId);
}
public override bool hasLog()
{
return true;
}
protected override void fillup(ref BusinessLog.LogBody body)
{
body.append(m_data);
}
}

View File

@@ -0,0 +1,50 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Newtonsoft.Json;
using ServerCore;
using ServerBase;
using ServerCommon;
using META_ID = System.UInt32;
using CHARACTER_GUID = System.String;
using META_TYPE = System.String;
namespace ServerCommon.BusinessLogDomain;
public class CharacterBusinessLog : ILogInvokerEx
{
private CharacterLogInfo m_character_log_info;
public CharacterBusinessLog(LogAction logAction, CharacterLogInfo logInfo)
: base(LogDomainType.Character, logAction)
{
ArgumentNullReferenceCheckHelper.throwIfNull(logInfo, () => $"logInfo is null !!!");
m_character_log_info = new CharacterLogInfo(this, logInfo);
}
public override bool hasLog()
{
return true;
}
protected override void fillup(ref BusinessLog.LogBody body)
{
body.append(m_character_log_info);
}
public CharacterLogInfo getInfo()
{
return m_character_log_info;
}
}

View File

@@ -0,0 +1,43 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ServerCore;
using ServerBase;
namespace ServerCommon.BusinessLogDomain;
public class CharacterCreateBusinessLog : ILogInvokerEx
{
private CharacterCreateLogInfo m_character_create_log_info;
public CharacterCreateBusinessLog(LogAction logAction, DateTime createdTime, CharacterCreateLogInfo logInfo)
: base(LogDomainType.CharacterCreate, logAction)
{
ArgumentNullReferenceCheckHelper.throwIfNull(logInfo, () => $"logInfo is null !!!");
m_character_create_log_info = new CharacterCreateLogInfo(this, createdTime, logInfo);
}
public override bool hasLog()
{
return true;
}
protected override void fillup(ref BusinessLog.LogBody body)
{
body.append(m_character_create_log_info);
}
public CharacterCreateLogInfo getInfo()
{
return m_character_create_log_info;
}
}

View File

@@ -0,0 +1,39 @@

using ServerCore;
using ServerBase;
namespace ServerCommon.BusinessLogDomain;
public class CurrencyDeltaUpdateBusinessLog : ILogInvokerEx
{
CurrencyInfo m_currency_info;
public CurrencyDeltaUpdateBusinessLog( CurrencyType currencyType
, AmountDeltaType deltaType, double deltaAmount, double currencyAmount )
: base(LogDomainType.Currency)
{
m_currency_info = new CurrencyInfo(this, currencyType, deltaType, deltaAmount, currencyAmount);
}
public override bool hasLog()
{
return true;
}
protected override void fillup(ref BusinessLog.LogBody body)
{
body.append(m_currency_info);
}
public CurrencyInfo getInfo()
{
return m_currency_info;
}
}

View File

@@ -0,0 +1,51 @@

using ServerCore;
using ServerBase;
namespace ServerCommon.BusinessLogDomain;
public class DailyRefreshBusinessLog : ILogInvoker
{
private DailyRefreshLogData m_data_to_log;
public DailyRefreshBusinessLog()
: base()
{
m_data_to_log = new();
}
public override bool hasLog()
{
return true;
}
protected override void fillup(ref BusinessLog.LogBody body)
{
body.append(m_data_to_log);
}
}
public class EmptyBusinessWithLogActor : IWithLogActor
{
public ILogActor toLogActor()
{
var log_info = new EmptyBusinessLogActor();
return log_info;
}
}
public class EmptyBusinessLogActor : ILogActor
{
public DateTime m_date { get; set; } = DateTimeHelper.Current;
public EmptyBusinessLogActor()
{
m_date = DateTimeHelper.Current;
}
public EmptyBusinessLogActor(EmptyBusinessLogActor logInfo)
{
m_date = logInfo.m_date;
}
}

View File

@@ -0,0 +1,38 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ServerCore;
using ServerBase;
namespace ServerCommon.BusinessLogDomain;
public class FarmingBusinessLog : ILogInvokerEx
{
private readonly FarmingLogInfo m_farming_log_info;
public FarmingBusinessLog(LogAction logAction, FarmingLogInfo logInfo)
: base(LogDomainType.Farming, logAction)
{
m_farming_log_info = new FarmingLogInfo(this, logInfo);
}
public override bool hasLog()
{
return true;
}
protected override void fillup(ref BusinessLog.LogBody body)
{
body.append(m_farming_log_info);
}
public FarmingLogInfo getInfo()
{
return m_farming_log_info;
}
}

View File

@@ -0,0 +1,37 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ServerBase;
namespace ServerCommon.BusinessLogDomain;
public class FarmingRewardBusinessLog : ILogInvokerEx
{
private readonly FarmingRewardLogInfo m_farming_reward_log_info;
public FarmingRewardBusinessLog(LogAction logAction, FarmingRewardLogInfo logInfo)
: base(LogDomainType.FarmingReward, logAction)
{
m_farming_reward_log_info = new FarmingRewardLogInfo(this, logInfo);
}
public override bool hasLog()
{
return true;
}
protected override void fillup(ref BusinessLog.LogBody body)
{
body.append(m_farming_reward_log_info);
}
public FarmingRewardLogInfo getInfo()
{
return m_farming_reward_log_info;
}
}

View File

@@ -0,0 +1,37 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ServerCore;
using ServerBase;
namespace ServerCommon.BusinessLogDomain;
public class GameLogInOutBusinessLog : ILogInvokerEx
{
private DateTime m_log_time = DateTimeHelper.MinTime;
private GameLogInOutLogInfo m_data_to_log;
public GameLogInOutBusinessLog(LogAction logAction, DateTime logTime, GameLogInOutLogInfo logParam)
: base(LogDomainType.GameLogInOut, logAction)
{
m_log_time = logTime;
m_data_to_log = logParam;
}
public override bool hasLog()
{
return true;
}
protected override void fillup(ref BusinessLog.LogBody body)
{
body.append(new GameLogInOutLogInfo(this, m_log_time, m_data_to_log));
}
}

View File

@@ -0,0 +1,34 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ServerCore;
using ServerBase;
namespace ServerCommon.BusinessLogDomain;
public class GameLogInOutSnapShotBusinessLog : ILogInvokerEx
{
private GameLogInOutSnapShotLogInfo m_data_to_log;
public GameLogInOutSnapShotBusinessLog(LogAction logAction, GameLogInOutSnapShotLogInfo logParam)
: base(LogDomainType.GameLogInOut, logAction)
{
m_data_to_log = logParam;
}
public override bool hasLog()
{
return true;
}
protected override void fillup(ref BusinessLog.LogBody body)
{
body.append(new GameLogInOutSnapShotLogInfo(this, m_data_to_log));
}
}

View File

@@ -0,0 +1,30 @@
using ServerCommon;
using ServerCommon.BusinessLogDomain;
using ServerCore;
using ServerBase;
namespace ServerCommon.BusinessLogDomain;
public class ItemBusinessLog : ILogInvokerEx
{
private readonly ItemLogInfo m_data_to_log;
public ItemBusinessLog(ItemLogInfo itemParam)
: base(LogDomainType.Item)
{
m_data_to_log = new ItemLogInfo(this, itemParam);
}
public override bool hasLog()
{
return true;
}
protected override void fillup(ref BusinessLog.LogBody body)
{
body.append(m_data_to_log);
}
}

View File

@@ -0,0 +1,32 @@

using Newtonsoft.Json;
using ServerBase;
using ServerCommon;
namespace ServerCommon.BusinessLogDomain;
public class ItemPurchaseBusinessLog : ILogInvokerEx
{
private ItemPurchase m_data_to_log;
public ItemPurchaseBusinessLog(int npcMID, int shopMID, int productMID, int productCount)
: base(LogDomainType.Item)
{
m_data_to_log = new(this, npcMID, shopMID, productMID, productCount);
}
public override bool hasLog()
{
return true;
}
protected override void fillup(ref BusinessLog.LogBody body)
{
body.append(new ItemPurchase(this, m_data_to_log.NPCMID, m_data_to_log.ShopMID, m_data_to_log.ProductMID, m_data_to_log.ProductCount));
}
}

View File

@@ -0,0 +1,38 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ServerCore;
using ServerBase;
namespace ServerCommon.BusinessLogDomain;
public class LandAuctionActivityBusinessLog : ILogInvokerEx
{
private readonly LandAuctionActivityLogInfo m_land_auction_activity_log_info;
public LandAuctionActivityBusinessLog(LogAction logAction, LandAuctionActivityLogInfo logInfo)
: base(LogDomainType.LandAuctionActivity, logAction)
{
m_land_auction_activity_log_info = new LandAuctionActivityLogInfo(this, logInfo);
}
public override bool hasLog()
{
return true;
}
protected override void fillup(ref BusinessLog.LogBody body)
{
body.append(m_land_auction_activity_log_info);
}
public LandAuctionActivityLogInfo getInfo()
{
return m_land_auction_activity_log_info;
}
}

View File

@@ -0,0 +1,32 @@

using ServerBase;
namespace ServerCommon.BusinessLogDomain;
public class LandAuctionBidBusinessLog : ILogInvokerEx
{
private readonly LandAuctionBidLogInfo m_land_auction_bid_log_info;
public LandAuctionBidBusinessLog(LogAction logAction, LandAuctionBidLogInfo logInfo)
: base(LogDomainType.LandAuctionBid, logAction)
{
m_land_auction_bid_log_info = new LandAuctionBidLogInfo(this, logInfo);
}
public override bool hasLog()
{
return true;
}
protected override void fillup(ref BusinessLog.LogBody body)
{
body.append(m_land_auction_bid_log_info);
}
public LandAuctionBidLogInfo getInfo()
{
return m_land_auction_bid_log_info;
}
}

View File

@@ -0,0 +1,39 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ServerCore;
using ServerBase;
namespace ServerCommon.BusinessLogDomain;
public class LandAuctionBidPriceRefundBusinessLog : ILogInvokerEx
{
private readonly LandAuctionBidPriceRefundLogInfo m_land_auction_bid_price_refund_log_info;
public LandAuctionBidPriceRefundBusinessLog(LogAction logAction, LandAuctionBidPriceRefundLogInfo logInfo)
: base(LogDomainType.LandAuctionBidPriceRefund, logAction)
{
m_land_auction_bid_price_refund_log_info = new LandAuctionBidPriceRefundLogInfo(this, logInfo);
}
public override bool hasLog()
{
return true;
}
protected override void fillup(ref BusinessLog.LogBody body)
{
body.append(m_land_auction_bid_price_refund_log_info);
}
public LandAuctionBidPriceRefundLogInfo getInfo()
{
return m_land_auction_bid_price_refund_log_info;
}
}

View File

@@ -0,0 +1,38 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ServerCore;
using ServerBase;
namespace ServerCommon.BusinessLogDomain;
public class LandAuctionBusinessLog : ILogInvokerEx
{
private readonly LandAuctionLogInfo m_land_auction_log_info;
public LandAuctionBusinessLog(LogAction logAction, LandAuctionLogInfo logInfo)
: base(LogDomainType.LandAuction, logAction)
{
m_land_auction_log_info = new LandAuctionLogInfo(this, logInfo);
}
public override bool hasLog()
{
return true;
}
protected override void fillup(ref BusinessLog.LogBody body)
{
body.append(m_land_auction_log_info);
}
public LandAuctionLogInfo getInfo()
{
return m_land_auction_log_info;
}
}

View File

@@ -0,0 +1,29 @@

using ServerCore;
using ServerBase;
namespace ServerCommon.BusinessLogDomain;
public class LandBusinessLog : ILogInvokerEx
{
private LandLogInfo m_data_to_log;
public LandBusinessLog(LandLogInfo logParam)
: base(LogDomainType.Land)
{
m_data_to_log = logParam;
}
public override bool hasLog()
{
return true;
}
protected override void fillup(ref BusinessLog.LogBody body)
{
body.append(new LandLogInfo(this, m_data_to_log));
}
}

View File

@@ -0,0 +1,31 @@
using Google.Protobuf;
using Google.Protobuf.WellKnownTypes;
using ServerCore;
using ServerBase;
using ServerCommon.BusinessLogDomain;
using MetaAssets;
namespace ServerCommon.BusinessLogDomain;
public class MailBusinessLog : ILogInvokerEx
{
private MailLogData m_data_to_log;
public MailBusinessLog(MailLogData log_data_param)
: base(LogDomainType.Mail)
{
m_data_to_log = log_data_param;
}
public override bool hasLog()
{
return true;
}
protected override void fillup(ref BusinessLog.LogBody body)
{
body.append(new MailLogData(this, m_data_to_log));
}
}

View File

@@ -0,0 +1,99 @@

using ServerCore;
using ServerBase;
using ServerCommon;
namespace ServerCommon.BusinessLogDomain;
static public class MailBusinessLogHelper
{
static public MailLogData toMailLogInfo(MailAttribute mailAttribute)
{
var logData = new MailLogData();
logData.setMailInfo(mailAttribute);
return logData;
}
static public MailLogData toMailLogInfo(MailDoc mailDoc)
{
var mail_attrib = mailDoc.getAttrib<MailAttrib>();
NullReferenceCheckHelper.throwIfNull(mail_attrib, () => "mail_attrib is null !!!");
var logData = new MailLogData();
logData.setMailInfo(mail_attrib);
return logData;
}
static public void setMailInfo(this MailLogData logData, MailAttribute mailAttribute)
{
logData.MailGuid = mailAttribute.MailGuid;
logData.Title = mailAttribute.Title;
logData.Text = mailAttribute.Text;
logData.IsSystemMail = mailAttribute.IsSystemMail;
logData.IsReadMail = mailAttribute.IsRead;
logData.IsGetItem = mailAttribute.IsGetItem;
logData.SenderNickname = mailAttribute.SenderNickName;
logData.SenderGuid = mailAttribute.SenderGuid;
logData.ReceiverNickname = mailAttribute.ReceiverNickName;
logData.ReceiverGuid = mailAttribute.ReceiverGuid;
logData.CreateTime = mailAttribute.CreateTime;
logData.ExpireTime = mailAttribute.ExpireTime;
logData.IsTextByMetaData = mailAttribute.IsTextByMetaData;
logData.packageOrderId = mailAttribute.packageOrderId;
logData.ItemList = mailAttribute.ItemList;
}
static public void setMailInfo(this MailLogData logData, MailAttrib mailAttrib)
{
logData.MailGuid = mailAttrib.MailGuid;
logData.Title = mailAttrib.Title;
logData.Text = mailAttrib.Text;
logData.IsSystemMail = mailAttrib.IsSystemMail;
logData.IsReadMail = mailAttrib.IsRead;
logData.IsGetItem = mailAttrib.IsGetItem;
logData.SenderNickname = mailAttrib.SenderNickName;
logData.SenderGuid = mailAttrib.SenderGuid;
logData.ReceiverNickname = mailAttrib.ReceiverNickName;
logData.ReceiverGuid = mailAttrib.ReceiverGuid;
logData.CreateTime = mailAttrib.CreateTime;
logData.ExpireTime = mailAttrib.ExpireTime;
logData.IsTextByMetaData = mailAttrib.IsTextByMetaData;
logData.packageOrderId = mailAttrib.packageOrderId;
logData.ItemList = mailAttrib.ItemList;
}
static public MailProfileLogData toMailProfileLogInfo(MailProfileAttribute mailAttribute)
{
var logData = new MailProfileLogData();
logData.setMailProfileInfo(mailAttribute);
return logData;
}
static public void setMailProfileInfo(this MailProfileLogData logData, MailProfileAttribute mailAttribute)
{
logData.SendMailCount = mailAttribute.SendMailCount;
logData.SendMailUpdateDay = mailAttribute.SendMailUpdateDay;
logData.LastSystemMailId = mailAttribute.LastSystemMailId;
}
static public MailExpiredLogData toMailExpiredLogInfo(string order_guid, int product_meta_id, DateTime next_give_time, DateTime expire_date, DateTime currency_time, int repeat_left_count)
{
var logData = new MailExpiredLogData();
logData.setMailExpiredInfo(order_guid, product_meta_id, next_give_time, expire_date, currency_time, repeat_left_count);
return logData;
}
static public void setMailExpiredInfo(this MailExpiredLogData logData, string order_guid, int product_meta_id, DateTime next_give_time, DateTime expire_date, DateTime currency_time, int repeat_left_count)
{
logData.OrderGuid = order_guid;
logData.ProductMetaId = product_meta_id;
logData.NextGiveTime = next_give_time;
logData.ExpireTime = expire_date;
logData.CurrencyTime = currency_time;
logData.RepeatLeftCount = repeat_left_count;
}
}

View File

@@ -0,0 +1,30 @@
using Google.Protobuf;
using Google.Protobuf.WellKnownTypes;
using ServerCore;
using ServerBase;
using MetaAssets;
namespace ServerCommon.BusinessLogDomain;
public class MailExpiredBusinessLog : ILogInvokerEx
{
private MailExpiredLogData m_data_to_log;
public MailExpiredBusinessLog(MailExpiredLogData log_data_param)
: base(LogDomainType.MailStoragePeriodExpired)
{
m_data_to_log = log_data_param;
}
public override bool hasLog()
{
return true;
}
protected override void fillup(ref BusinessLog.LogBody body)
{
body.append(new MailExpiredLogData(this, m_data_to_log));
}
}

View File

@@ -0,0 +1,32 @@
using Google.Protobuf;
using Google.Protobuf.WellKnownTypes;
using ServerCore;
using ServerBase;
using ServerCommon.BusinessLogDomain;
using MetaAssets;
namespace ServerCommon.BusinessLogDomain;
public class MailProfileBusinessLog : ILogInvokerEx
{
private MailProfileLogData m_data_to_log;
public MailProfileBusinessLog(MailProfileLogData log_data_param)
: base(LogDomainType.MailProfile)
{
m_data_to_log = log_data_param;
}
public override bool hasLog()
{
return true;
}
protected override void fillup(ref BusinessLog.LogBody body)
{
body.append(new MailProfileLogData(this, m_data_to_log));
}
}

View File

@@ -0,0 +1,24 @@
using ServerBase;
namespace ServerCommon.BusinessLogDomain;
public class MyHomeBusinessLog : ILogInvokerEx
{
private MyHomeLogInfo m_data_to_log;
public MyHomeBusinessLog(MyHomeLogInfo logParam)
: base(LogDomainType.MyHome)
{
m_data_to_log = logParam;
}
public override bool hasLog()
{
return true;
}
protected override void fillup(ref BusinessLog.LogBody body)
{
body.append(new MyHomeLogInfo(this, m_data_to_log));
}
}

View File

@@ -0,0 +1,33 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ServerCore;
using ServerBase;
namespace ServerCommon.BusinessLogDomain;
public class MyhomeExchangeBusinessLog : ILogInvokerEx
{
private MyhomeExchangeLogInfo m_data_to_log;
public MyhomeExchangeBusinessLog(MyhomeExchangeLogInfo logParam)
: base(LogDomainType.MyHome)
{
m_data_to_log = logParam;
}
public override bool hasLog()
{
return true;
}
protected override void fillup(ref BusinessLog.LogBody body)
{
body.append(new MyhomeExchangeLogInfo(this, m_data_to_log));
}
}

View File

@@ -0,0 +1,33 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ServerCore;
using ServerBase;
namespace ServerCommon.BusinessLogDomain;
public class MyhomeRenameBusinessLog : ILogInvokerEx
{
private MyhomeRenameLogInfo m_data_to_log;
public MyhomeRenameBusinessLog(MyhomeRenameLogInfo logParam)
: base(LogDomainType.MyHome)
{
m_data_to_log = logParam;
}
public override bool hasLog()
{
return true;
}
protected override void fillup(ref BusinessLog.LogBody body)
{
body.append(new MyhomeRenameLogInfo(this, m_data_to_log));
}
}

View File

@@ -0,0 +1,34 @@

using ServerCore;
using ServerBase;
namespace ServerCommon.BusinessLogDomain;
public class PartyBusinessLog : ILogInvokerEx
{
private PartyLogData m_data_to_log;
public PartyBusinessLog(PartyLogData logParam)
: base(LogDomainType.Party)
{
m_data_to_log = logParam;
}
public PartyBusinessLog(LogAction logAction, PartyLogData logParam)
: base(LogDomainType.Party, logAction)
{
m_data_to_log = logParam;
}
public override bool hasLog()
{
return true;
}
protected override void fillup(ref BusinessLog.LogBody body)
{
body.append(new PartyLogData(this, m_data_to_log));
}
}

View File

@@ -0,0 +1,29 @@

using ServerCore;
using ServerBase;
namespace ServerCommon.BusinessLogDomain;
public class PartyInstanceBusinessLog : ILogInvokerEx
{
private PartyInstanceLogData m_data_to_log;
public PartyInstanceBusinessLog(PartyInstanceLogData logParam)
: base(LogDomainType.PartyInstance)
{
m_data_to_log = logParam;
}
public override bool hasLog()
{
return true;
}
protected override void fillup(ref BusinessLog.LogBody body)
{
body.append(new PartyInstanceLogData(this, m_data_to_log));
}
}

View File

@@ -0,0 +1,29 @@

using ServerCore;
using ServerBase;
namespace ServerCommon.BusinessLogDomain;
public class PartyMemberBusinessLog : ILogInvokerEx
{
private PartyMemberLogData m_data_to_log;
public PartyMemberBusinessLog(PartyMemberLogData logParam)
: base(LogDomainType.PartyMember)
{
m_data_to_log = logParam;
}
public override bool hasLog()
{
return true;
}
protected override void fillup(ref BusinessLog.LogBody body)
{
body.append(new PartyMemberLogData(this, m_data_to_log));
}
}

View File

@@ -0,0 +1,29 @@

using ServerCore;
using ServerBase;
namespace ServerCommon.BusinessLogDomain;
public class PartyVoteBusinessLog : ILogInvokerEx
{
private PartyVoteLogData m_data_to_log;
public PartyVoteBusinessLog(PartyVoteLogData logParam)
: base(LogDomainType.PartyVote)
{
m_data_to_log = logParam;
}
public override bool hasLog()
{
return true;
}
protected override void fillup(ref BusinessLog.LogBody body)
{
body.append(new PartyVoteLogData(this, m_data_to_log));
}
}

View File

@@ -0,0 +1,29 @@

using ServerCore;
using ServerBase;
namespace ServerCommon.BusinessLogDomain;
public class PositionBusinessLog : ILogInvokerEx
{
private PositionLogInfo m_data_to_log;
public PositionBusinessLog(PositionLogInfo logParam)
: base(LogDomainType.Position)
{
m_data_to_log = logParam;
}
public override bool hasLog()
{
return true;
}
protected override void fillup(ref BusinessLog.LogBody body)
{
body.append(new PositionLogInfo(this, m_data_to_log));
}
}

View File

@@ -0,0 +1,37 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Amazon.CloudWatchLogs.Model.Internal.MarshallTransformations;
using ServerBase;
using ServerCommon;
namespace ServerCommon.BusinessLogDomain;
public class QuestRewardBusinessLog : ILogInvokerEx
{
QuestRewardLogInfo m_info;
public QuestRewardBusinessLog(UInt32 questId, UInt32 questRevision, Int32 rewardGroupId)
: base(LogDomainType.QuestMain)
{
m_info = new QuestRewardLogInfo(this, questId, questRevision, rewardGroupId);
}
public override bool hasLog()
{
return true;
}
protected override void fillup(ref BusinessLog.LogBody body)
{
body.append(m_info);
}
}

View File

@@ -0,0 +1,34 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ServerCore;
using ServerBase;
namespace ServerCommon.BusinessLogDomain;
public class RandomBoxItemUseBusinessLog : ILogInvokerEx
{
private RandomBoxItemUseInfo m_info;
public RandomBoxItemUseBusinessLog(RandomBoxItemUseInfo info)
: base(LogDomainType.Item)
{
m_info = info;
}
public override bool hasLog()
{
return true;
}
protected override void fillup(ref BusinessLog.LogBody body)
{
body.append(new RandomBoxItemUseInfo(this, m_info));
}
}

View File

@@ -0,0 +1,28 @@

using ServerCore;
using ServerBase;
namespace ServerCommon.BusinessLogDomain;
public class RentalBusinessLog : ILogInvokerEx
{
private RentalLogInfo m_data_to_log;
public RentalBusinessLog(RentalLogInfo logParam)
: base(LogDomainType.Rental)
{
m_data_to_log = new RentalLogInfo(this, logParam);
}
public override bool hasLog()
{
return true;
}
protected override void fillup(ref BusinessLog.LogBody body)
{
body.append(m_data_to_log);
}
}

View File

@@ -0,0 +1,28 @@

using ServerBase;
using ServerCommon;
namespace ServerCommon.BusinessLogDomain;
public class SeasonPassBusinessLog : ILogInvokerEx
{
private SeasonPassLogData m_data_to_log;
public SeasonPassBusinessLog(SeasonPassLogData log_data_param)
: base(LogDomainType.SeasonPass)
{
m_data_to_log = log_data_param;
}
public override bool hasLog()
{
return true;
}
protected override void fillup(ref BusinessLog.LogBody body)
{
body.append(new SeasonPassLogData(this, m_data_to_log));
}
}

View File

@@ -0,0 +1,26 @@

using ServerCore;
using ServerBase;
namespace ServerCommon.BusinessLogDomain;
public class ShopBusinessLog : ILogInvokerEx
{
private readonly ShopLogData m_log_data;
public ShopBusinessLog(ShopLogData logData)
: base(LogDomainType.Shop)
{
m_log_data = logData;
}
public override bool hasLog() => true;
protected override void fillup(ref BusinessLog.LogBody body)
{
body.append(new ShopLogData(this, m_log_data));
}
}

View File

@@ -0,0 +1,33 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ServerCore;
using ServerBase;
namespace ServerCommon.BusinessLogDomain;
public class SocialActionBusinessLog : ILogInvokerEx
{
private SocialActionLogInfo m_data_to_log;
public SocialActionBusinessLog(SocialActionLogInfo logParam)
: base(LogDomainType.SocialAction)
{
m_data_to_log = logParam;
}
public override bool hasLog()
{
return true;
}
protected override void fillup(ref BusinessLog.LogBody body)
{
body.append(new SocialActionLogInfo(this, m_data_to_log));
}
}

View File

@@ -0,0 +1,33 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ServerCore;
using ServerBase;
namespace ServerCommon.BusinessLogDomain;
public class SocialActionSlotExchangeBusinessLog : ILogInvokerEx
{
private SocialActionSlotExchangeLogInfo m_data_to_log;
public SocialActionSlotExchangeBusinessLog(SocialActionSlotExchangeLogInfo logParam)
: base(LogDomainType.SocialAction)
{
m_data_to_log = logParam;
}
public override bool hasLog()
{
return true;
}
protected override void fillup(ref BusinessLog.LogBody body)
{
body.append(new SocialActionSlotExchangeLogInfo(this, m_data_to_log));
}
}

View File

@@ -0,0 +1,41 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ServerBase;
using ServerCommon;
namespace ServerCommon.BusinessLogDomain;
public class StageBusinessLog : ILogInvokerEx
{
private StageLogInfo m_data_to_log;
public StageBusinessLog(StageLogInfo logParam)
: base(LogDomainType.Stage)
{
m_data_to_log = new StageLogInfo(this, logParam);
}
public StageBusinessLog(StageLogInfo logParam, LogActionEx logAction)
: base(LogDomainType.Stage, logAction)
{
m_data_to_log = new StageLogInfo(this, logParam);
}
public override bool hasLog()
{
return true;
}
protected override void fillup(ref BusinessLog.LogBody body)
{
body.append(m_data_to_log);
}
}

View File

@@ -0,0 +1,29 @@

using ServerCore;
using ServerBase;
namespace ServerCommon.BusinessLogDomain;
public class TaxiBusinessLog : ILogInvokerEx
{
private TaxiLogInfo m_data_to_log;
public TaxiBusinessLog(TaxiLogInfo logParam)
: base(LogDomainType.Taxi)
{
m_data_to_log = logParam;
}
public override bool hasLog()
{
return true;
}
protected override void fillup(ref BusinessLog.LogBody body)
{
body.append(new TaxiLogInfo(this, m_data_to_log));
}
}

View File

@@ -0,0 +1,32 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ServerCore;
using ServerBase;
namespace ServerCommon.BusinessLogDomain;
public class UseRewardPropBusinessLog : ILogInvokerEx
{
UseRewardPropInfo m_info;
public UseRewardPropBusinessLog(UseRewardPropInfo info)
: base(LogDomainType.RewardProp)
{
m_info = info;
}
public override bool hasLog()
{
return true;
}
protected override void fillup(ref BusinessLog.LogBody body)
{
body.append(new UseRewardPropInfo(this, m_info));
}
}

View File

@@ -0,0 +1,34 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ServerBase;
using ServerCommon;
namespace ServerCommon.BusinessLogDomain;
public class UserBusinessLog : ILogInvokerEx
{
private readonly UserLogInfo m_data_to_log;
public UserBusinessLog(LogAction logAction, UserLogInfo logInfo)
: base(LogDomainType.User, logAction)
{
m_data_to_log = new UserLogInfo(this, logInfo);
}
public override bool hasLog()
{
return true;
}
protected override void fillup(ref BusinessLog.LogBody body)
{
body.append(m_data_to_log);
}
}

View File

@@ -0,0 +1,46 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Newtonsoft.Json;
using ServerCore;
using ServerBase;
using META_ID = System.UInt32;
using USER_GUID = System.String;
using META_TYPE = System.String;
namespace ServerCommon.BusinessLogDomain;
public class UserCreateBusinessLog : ILogInvokerEx
{
private UserCreateLogInfo m_user_create_info;
public UserCreateBusinessLog(LogAction logAction, DateTime createdTime, UserCreateLogInfo logInfo)
: base(LogDomainType.UserCreate, logAction)
{
m_user_create_info = new UserCreateLogInfo(this, createdTime, logInfo);
}
public override bool hasLog()
{
return true;
}
protected override void fillup(ref BusinessLog.LogBody body)
{
body.append(m_user_create_info);
}
public UserCreateLogInfo getInfo()
{
return m_user_create_info;
}
}

View File

@@ -0,0 +1,48 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Newtonsoft.Json;
using ServerCore;
using ServerBase;
using META_ID = System.UInt32;
using USER_GUID = System.String;
using META_TYPE = System.String;
namespace ServerCommon.BusinessLogDomain;
public class UserInitialBusinessLog : ILogInvokerEx
{
private readonly UserInitialLogInfo m_user_initial_info;
public UserInitialBusinessLog(LogAction logAction, UserInitialLogInfo logInfo)
: base(LogDomainType.UserInitial, logAction)
{
ArgumentNullException.ThrowIfNull(logInfo, $"logInfo is null !!!");
m_user_initial_info = new UserInitialLogInfo(this, logInfo);
}
public override bool hasLog()
{
return true;
}
protected override void fillup(ref BusinessLog.LogBody body)
{
body.append(m_user_initial_info);
}
public UserInitialLogInfo getInfo()
{
return m_user_initial_info;
}
}