Files
hjha-server/ObjectModel/User/ZiChanLogData.cs
xiaoou e9616125ce feat: initial commit - HJHA game server full source
6 major server modules (PdkFriendServer/GlobalSever/ServerCore/GameModule/GameNetModule) +
game logic (GameFix/GameDAL/ServerData) +
network layer (NetWorkMessage) +
data layer (ObjectModel) +
utilities (MrWu/Core/Config/CloudAPI/dll) +
adapters (zyxAdapter/base)

.NET 8.0 C# solution, 16 projects, 958 source files
2026-07-07 12:02:15 +08:00

44 lines
1.3 KiB
C#

using GameData;
using Server.Core;
namespace ObjectModel.User
{
public class ZiChanLogData : IReference
{
public int Id;
public long ChangeValue;
public long FinValue;
public string Tag;
public UserGoldLogType GoldLogType;
public void Dispose()
{
ReferencePool.Recycle(this);
}
public static ZiChanLogData CreateGold(long changeValue, long finValue, UserGoldLogType goldLogType, string tag)
{
ZiChanLogData data = ReferencePool.Fetch<ZiChanLogData>();
data.Id = ResName.Gold;
data.ChangeValue = changeValue;
data.FinValue = finValue;
data.GoldLogType = goldLogType;
data.Tag = tag;
return data;
}
public static ZiChanLogData Create(int id, long changeValue, long finValue, string tag)
{
ZiChanLogData data = ReferencePool.Fetch<ZiChanLogData>();
data.Id = id;
data.ChangeValue = changeValue;
data.FinValue = finValue;
data.Tag = tag;
return data;
}
public bool IsFromPool { get; set; }
public long ReferenceId { get; set; }
}
}