support 2.0.5
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
using FreeSR.Gateserver.Manager.Handlers.Core;
|
||||
using FreeSR.Gateserver.Network;
|
||||
using FreeSR.Proto;
|
||||
using System.Numerics;
|
||||
|
||||
|
||||
internal static class SceneReqGroup
|
||||
@@ -15,9 +16,9 @@
|
||||
GameModeType = 1,
|
||||
//Bkmbkahohif = 1,
|
||||
//Admbbnbnibk = 1,
|
||||
EntryId = 1030101,
|
||||
PlaneId = 10301,
|
||||
FloorId = 10301001,
|
||||
EntryId = 2032101,
|
||||
PlaneId = 20321,
|
||||
FloorId = 20321001,
|
||||
};
|
||||
|
||||
/*scene.EntityLists.Add(new SceneEntityInfo
|
||||
@@ -35,8 +36,47 @@
|
||||
session.Send(CmdType.CmdGetCurSceneInfoScRsp, new GetCurSceneInfoScRsp
|
||||
{
|
||||
Scene = scene,
|
||||
Retcode = (uint)RetcodeStatus.RetSucc
|
||||
Retcode = 0
|
||||
});
|
||||
}
|
||||
|
||||
[Handler(CmdType.CmdGetSceneMapInfoCsReq)]
|
||||
public static void OnGetSceneMapInfoCsReq(NetSession session, int cmdId, object data)
|
||||
{
|
||||
var request = data as GetSceneMapInfoCsReq;
|
||||
|
||||
uint[] back = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 0 };
|
||||
|
||||
var mapinfo = new SceneMapInfo
|
||||
{
|
||||
Retcode = 0,
|
||||
LightenSectionLists = back,
|
||||
ChestLists = {
|
||||
new ChestInfo
|
||||
{
|
||||
ChestType = ChestType.MapInfoChestTypeNormal
|
||||
},
|
||||
new ChestInfo
|
||||
{
|
||||
ChestType = ChestType.MapInfoChestTypePuzzle
|
||||
},
|
||||
new ChestInfo
|
||||
{
|
||||
ChestType = ChestType.MapInfoChestTypeChallenge
|
||||
}
|
||||
},
|
||||
};
|
||||
|
||||
var response = new GetSceneMapInfoScRsp
|
||||
{
|
||||
Retcode = 0,
|
||||
EntryId = request.EntryIdLists[0],
|
||||
CurMapEntryId = request.EntryId,
|
||||
SceneMapInfoes = { mapinfo },
|
||||
LightenSectionLists = back,
|
||||
};
|
||||
|
||||
session.Send(CmdType.CmdGetSceneMapInfoScRsp, response);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user