TimeCheckRequest and CombatSendPackRequest dummy handlers

This commit is contained in:
xeon 2024-02-12 04:15:49 +03:00
parent 838faa5938
commit 1c57dffd51
3 changed files with 35 additions and 3 deletions

View file

@ -0,0 +1,16 @@
using GameServer.Controllers.Attributes;
using GameServer.Network;
using GameServer.Network.Messages;
using Protocol;
namespace GameServer.Controllers;
internal class CombatMessageController : Controller
{
public CombatMessageController(PlayerSession session) : base(session)
{
// CombatMessageController.
}
[NetEvent(MessageId.CombatSendPackRequest)] // TODO: CombatSendPackRequest is important
public ResponseMessage OnCombatSendPackRequest() => Response(MessageId.CombatSendPackResponse, new CombatSendPackResponse());
}

View file

@ -0,0 +1,19 @@
using GameServer.Controllers.Attributes;
using GameServer.Network;
using GameServer.Network.Messages;
using Protocol;
namespace GameServer.Controllers;
internal class FormationAttributeController : Controller
{
public FormationAttributeController(PlayerSession session) : base(session)
{
// FormationAttributeController.
}
[NetEvent(MessageId.TimeCheckRequest)]
public ResponseMessage OnTimeCheckRequest() => Response(MessageId.TimeCheckResponse, new TimeCheckResponse());
[NetEvent(MessageId.FormationAttrRequest)]
public ResponseMessage OnFormationAttrRequest() => Response(MessageId.FormationAttrResponse, new FormationAttrResponse());
}

View file

@ -42,7 +42,4 @@ internal class FormationController : Controller
Formation = request.Formation Formation = request.Formation
}); });
} }
[NetEvent(MessageId.FormationAttrRequest)]
public ResponseMessage OnFormationAttrRequest() => Response(MessageId.FormationAttrResponse, new FormationAttrResponse());
} }