diff --git a/GameServer/Controllers/FormationController.cs b/GameServer/Controllers/FormationController.cs index d264269..2d33938 100644 --- a/GameServer/Controllers/FormationController.cs +++ b/GameServer/Controllers/FormationController.cs @@ -28,4 +28,7 @@ internal class FormationController : Controller } }, }); + + [NetEvent(MessageId.FormationAttrRequest)] + public ResponseMessage OnFormationAttrRequest() => Response(MessageId.FormationAttrResponse, new FormationAttrResponse()); } diff --git a/GameServer/Controllers/RouletteController.cs b/GameServer/Controllers/RouletteController.cs new file mode 100644 index 0000000..0bab6a6 --- /dev/null +++ b/GameServer/Controllers/RouletteController.cs @@ -0,0 +1,60 @@ +using GameServer.Controllers.Attributes; +using GameServer.Controllers.Event; +using GameServer.Network; +using GameServer.Network.Messages; +using Protocol; + +namespace GameServer.Controllers; +internal class RouletteController : Controller +{ + public RouletteController(PlayerSession session) : base(session) + { + // RouletteController. + } + + [GameEvent(GameEventType.EnterGame)] + public async Task OnEnterGame() + { + await Session.Push(MessageId.ExploreToolAllNotify, new ExploreToolAllNotify + { + SkillList = { 1001, 1004, 1003 }, + ExploreSkill = 1001 + }); + + await Session.Push(MessageId.ExploreSkillRouletteUpdateNotify, new ExploreSkillRouletteUpdateNotify + { + RouletteInfo = + { + new ExploreSkillRoulette + { + SkillIds = {1001, 1004, 1003, 0, 0, 0, 0, 0}, + }, + new ExploreSkillRoulette + { + SkillIds = {1001, 1004, 1003, 0, 0, 0, 0, 0}, + } + } + }); + } + + [NetEvent(MessageId.VisionExploreSkillSetRequest)] + public async Task OnVisionExploreSkillSetRequest(VisionExploreSkillSetRequest request) + { + await Session.Push(MessageId.VisionSkillChangeNotify, new VisionSkillChangeNotify + { + EntityId = 1, + VisionSkillInfos = + { + new VisionSkillInformation + { + SkillId = request.SkillId + } + } + }); + + return Response(MessageId.VisionExploreSkillSetResponse, new VisionExploreSkillSetResponse + { + SkillId = request.SkillId + }); + } +} diff --git a/GameServer/Controllers/WorldController.cs b/GameServer/Controllers/WorldController.cs index 433ad6b..8d40041 100644 --- a/GameServer/Controllers/WorldController.cs +++ b/GameServer/Controllers/WorldController.cs @@ -70,12 +70,10 @@ internal class WorldController : Controller { new VisionSkillInformation { - SkillId = 1302001, - Level = 1, - Quality = 1, + SkillId = 1001 } } - }, + } }, new EntityComponentPb {