250501 커밋
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
using GameServer.Contents.GameMode.Manage.PlayManage;
|
||||
|
||||
namespace GameServer.Contents.GameMode.Mode_Battle.Manage;
|
||||
|
||||
public class GameModeTPSTeamDeathMatch<T> : GameModeTPS where T : ITPSMode
|
||||
{
|
||||
T m_tps_mode_data;
|
||||
|
||||
public GameModeTPSTeamDeathMatch(T tpsModeData, InstanceRoom instanceRoom) : base(EntityType.GameModeTpsteamDeathMatch, instanceRoom)
|
||||
{
|
||||
m_tps_mode_data = tpsModeData;
|
||||
}
|
||||
|
||||
public override string toBasicString()
|
||||
{
|
||||
var basic_string = base.toBasicString() + $"GameModeTPSTeamDeathMatch....";
|
||||
return basic_string;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
namespace GameServer.Contents.GameMode.Mode_Battle.Manage;
|
||||
|
||||
public class GameModeTPSTeamDeathMatchData : ITPSMode
|
||||
{
|
||||
public async Task<Result> initTPSMode()
|
||||
{
|
||||
var result = new Result();
|
||||
|
||||
await Task.CompletedTask;
|
||||
return result;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
using GameServer.Contents.GameMode.Manage.LeaveManage;
|
||||
using GameServer.Contents.GameMode.Manage.PlayManage;
|
||||
using ServerCommon;
|
||||
|
||||
namespace GameServer.Contents.GameMode.Mode_Battle.Manage;
|
||||
|
||||
public class TPSTeamDeathMatchDestroyHandler : GameModeDestroyHandlerBase
|
||||
{
|
||||
public TPSTeamDeathMatchDestroyHandler(string roomId) : base(roomId, GameModeType.TPS_TDM)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override async Task<Result> postDestroy(IGameMode gameMode)
|
||||
{
|
||||
var result = new Result();
|
||||
|
||||
await Task.CompletedTask;
|
||||
return result;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
using GameServer.Contents.GameMode.Manage;
|
||||
using ServerCommon;
|
||||
|
||||
namespace GameServer.Contents.GameMode.Mode_Battle.Manage;
|
||||
|
||||
public class TPSTeamDeathMatchInitHandler : GameModeInitHandlerBase
|
||||
{
|
||||
public TPSTeamDeathMatchInitHandler(InstanceRoom instanceRoom) : base(instanceRoom, GameModeType.TPS_TDM)
|
||||
{
|
||||
}
|
||||
|
||||
public override Result gamedModeInstanceInitValidate()
|
||||
{
|
||||
var result = new Result();
|
||||
return result;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
using GameServer.Contents.GameMode.Manage;
|
||||
using ServerCommon;
|
||||
using ServerCore;
|
||||
|
||||
namespace GameServer.Contents.GameMode.Mode_Battle.Manage;
|
||||
|
||||
public class TPSTeamDeathMatchJoinHandler : GameModeJoinHandlerBase
|
||||
{
|
||||
public TPSTeamDeathMatchJoinHandler(InstanceRoom instanceRoom) : base(instanceRoom, GameModeType.TPS_TDM)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override Result gamedModeInstanceJoinValidate()
|
||||
{
|
||||
var result = new Result();
|
||||
return result;
|
||||
}
|
||||
|
||||
public override Result gamedModeInstanceJoin(Player player)
|
||||
{
|
||||
Log.getLogger().debug("tps tdm gamedModeInstanceJoin called");
|
||||
|
||||
var result = new Result();
|
||||
string err_msg = string.Empty;
|
||||
|
||||
Log.getLogger().debug("tps tdm gamedModeInstanceJoin done");
|
||||
return result;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,48 @@
|
||||
using GameServer.Contents.GameMode.Manage;
|
||||
using ServerCommon;
|
||||
using ServerCore;
|
||||
|
||||
namespace GameServer.Contents.GameMode.Mode_Battle.Manage;
|
||||
|
||||
public class TPSTeamDeathMatchJoinSuccessHandler : GameModeJoinSuccessHandlerBase
|
||||
{
|
||||
//private readonly BattleInstanceRoom m_battle_instance_room;
|
||||
|
||||
|
||||
public TPSTeamDeathMatchJoinSuccessHandler(Player player, InstanceRoom instanceRoom) : base(player, GameModeType.TPS_TDM, instanceRoom)
|
||||
{
|
||||
var room_id = instanceRoom.getMap().m_room_id;
|
||||
//var battle_instance_room = BattleInstanceManager.It.getBattleInstanceRoom(room_id);
|
||||
//NullReferenceCheckHelper.throwIfNull(battle_instance_room, () => $"m_battle_instance_room is null !!!");
|
||||
//m_battle_instance_room = battle_instance_room;
|
||||
}
|
||||
|
||||
public override Result joinSuccessValidate()
|
||||
{
|
||||
var result = new Result();
|
||||
return result;
|
||||
}
|
||||
|
||||
public override async Task<Result> joinSuccessConfirmation()
|
||||
{
|
||||
var result = new Result();
|
||||
string err_msg = string.Empty;
|
||||
|
||||
await Task.CompletedTask;
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
public override async Task<Result> joinSuccessNotify()
|
||||
{
|
||||
var result = new Result();
|
||||
|
||||
await Task.CompletedTask;
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
public override void joinSuccessWriteLog()
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
using GameServer.Contents.GameMode.Manage.LeaveManage;
|
||||
using GameServer.Contents.GameMode.Manage.PlayManage;
|
||||
using ServerCommon;
|
||||
|
||||
namespace GameServer.Contents.GameMode.Mode_Battle.Manage;
|
||||
|
||||
public class TPSTeamDeathMatchLeaveHandler : GameModeLeaveHandlerBase
|
||||
{
|
||||
public TPSTeamDeathMatchLeaveHandler(Player player, string roomId) : base(player, roomId, GameModeType.TPS_TDM)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
public override async Task<Result> postLeave(IGameMode gameMode)
|
||||
{
|
||||
var result = new Result();
|
||||
|
||||
await Task.CompletedTask;
|
||||
return new Result();
|
||||
}
|
||||
|
||||
public override async Task<Result> notifyAfterLeave(IGameMode gameMode)
|
||||
{
|
||||
var result = new Result();
|
||||
|
||||
await Task.CompletedTask;
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
public override async Task<Result> logAfterLeave(IGameMode gameMode)
|
||||
{
|
||||
var result = new Result();
|
||||
|
||||
await Task.CompletedTask;
|
||||
|
||||
return result;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user