Compare commits
No commits in common. "ac277d019ac2c012ae16f2f0a33dd7706ca54f18" and "8f9e14d514bfb842d93ef35ccd3541c17af045b2" have entirely different histories.
ac277d019a
...
8f9e14d514
2 changed files with 0 additions and 35 deletions
|
@ -1,6 +1,5 @@
|
|||
using NahidaImpact.Gameserver.Controllers.Attributes;
|
||||
using NahidaImpact.Gameserver.Controllers.Result;
|
||||
using NahidaImpact.Gameserver.Game;
|
||||
using NahidaImpact.Gameserver.Game.Scene;
|
||||
using NahidaImpact.Protocol;
|
||||
|
||||
|
@ -12,39 +11,6 @@ internal class SceneController : ControllerBase
|
|||
// TODO: Scene management, Entity management!!!
|
||||
public const uint WeaponEntityId = 100663300;
|
||||
|
||||
[NetCommand(CmdType.GetScenePointReq)]
|
||||
public ValueTask<IResult> OnGetScenePointReq(SceneManager sceneManager, Player player)
|
||||
{
|
||||
GetScenePointRsp rsp = new()
|
||||
{
|
||||
SceneId = sceneManager.CurrentSceneId,
|
||||
BelongUid = player.Uid
|
||||
};
|
||||
|
||||
for (uint i = 1; i <= 777; i++)
|
||||
{
|
||||
rsp.UnlockedPointList.Add(i);
|
||||
}
|
||||
|
||||
return ValueTask.FromResult(Response(CmdType.GetScenePointRsp, rsp));
|
||||
}
|
||||
|
||||
[NetCommand(CmdType.GetSceneAreaReq)]
|
||||
public ValueTask<IResult> OnGetSceneAreaReq(SceneManager sceneManager)
|
||||
{
|
||||
GetSceneAreaRsp rsp = new()
|
||||
{
|
||||
SceneId = sceneManager.CurrentSceneId
|
||||
};
|
||||
|
||||
for (uint i = 1; i <= 20; i++)
|
||||
{
|
||||
rsp.AreaIdList.Add(i);
|
||||
}
|
||||
|
||||
return ValueTask.FromResult(Response(CmdType.GetSceneAreaRsp, rsp));
|
||||
}
|
||||
|
||||
[NetCommand(CmdType.PostEnterSceneReq)]
|
||||
public async ValueTask<IResult> OnPostEnterSceneReq(SceneManager sceneManager)
|
||||
{
|
||||
|
|
|
@ -11,7 +11,6 @@ namespace NahidaImpact.Gameserver.Game.Scene;
|
|||
internal class SceneManager(NetSession session, Player player, EntityManager entityManager, EntityFactory entityFactory, BinDataCollection binData)
|
||||
{
|
||||
public uint EnterToken { get; private set; }
|
||||
public uint CurrentSceneId => _sceneId;
|
||||
|
||||
private readonly BinDataCollection _binData = binData;
|
||||
|
||||
|
|
Loading…
Reference in a new issue