2024-02-09 22:15:05 +00:00
|
|
|
|
using GameServer.Controllers.Attributes;
|
2024-02-07 21:41:39 +00:00
|
|
|
|
using GameServer.Network;
|
2024-02-09 22:15:05 +00:00
|
|
|
|
using GameServer.Network.Messages;
|
2024-02-10 16:04:03 +00:00
|
|
|
|
using GameServer.Systems.Event;
|
2024-02-07 21:41:39 +00:00
|
|
|
|
using Protocol;
|
|
|
|
|
|
2024-02-09 22:15:05 +00:00
|
|
|
|
namespace GameServer.Controllers;
|
|
|
|
|
internal class WorldController : Controller
|
2024-02-07 21:41:39 +00:00
|
|
|
|
{
|
2024-02-09 22:15:05 +00:00
|
|
|
|
public WorldController(PlayerSession session) : base(session)
|
2024-02-07 21:41:39 +00:00
|
|
|
|
{
|
2024-02-10 11:51:20 +00:00
|
|
|
|
// WorldController.
|
2024-02-07 21:41:39 +00:00
|
|
|
|
}
|
|
|
|
|
|
2024-02-09 22:15:05 +00:00
|
|
|
|
[GameEvent(GameEventType.EnterGame)]
|
2024-02-10 16:04:03 +00:00
|
|
|
|
public async Task OnEnterGame(CreatureController creatureController)
|
2024-02-07 21:41:39 +00:00
|
|
|
|
{
|
2024-02-10 16:04:03 +00:00
|
|
|
|
await creatureController.JoinScene(8);
|
2024-02-09 22:15:05 +00:00
|
|
|
|
}
|
2024-02-07 21:41:39 +00:00
|
|
|
|
|
2024-02-09 22:15:05 +00:00
|
|
|
|
[NetEvent(MessageId.EntityOnLandedRequest)]
|
|
|
|
|
public ResponseMessage OnEntityOnLandedRequest() => Response(MessageId.EntityOnLandedResponse, new EntityOnLandedResponse());
|
2024-02-07 21:41:39 +00:00
|
|
|
|
|
2024-02-09 22:15:05 +00:00
|
|
|
|
[NetEvent(MessageId.PlayerMotionRequest)]
|
|
|
|
|
public ResponseMessage OnPlayerMotionRequest() => Response(MessageId.PlayerMotionResponse, new PlayerMotionResponse());
|
|
|
|
|
|
|
|
|
|
[NetEvent(MessageId.EntityLoadCompleteRequest)]
|
|
|
|
|
public ResponseMessage OnEntityLoadCompleteRequest() => Response(MessageId.EntityLoadCompleteResponse, new EntityLoadCompleteResponse());
|
|
|
|
|
|
|
|
|
|
[NetEvent(MessageId.UpdateSceneDateRequest)]
|
|
|
|
|
public ResponseMessage OnUpdateSceneDateRequest() => Response(MessageId.UpdateSceneDateResponse, new UpdateSceneDateResponse());
|
2024-02-07 21:41:39 +00:00
|
|
|
|
}
|