250501 커밋

This commit is contained in:
2025-05-01 07:23:28 +09:00
parent 98bb2e3c5c
commit 23176551b7
353 changed files with 9972 additions and 6652 deletions

View File

@@ -0,0 +1,18 @@
using Newtonsoft.Json;
using ServerBase;
using ServerCommon;
namespace GameServer;
public class BattleEventLog : ILogActor
{
[JsonProperty]
public Int32 m_event_id { get; private set; } = 0;
//반복 어떻게 하는지 언제까지 반복하는지
public BattleEventLog(Int32 eventId)
{
m_event_id = eventId;
}
}

View File

@@ -0,0 +1,29 @@
using Newtonsoft.Json;
using ServerBase;
using ServerCommon;
namespace GameServer;
public class BattleInstanceActorLog : ILogActor
{
[JsonProperty]
public string m_region_id { get; private set; } = string.Empty;
[JsonProperty]
public string m_server_name { get; private set; } = string.Empty;
[JsonProperty]
public string m_room_id { get; private set; } = string.Empty;
[JsonProperty]
public int m_instance_id { get; private set; } = 0;
public BattleInstanceActorLog(string regionId, string serverName, string roomId, int instanceId)
{
m_region_id = regionId;
m_server_name = serverName;
m_room_id = roomId;
m_instance_id = instanceId;
}
}

View File

@@ -0,0 +1,24 @@
using ServerBase;
using ServerCommon;
using ServerCommon.BusinessLogDomain;
namespace GameServer;
public class BattleObjectInteractionBusinessLog : ILogInvokerEx
{
private BattleObjectInteractionLogInfo m_info;
public BattleObjectInteractionBusinessLog(BattleObjectInteractionLogInfo info) : base(LogDomainType.BattleObjectInteraction)
{
m_info = info;
}
public override bool hasLog()
{
return true;
}
protected override void fillup(ref BusinessLog.LogBody body)
{
body.append(new BattleObjectInteractionLogInfo(this, m_info));
}
}

View File

@@ -0,0 +1,26 @@
using ServerBase;
using ServerCommon;
using ServerCommon.BusinessLogDomain;
namespace GameServer;
public class BattleObjectStateUpdateBusinessLog : ILogInvokerEx
{
private BattleObjectStateUpdateLogInfo m_info;
public BattleObjectStateUpdateBusinessLog(string roomId, List<BattleObjectLogInfo> infos) : base(LogDomainType.BattleObjectStateUpdate)
{
m_info = new();
m_info.m_room_id = roomId;
m_info.m_infos.AddRange(infos);
}
public override bool hasLog()
{
return true;
}
protected override void fillup(ref BusinessLog.LogBody body)
{
body.append(new BattleObjectStateUpdateLogInfo(this, m_info));
}
}

View File

@@ -0,0 +1,25 @@
using ServerBase;
using ServerCommon;
using ServerCommon.BusinessLogDomain;
namespace GameServer;
public class BattlePodCombatRewardBusinessLog : ILogInvokerEx
{
private BattlePodCombatRewardLogInfo m_info;
public BattlePodCombatRewardBusinessLog(string roomId, int round, BattleRoundStateType roundSate
, string rewardUserGuid, string rewardUserNickname
, int chargedStep, int rewardedStep, List<MetaAssets.Reward> rewards) : base(LogDomainType.BattleReward)
{
m_info = new BattlePodCombatRewardLogInfo(this, roomId, round, roundSate, rewardUserGuid, rewardUserNickname, chargedStep, rewardedStep, rewards);
}
public override bool hasLog()
{
return true;
}
protected override void fillup(ref BusinessLog.LogBody body)
{
body.append(m_info);
}
}

View File

@@ -0,0 +1,25 @@
using ServerBase;
using ServerCommon;
namespace GameServer.Contents.Battle.Log;
public class BattleRespawnBusinessLog : ILogInvokerEx
{
private BattleRespawnLogInfo m_info;
public BattleRespawnBusinessLog(string roomId, int round, BattleRoundStateType roundState, string userGuid, string userNickname, string respawnAnchorGuid, DateTime nextAvailableRespawnTimeAtThisAnchor)
: base(LogDomainType.BattleRespawn)
{
m_info = new(this, roomId, round, roundState, userGuid, userNickname, respawnAnchorGuid, nextAvailableRespawnTimeAtThisAnchor);
}
public override bool hasLog()
{
return true;
}
protected override void fillup(ref BusinessLog.LogBody body)
{
body.append(m_info);
}
}

View File

@@ -0,0 +1,24 @@
using ServerBase;
using ServerCommon;
using ServerCommon.BusinessLogDomain;
namespace GameServer;
public class BattleRoomJoinBusinessLog : ILogInvokerEx
{
private BattleRoomJoinSuccessLogInfo m_info;
public BattleRoomJoinBusinessLog(string joinUserGuid, string joinUserNickname, string roomId, int joinRound) : base(LogDomainType.BattleRoomJoin)
{
m_info = new BattleRoomJoinSuccessLogInfo(this, joinUserGuid, joinUserNickname, roomId, joinRound);
}
public override bool hasLog()
{
return true;
}
protected override void fillup(ref BusinessLog.LogBody body)
{
body.append(m_info);
}
}

View File

@@ -0,0 +1,27 @@
using ServerBase;
using ServerCommon;
using ServerCommon.BusinessLogDomain;
namespace GameServer;
public class BattleRoomPlayerDeadBusinessLog : ILogInvokerEx
{
private BattleRoomPlayerDeadLogInfo m_info;
public BattleRoomPlayerDeadBusinessLog(string deadUserGuid, string deadUserNickname
, string killerGuid, string killerNickname
, string roomId, int round, bool hasPodCombat): base(LogDomainType.BattleDead)
{
m_info = new BattleRoomPlayerDeadLogInfo(this, deadUserGuid, deadUserNickname, killerGuid, killerNickname,
roomId, round, hasPodCombat);
}
public override bool hasLog()
{
return true;
}
protected override void fillup(ref BusinessLog.LogBody body)
{
body.append(m_info);
}
}

View File

@@ -0,0 +1,24 @@
using ServerBase;
using ServerCommon.BusinessLogDomain;
namespace ServerCommon;
public class BattleRoundUpdateBusinessLog : ILogInvokerEx
{
private BattleRoundingUpdateLogInfo m_info;
public BattleRoundUpdateBusinessLog(string roomId, int endedRound, BattleRoundStateType roundSate, List<BattleRoundingExistUsers> users): base(LogDomainType.BattleRound)
{
m_info = new BattleRoundingUpdateLogInfo(this, roomId, endedRound, roundSate, users);
}
public override bool hasLog()
{
return true;
}
protected override void fillup(ref BusinessLog.LogBody body)
{
body.append(m_info);
}
}

View File

@@ -0,0 +1,67 @@
using GameServer.Contents.GameMode.Mode_Battle.Manage;
using ServerBase;
using ServerCommon;
using ServerCommon.BusinessLogDomain;
using ServerCore;
namespace GameServer.Contents.Battle.Log;
public class BattleSnapShotBusinessLog : ILogInvokerEx
{
private BattleSnapshotLogInfo m_info;
public BattleSnapShotBusinessLog(GameModeTPSFreeForAll<GameModeTPSFreeForAllData> battleInstanceRoom, string loadType): base(LogDomainType.BattleSnapshot)
{
//kihoon todo : GameModeTPSFreeForAll<GameModeTPSFreeForAllData> 이걸로 받을지 아니면 고칠지 고민 필요
m_info = createBattleSnapshotLogInfo(this, battleInstanceRoom, loadType);
}
public override bool hasLog()
{
return true;
}
protected override void fillup(ref BusinessLog.LogBody body)
{
body.append(m_info);
}
public BattleSnapshotLogInfo createBattleSnapshotLogInfo(ILogInvoker parent, GameModeTPSFreeForAll<GameModeTPSFreeForAllData> battleInstanceRoom, string loadType)
{
var room_id = battleInstanceRoom.getRoomId();
BattleSnapshotLogInfo info = new(parent, room_id, loadType);
var attribute = battleInstanceRoom.getEntityAttribute<BattleInstanceSnapshotAttribute>();
if (attribute is null)
{
ServerCore.Log.getLogger().warn($"attribute is null so return empty battleInstanceRoom.roomId() : {room_id}");
return info;
}
//info.m_play_mode = battleInstanceRoom.m_play_mode;
info.m_battle_instance_event_start_time = battleInstanceRoom.m_battle_instance_event_start_time;
info.m_pod_combat_reward_group_id = battleInstanceRoom.m_pod_combat_reward_group_id;
info.m_pod_combat_ffa_id = battleInstanceRoom.m_pod_combat_ffa_id;
info.m_hot_time_reward = battleInstanceRoom.m_hot_time_reward;
info.m_round_count = battleInstanceRoom.m_round_count;
info.m_respawns = attribute.m_combat_pod_mode.m_respawns;
info.m_pod_storages = attribute.m_combat_pod_mode.m_pod_storages;
info.m_pod_combat = attribute.m_combat_pod_mode.m_pod_combat;
info.m_pickup_pods = attribute.m_combat_pod_mode.m_pickup_pods;
info.m_pickup_pod_generated_info.AddRange(attribute.m_combat_pod_mode.m_pickup_pod_generated_info.Values);
info.m_weapons = attribute.m_combat_pod_mode.m_weapons;
info.m_buffs = attribute.m_combat_pod_mode.m_buffs;
info.m_round_state_type = attribute.m_combat_pod_mode.m_round_state_type;
info.m_current_round = attribute.m_combat_pod_mode.m_current_round;
info.m_current_state_start_time = attribute.m_combat_pod_mode.m_current_state_start_time;
info.m_charged_step = attribute.m_combat_pod_mode.m_charged_step;
info.m_rewarded_step = attribute.m_combat_pod_mode.m_rewarded_step;
info.m_tactical_board = attribute.m_combat_pod_mode.m_tactical_board;
return info;
}
}