초기커밋

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,60 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Newtonsoft.Json;
using ServerCore; using ServerBase;
namespace ServerCommon.BusinessLogDomain;
public class BuildingLogInfo : ILogInvoker.IInfo
{
[JsonProperty]
public int BuildingMetaId { get; set; }
[JsonProperty]
public string OwnerGuid { get; set; } = string.Empty;
[JsonProperty]
public CurrencyType RentalCurrencyType { get; set; } = CurrencyType.None;
[JsonProperty]
public double RentalCurrencyAmount { get; set; } = 0;
[JsonProperty]
public bool IsRentalOpen { get; set; } = false;
public BuildingLogInfo()
: base()
{ }
public BuildingLogInfo(ILogInvoker parent, BuildingLogInfo logParam)
: base(parent)
{
if (null != logParam)
{
setBuildingInfo(logParam);
}
}
public void setBuildingInfo(BuildingLogInfo logInfo)
{
BuildingMetaId = logInfo.BuildingMetaId;
OwnerGuid = logInfo.OwnerGuid;
RentalCurrencyType = logInfo.RentalCurrencyType;
RentalCurrencyAmount = logInfo.RentalCurrencyAmount;
IsRentalOpen = logInfo.IsRentalOpen;
}
public void setLogProperty(int buildingMetaId, string ownerGuid, CurrencyType currencyType, double currencyAmount, bool isRentalOpen)
{
BuildingMetaId = buildingMetaId;
OwnerGuid = ownerGuid;
RentalCurrencyType = currencyType;
RentalCurrencyAmount = currencyAmount;
IsRentalOpen = isRentalOpen;
}
}