support 2.0.5
This commit is contained in:
@@ -7,15 +7,15 @@
|
||||
internal static class LineupReqGroup
|
||||
{
|
||||
public static uint Avatar1 = 8001;
|
||||
public static uint Avatar2 = 1307;
|
||||
public static uint Avatar3 = 1306;
|
||||
public static uint Avatar4 = 1312;
|
||||
public static uint Avatar2 = 1308;
|
||||
public static uint Avatar3 = 1304;
|
||||
public static uint Avatar4 = 1301;
|
||||
[Handler(CmdType.CmdGetCurLineupDataCsReq)]
|
||||
public static void OnGetCurLineupDataCsReq(NetSession session, int cmdId, object _)
|
||||
{
|
||||
var response = new GetCurLineupDataScRsp
|
||||
{
|
||||
Retcode = (uint)RetcodeStatus.RetSucc
|
||||
Retcode = 0
|
||||
};
|
||||
|
||||
response.Lineup = new LineupInfo
|
||||
@@ -50,7 +50,7 @@
|
||||
{
|
||||
var response = new GetAllLineupDataScRsp
|
||||
{
|
||||
Retcode = (uint)RetcodeStatus.RetSucc,
|
||||
Retcode = 0,
|
||||
CurIndex = 0,
|
||||
};
|
||||
|
||||
@@ -88,7 +88,7 @@
|
||||
session.Send(CmdType.CmdChangeLineupLeaderScRsp, new ChangeLineupLeaderScRsp
|
||||
{
|
||||
Slot = request.Slot,
|
||||
Retcode = (uint)RetcodeStatus.RetSucc
|
||||
Retcode = 0
|
||||
});
|
||||
}
|
||||
|
||||
@@ -104,7 +104,7 @@
|
||||
|
||||
session.Send(CmdType.CmdJoinLineupScRsp, new JoinLineupScRsp
|
||||
{
|
||||
Retcode = (uint)RetcodeStatus.RetSucc
|
||||
Retcode = 0
|
||||
});
|
||||
}
|
||||
|
||||
@@ -116,7 +116,6 @@
|
||||
Avatar1 = 0; Avatar2 = 0; Avatar3 = 0; Avatar4 = 0;
|
||||
foreach (LineupSlotData slotData in request.LineupSlotLists)
|
||||
{
|
||||
Console.WriteLine($"Replace Slot:{slotData.Slot} Id:{slotData.Id}");
|
||||
if (slotData.Slot == 0) Avatar1 = slotData.Id;
|
||||
if (slotData.Slot == 1) Avatar2 = slotData.Id;
|
||||
if (slotData.Slot == 2) Avatar3 = slotData.Id;
|
||||
@@ -126,7 +125,7 @@
|
||||
RefreshLineup(session);
|
||||
session.Send(CmdType.CmdReplaceLineupScRsp, new ReplaceLineupScRsp
|
||||
{
|
||||
Retcode = (uint)RetcodeStatus.RetSucc
|
||||
Retcode = 0
|
||||
});
|
||||
}
|
||||
|
||||
@@ -134,7 +133,6 @@
|
||||
public static void OnQuitLineupCsReq(NetSession session, int cmdId, object data)
|
||||
{
|
||||
var request = data as QuitLineupCsReq;
|
||||
Console.WriteLine($"CmdQuitLineupCsReq BaseAvatarId:{request.BaseAvatarId} Index:{request.Index} PlaneId:{request.PlaneId}");
|
||||
if (request.BaseAvatarId == Avatar1) Avatar1 = 0;
|
||||
if (request.BaseAvatarId == Avatar2) Avatar2 = 0;
|
||||
if (request.BaseAvatarId == Avatar3) Avatar3 = 0;
|
||||
@@ -143,13 +141,12 @@
|
||||
RefreshLineup(session);
|
||||
session.Send(CmdType.CmdQuitLineupScRsp, new QuitLineupScRsp
|
||||
{
|
||||
Retcode = (uint)RetcodeStatus.RetSucc,
|
||||
Retcode = 0,
|
||||
BaseAvatarId = request.BaseAvatarId,
|
||||
IsVirtual = request.IsVirtual
|
||||
});
|
||||
}
|
||||
public static void RefreshLineup(NetSession session) {
|
||||
Console.WriteLine($"Team refreshed!{Avatar1} {Avatar2} {Avatar3} {Avatar4}");
|
||||
var characters = new uint[] { Avatar1, Avatar2, Avatar3, Avatar4 };
|
||||
var response = new SyncLineupNotify
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user