초기커밋
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
using Newtonsoft.Json;
|
||||
using Google.Protobuf;
|
||||
using Google.Protobuf.WellKnownTypes;
|
||||
|
||||
|
||||
using ServerCore;
|
||||
using ServerBase;
|
||||
using ServerCommon;
|
||||
using ServerCommon.BusinessLogDomain;
|
||||
using MetaAssets;
|
||||
|
||||
|
||||
namespace GameServer;
|
||||
|
||||
|
||||
public class BattleEventLog : ILogActor
|
||||
{
|
||||
[JsonProperty]
|
||||
public Int32 m_event_id { get; private set; } = 0;
|
||||
|
||||
//반복 어떻게 하는지 언제까지 반복하는지
|
||||
|
||||
public BattleEventLog(Int32 eventId)
|
||||
{
|
||||
m_event_id = eventId;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
using Newtonsoft.Json;
|
||||
using Google.Protobuf;
|
||||
using Google.Protobuf.WellKnownTypes;
|
||||
|
||||
|
||||
using ServerCore;
|
||||
using ServerBase;
|
||||
using ServerCommon;
|
||||
using ServerCommon.BusinessLogDomain;
|
||||
using MetaAssets;
|
||||
|
||||
|
||||
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;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
using Google.Protobuf;
|
||||
using Google.Protobuf.WellKnownTypes;
|
||||
|
||||
|
||||
using ServerCore;
|
||||
using ServerBase;
|
||||
using ServerCommon;
|
||||
using ServerCommon.BusinessLogDomain;
|
||||
using MetaAssets;
|
||||
|
||||
|
||||
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));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
using Google.Protobuf;
|
||||
using Google.Protobuf.WellKnownTypes;
|
||||
|
||||
|
||||
using ServerCore;
|
||||
using ServerBase;
|
||||
using ServerCommon;
|
||||
using ServerCommon.BusinessLogDomain;
|
||||
using MetaAssets;
|
||||
|
||||
|
||||
|
||||
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));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
using Google.Protobuf;
|
||||
using Google.Protobuf.WellKnownTypes;
|
||||
|
||||
|
||||
using ServerCore;
|
||||
using ServerBase;
|
||||
using ServerCommon;
|
||||
using ServerCommon.BusinessLogDomain;
|
||||
using MetaAssets;
|
||||
|
||||
|
||||
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);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
using Google.Protobuf;
|
||||
using Google.Protobuf.WellKnownTypes;
|
||||
|
||||
|
||||
using ServerCore;
|
||||
using ServerBase;
|
||||
using ServerCommon;
|
||||
using ServerCommon.BusinessLogDomain;
|
||||
using MetaAssets;
|
||||
|
||||
|
||||
namespace GameServer;
|
||||
|
||||
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);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
using Google.Protobuf;
|
||||
using Google.Protobuf.WellKnownTypes;
|
||||
|
||||
|
||||
using ServerCore;
|
||||
using ServerBase;
|
||||
using ServerCommon;
|
||||
using ServerCommon.BusinessLogDomain;
|
||||
using MetaAssets;
|
||||
|
||||
|
||||
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);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
using Google.Protobuf;
|
||||
using Google.Protobuf.WellKnownTypes;
|
||||
|
||||
|
||||
using ServerCore;
|
||||
using ServerBase;
|
||||
using ServerCommon;
|
||||
using ServerCommon.BusinessLogDomain;
|
||||
using MetaAssets;
|
||||
|
||||
|
||||
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);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
using Google.Protobuf;
|
||||
using Google.Protobuf.WellKnownTypes;
|
||||
|
||||
|
||||
using ServerCore;
|
||||
using ServerBase;
|
||||
using ServerCommon;
|
||||
using ServerCommon.BusinessLogDomain;
|
||||
using MetaAssets;
|
||||
|
||||
|
||||
namespace GameServer;
|
||||
|
||||
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);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,71 @@
|
||||
using Google.Protobuf;
|
||||
using Google.Protobuf.WellKnownTypes;
|
||||
|
||||
|
||||
using ServerCore;
|
||||
using ServerBase;
|
||||
using ServerCommon;
|
||||
using ServerCommon.BusinessLogDomain;
|
||||
using MetaAssets;
|
||||
|
||||
|
||||
namespace GameServer;
|
||||
|
||||
public class BattleSnapShotBusinessLog : ILogInvokerEx
|
||||
{
|
||||
private BattleSnapshotLogInfo m_info;
|
||||
|
||||
public BattleSnapShotBusinessLog(BattleInstanceRoom battleInstanceRoom, string loadType): base(LogDomainType.BattleSnapshot)
|
||||
{
|
||||
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(ILogInvokerEx parent, BattleInstanceRoom battleInstanceRoom, string loadType)
|
||||
{
|
||||
var room_id = battleInstanceRoom.m_instance_room.getMap().m_room_id;
|
||||
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;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user