This repository has been archived on 2024-03-29. You can view files and clone it, but cannot push or open issues or pull requests.
FreeSR/FreeSR.Gateserver/Manager/Handlers/SceneReqGroup.cs
2024-01-27 21:06:07 +08:00

45 lines
1.3 KiB
C#

namespace FreeSR.Gateserver.Manager.Handlers
{
using FreeSR.Gateserver.Manager.Handlers.Core;
using FreeSR.Gateserver.Network;
using FreeSR.Proto;
internal static class SceneReqGroup
{
[Handler(CmdType.GetCurSceneInfoCsReq)]
public static void OnGetCurSceneInfoCsReq(NetSession session, int cmdId, object data)
{
SceneInfo scene = new SceneInfo
{
GameModeType = 1,
Bkmbkahohif = 1,
Admbbnbnibk = 1,
EntryId = 1000101,
PlaneId = 10001,
FloorId = 10001001,
EntityList = new List<SceneEntityInfo>(),
EnvBuffList = new List<BuffInfo>(),
LightenSectionList = new List<int>()
};
scene.EntityList.Add(new SceneEntityInfo
{
EntityId = 0,
GroupId = 0,
InstId = 0,
Motion = new MotionInfo()
{
Pos = new Vector(),
Rot = new Vector()
}
});
session.Send(CmdType.GetCurSceneInfoScRsp, new GetCurSceneInfoScRsp
{
Scene = scene,
Retcode = Retcode.RETCODE_RET_SUCC
});
}
}
}