Archived
1
0
Fork 0
forked from Moux23333/FreeSR
This repository has been archived on 2024-03-30. 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:08:24 +08:00

42 lines
1.2 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.CmdGetCurSceneInfoCsReq)]
public static void OnGetCurSceneInfoCsReq(NetSession session, int cmdId, object data)
{
SceneInfo scene = new SceneInfo
{
GameModeType = 1,
//Bkmbkahohif = 1,
//Admbbnbnibk = 1,
EntryId = 1030101,
PlaneId = 10301,
FloorId = 10301001,
};
scene.EntityLists.Add(new SceneEntityInfo
{
EntityId = 0,
GroupId = 0,
InstId = 0,
Motion = new MotionInfo()
{
Pos = new Vector(),
Rot = new Vector()
}
});
session.Send(CmdType.CmdGetCurSceneInfoScRsp, new GetCurSceneInfoScRsp
{
Scene = scene,
Retcode = (uint)RetcodeStatus.RetSucc
});
}
}
}