초기커밋

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,82 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Diagnostics;
using ServerCore; using ServerBase;
using ServerCommon;
using META_ID = System.UInt32;
namespace GameServer
{
public class LandAuctionReservationConfigureTicker : EntityTicker
{
public LandAuctionReservationConfigureTicker(double onTickIntervalMilliseconds, CancellationTokenSource? cts)
: base(EntityType.LandAuctionReservationConfigureTicker, onTickIntervalMilliseconds, cts)
{
}
public override async Task onTaskTick()
{
Stopwatch? stopwatch = null;
var event_tid = string.Empty;
var server_logic = GameServerApp.getServerLogic();
var server_config = server_logic.getServerConfig();
var result = new Result();
var err_msg = string.Empty;
var call_tid = System.Guid.NewGuid().ToString("N");
var log_msg = $"Call LandAuctionReservationConfigureTicker.onTaskTick() !!! - TID:{call_tid}";
Log.getLogger().debug(log_msg);
var requestor_id = server_logic.getServerName();
var land_auction_manager = LandAuctionManager.It;
if (true == server_config.PerformanceCheckEnable)
{
event_tid = System.Guid.NewGuid().ToString("N");
stopwatch = Stopwatch.StartNew();
}
result = await land_auction_manager.tryConfigureAndAddReservedLandAuctioKeyAll(requestor_id);
if(result.isFail())
{
err_msg = $"Failed to tryConfigureAndAddReservedLandAuctioKeyAll() !!!, in onTaskTick() : {result.toBasicString()} - requestorId:{requestor_id}, {toBasicString()}";
Log.getLogger().error(err_msg);
}
if (null != stopwatch)
{
var elapsed_msec = stopwatch.ElapsedMilliseconds;
stopwatch.Stop();
if(1000 <= elapsed_msec)
{
Log.getLogger().debug( $"{this.getTypeName()} Performance alert !!! : Execution delayed !!!"
+ $" - ETID:{event_tid}, ElapsedMSec:{elapsed_msec}, TickIntervalMSec:{getOnTickIntervalMilliseconds()}" );
}
}
}
public override string toBasicString()
{
return $"{this.getTypeName()}";
}
public override string toSummaryString()
{
return $"{this.getTypeName()}";
}
}
}