Init enter game

This commit is contained in:
Naruse
2025-06-14 11:15:32 +08:00
commit 6a03b39f07
568 changed files with 92872 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
using KianaBH.KcpSharp;
using KianaBH.Proto;
namespace KianaBH.GameServer.Server.Packet.Send.Activity;
public class PacketArkPlusActivityGetDataRsp : BasePacket
{
public PacketArkPlusActivityGetDataRsp() : base(CmdIds.ArkPlusActivityGetDataRsp)
{
var proto = new ArkPlusActivityGetDataRsp
{
};
SetData(proto);
}
}

View File

@@ -0,0 +1,17 @@
using KianaBH.KcpSharp;
using KianaBH.Proto;
namespace KianaBH.GameServer.Server.Packet.Send.Activity;
public class PacketBuffAssistGetActivityRsp : BasePacket
{
public PacketBuffAssistGetActivityRsp() : base(CmdIds.BuffAssistGetActivityRsp)
{
var proto = new BuffAssistGetActivityRsp
{
};
SetData(proto);
}
}

View File

@@ -0,0 +1,107 @@
using Google.Protobuf.Collections;
using KianaBH.Data;
using KianaBH.KcpSharp;
using KianaBH.Proto;
namespace KianaBH.GameServer.Server.Packet.Send.Activity;
public class PacketGeneralActivityGetMainInfoRsp : BasePacket
{
public PacketGeneralActivityGetMainInfoRsp(RepeatedField<uint> ActivityIdList) : base(CmdIds.GeneralActivityGetMainInfoRsp)
{
var activityList = ActivityIdList.Select(activityId =>
{
GameData.GeneralActivityData
.TryGetValue((int)activityId, out var series);
var activity = new GeneralActivity
{
GeneralBasicInfo = new GeneralActivityBasicInfo
{
ActivityId = activityId,
ScheduleId = series?.Series ?? 0,
SeriesActivityId ={ activityId }
}
};
GameData.GeneralActivityStageGroupData
.TryGetValue((int)activityId, out var activityStage);
if (activityStage != null)
{
activity.ActivityStage = new GeneralActivityStage
{
StageGroupScheduleList =
{
activityStage.Select(x => new GeneralActivityStageGroupScheduleInfo
{
BeginTime = 1593223200,
EndTime = 1913140799,
StageGroupId = x.StageGroupId
})
}
};
}
return activity;
});
var proto = new GeneralActivityGetMainInfoRsp
{
ActivityList = { activityList }
};
SetData(proto);
}
}
//using Google.Protobuf.Collections;
//using KianaBH.Data;
//using KianaBH.KcpSharp;
//using KianaBH.Proto;
//using KianaBH.Util.Extensions;
//namespace KianaBH.GameServer.Server.Packet.Send.Activity;
//public class PacketGeneralActivityGetMainInfoRsp : BasePacket
//{
// public PacketGeneralActivityGetMainInfoRsp(RepeatedField<uint> ActivityIdList) : base(CmdIds.GeneralActivityGetMainInfoRsp)
// {
// var proto = new GeneralActivityGetMainInfoRsp();
// foreach (var Id in ActivityIdList)
// {
// var ActivityData = GameData.GeneralActivityData.TryGetValue((int)Id, out var Data);
// var Activity = new GeneralActivity
// {
// GeneralBasicInfo = new GeneralActivityBasicInfo
// {
// ActivityId = Id,
// ScheduleId = Data!.Series,
// SeriesActivityId = { Id },
// }
// };
// var GeneralStageData = GameData.GeneralActivityStageGroupData.TryGetValue((int)Id, out var StageData);
// if (StageData != null)
// {
// Activity.ActivityStage = new GeneralActivityStage
// {
// StageGroupScheduleList =
// {
// StageData.Select(x => new GeneralActivityStageGroupScheduleInfo
// {
// BeginTime = (uint)Extensions.GetUnixSec(),
// EndTime = (uint)Extensions.GetUnixSec() + 1800,
// StageGroupId = x.StageGroupID
// })
// }
// };
// }
// proto.ActivityList.Add(Activity);
// }
// SetData(proto);
// }
//}

View File

@@ -0,0 +1,42 @@
using KianaBH.Data;
using KianaBH.KcpSharp;
using KianaBH.Proto;
using KianaBH.Util.Extensions;
namespace KianaBH.GameServer.Server.Packet.Send.Activity;
public class PacketGeneralActivityGetScheduleRsp : BasePacket
{
public PacketGeneralActivityGetScheduleRsp() : base(CmdIds.GeneralActivityGetScheduleRsp)
{
// TODO : Add new character tutorial
var time = (uint)Extensions.GetUnixSec() + 3600 * 24 * 7;
var proto = new GeneralActivityGetScheduleRsp();
foreach (var tutorial in GameData.AvatarTutorialData.Values)
{
proto.ScheduleList.Add(new GeneralActivityScheduleInfo
{
ActivityId = tutorial.ActivityID,
SettleTime = time,
EndDayTime = time,
EndTime = time,
});
}
foreach (var tower in GameData.ActivityTowerData.Values)
{
proto.ScheduleList.Add(new GeneralActivityScheduleInfo
{
ActivityId = tower.ActivityID,
SettleTime = time,
EndDayTime = time,
EndTime = time,
});
}
SetData(proto);
}
}

View File

@@ -0,0 +1,17 @@
using KianaBH.KcpSharp;
using KianaBH.Proto;
namespace KianaBH.GameServer.Server.Packet.Send.Activity;
public class PacketGetActivityMainDataRsp : BasePacket
{
public PacketGetActivityMainDataRsp() : base(CmdIds.GetActivityMainDataRsp)
{
var proto = new GetActivityMainDataRsp
{
ActivityModuleTypeList = { Enumerable.Range(1, 72).Select(i => (uint)i) }
};
SetData(proto);
}
}

View File

@@ -0,0 +1,29 @@
using KianaBH.KcpSharp;
using KianaBH.Proto;
namespace KianaBH.GameServer.Server.Packet.Send.Activity;
public class PacketGetActivityRewardStatisticDataRsp : BasePacket
{
public PacketGetActivityRewardStatisticDataRsp() : base(CmdIds.GetActivityRewardStatisticDataRsp)
{
// TODO: Hardcoded
var proto = new GetActivityRewardStatisticDataRsp
{
ActivityRewardData = new ActivityRewardStatisticData
{
Id = 118,
ItemDataList =
{
Enumerable.Range(506, 3).Select(i => new ActivityRewardStatisticItemData
{
ShowId = (uint)i
})
}
}
};
SetData(proto);
}
}

View File

@@ -0,0 +1,399 @@
using KianaBH.KcpSharp;
using KianaBH.Proto;
namespace KianaBH.GameServer.Server.Packet.Send.Activity;
public class PacketGetBulletinActivityMissionRsp : BasePacket
{
public PacketGetBulletinActivityMissionRsp() : base(CmdIds.GetBulletinActivityMissionRsp)
{
// TODO: Hardcoded
var proto = new GetBulletinActivityMissionRsp
{
MissionGroupList =
{
new BulletinMissionGroup
{
ActivityId = 5931
},
new BulletinMissionGroup
{
ActivityId = 5938,
MissionList =
{
new PanelMissionData
{
MissionId = 115679,
CycleList =
{
new PanelMissionData.Types.PanelMissionCycleData
{
BeginTime = 1729828800,
CycleId = 20006997,
EndTime = 1880308800
}
}
}
}
},
new BulletinMissionGroup
{
ActivityId = 5941,
MissionList =
{
new PanelMissionData
{
MissionId = 687511,
CycleList =
{
new PanelMissionData.Types.PanelMissionCycleData
{
BeginTime = 1729828800,
CycleId = 20007074,
EndTime = 1880308800
}
}
}
}
},
new BulletinMissionGroup
{
ActivityId = 5943,
MissionList =
{
new PanelMissionData
{
MissionId = 687521,
CycleList =
{
new PanelMissionData.Types.PanelMissionCycleData
{
BeginTime = 1729828800,
CycleId = 20007081,
EndTime = 1880308800
}
}
}
}
},
new BulletinMissionGroup
{
ActivityId = 5944,
MissionList =
{
new PanelMissionData
{
MissionId = 687530,
CycleList =
{
new PanelMissionData.Types.PanelMissionCycleData
{
BeginTime = 1729108800,
CycleId = 20007089,
EndTime = 1880308800
}
}
}
}
},
new BulletinMissionGroup
{
ActivityId = 5949,
MissionList =
{
new PanelMissionData
{
MissionId = 687546,
CycleList =
{
new PanelMissionData.Types.PanelMissionCycleData
{
BeginTime = 1729108800,
CycleId = 20007106,
EndTime = 1880308800
}
}
},
new PanelMissionData
{
MissionId = 687549,
CycleList =
{
new PanelMissionData.Types.PanelMissionCycleData
{
BeginTime = 1729108800,
CycleId = 20007109,
EndTime = 1880308800
}
}
},
new PanelMissionData
{
MissionId = 687566,
CycleList =
{
new PanelMissionData.Types.PanelMissionCycleData
{
BeginTime = 1729108800,
CycleId = 20007126,
EndTime = 1880308800
}
}
},
new PanelMissionData
{
MissionId = 687563,
CycleList =
{
new PanelMissionData.Types.PanelMissionCycleData
{
BeginTime = 1729108800,
CycleId = 20007123,
EndTime = 1880308800
}
}
},
new PanelMissionData
{
MissionId = 687564,
CycleList =
{
new PanelMissionData.Types.PanelMissionCycleData
{
BeginTime = 1729108800,
CycleId = 20007124,
EndTime = 1880308800
}
}
},
new PanelMissionData
{
MissionId = 687565,
CycleList =
{
new PanelMissionData.Types.PanelMissionCycleData
{
BeginTime = 1729108800,
CycleId = 20007125,
EndTime = 1880308800
}
}
},
new PanelMissionData
{
MissionId = 687562,
CycleList =
{
new PanelMissionData.Types.PanelMissionCycleData
{
BeginTime = 1729108800,
CycleId = 20007122,
EndTime = 1880308800
}
}
},
new PanelMissionData
{
MissionId = 687554,
CycleList =
{
new PanelMissionData.Types.PanelMissionCycleData
{
BeginTime = 1729108800,
CycleId = 20007114,
EndTime = 1880308800
}
}
},
new PanelMissionData
{
MissionId = 687555,
CycleList =
{
new PanelMissionData.Types.PanelMissionCycleData
{
BeginTime = 1729108800,
CycleId = 20007115,
EndTime = 1880308800
}
}
},
new PanelMissionData
{
MissionId = 687567,
CycleList =
{
new PanelMissionData.Types.PanelMissionCycleData
{
BeginTime = 1729108800,
CycleId = 20007127,
EndTime = 1880308800
}
}
},
new PanelMissionData
{
MissionId = 687550,
CycleList =
{
new PanelMissionData.Types.PanelMissionCycleData
{
BeginTime = 1729108800,
CycleId = 20007110,
EndTime = 1880308800
}
}
},
new PanelMissionData
{
MissionId = 687551,
CycleList =
{
new PanelMissionData.Types.PanelMissionCycleData
{
BeginTime = 1729108800,
CycleId = 20007111,
EndTime = 1880308800
}
}
},
new PanelMissionData
{
MissionId = 687552,
CycleList =
{
new PanelMissionData.Types.PanelMissionCycleData
{
BeginTime = 1729108800,
CycleId = 20007112,
EndTime = 1880308800
}
}
},
new PanelMissionData
{
MissionId = 687553,
CycleList =
{
new PanelMissionData.Types.PanelMissionCycleData
{
BeginTime = 1729108800,
CycleId = 20007113,
EndTime = 1880308800
}
}
},
new PanelMissionData
{
MissionId = 687560,
CycleList =
{
new PanelMissionData.Types.PanelMissionCycleData
{
BeginTime = 1729108800,
CycleId = 20007120,
EndTime = 1880308800
}
}
},
new PanelMissionData
{
MissionId = 687561,
CycleList =
{
new PanelMissionData.Types.PanelMissionCycleData
{
BeginTime = 1729108800,
CycleId = 20007121,
EndTime = 1880308800
}
}
},
new PanelMissionData
{
MissionId = 687545,
CycleList =
{
new PanelMissionData.Types.PanelMissionCycleData
{
BeginTime = 1729108800,
CycleId = 20007105,
EndTime = 1880308800
}
}
}
}
},
new BulletinMissionGroup
{
ActivityId = 5952
},
new BulletinMissionGroup
{
ActivityId = 5953,
MissionList =
{
new PanelMissionData
{
MissionId = 687608,
CycleList =
{
new PanelMissionData.Types.PanelMissionCycleData
{
BeginTime = 1729108800,
CycleId = 20007187,
EndTime = 1880308800
}
}
},
new PanelMissionData
{
MissionId = 687620,
CycleList =
{
new PanelMissionData.Types.PanelMissionCycleData
{
BeginTime = 1729108800,
CycleId = 20007141,
EndTime = 1880308800
}
}
},
new PanelMissionData
{
MissionId = 687716,
CycleList =
{
new PanelMissionData.Types.PanelMissionCycleData
{
BeginTime = 1729108800,
CycleId = 20007143,
EndTime = 1880308800
}
}
}
}
},
new BulletinMissionGroup
{
ActivityId = 5959
},
new BulletinMissionGroup
{
ActivityId = 5962
},
new BulletinMissionGroup
{
ActivityId = 5963
},
new BulletinMissionGroup
{
ActivityId = 5964
}
}
};
SetData(proto);
}
}

View File

@@ -0,0 +1,17 @@
using KianaBH.KcpSharp;
using KianaBH.Proto;
namespace KianaBH.GameServer.Server.Packet.Send.Activity;
public class PacketGetBulletinRsp : BasePacket
{
public PacketGetBulletinRsp() : base(CmdIds.GetBulletinRsp)
{
var proto = new GetBulletinRsp
{
IsAll = true,
};
SetData(proto);
}
}

View File

@@ -0,0 +1,17 @@
using KianaBH.KcpSharp;
using KianaBH.Proto;
namespace KianaBH.GameServer.Server.Packet.Send.Activity;
public class PacketGetChapterActivityDataRsp : BasePacket
{
public PacketGetChapterActivityDataRsp() : base(CmdIds.GetChapterActivityDataRsp)
{
var proto = new GetChapterActivityDataRsp
{
};
SetData(proto);
}
}

View File

@@ -0,0 +1,17 @@
using KianaBH.KcpSharp;
using KianaBH.Proto;
namespace KianaBH.GameServer.Server.Packet.Send.Activity;
public class PacketGetChapterCompensationInfoRsp : BasePacket
{
public PacketGetChapterCompensationInfoRsp() : base(CmdIds.GetChapterCompensationInfoRsp)
{
var proto = new GetChapterCompensationInfoRsp
{
};
SetData(proto);
}
}

View File

@@ -0,0 +1,136 @@
using KianaBH.KcpSharp;
using KianaBH.Proto;
namespace KianaBH.GameServer.Server.Packet.Send.Activity;
public class PacketGetDropLimitActivityRsp : BasePacket
{
public PacketGetDropLimitActivityRsp() : base(CmdIds.GetDropLimitActivityRsp)
{
// TODO: Hardcoded
var proto = new GetDropLimitActivityRsp
{
DropLimitActivityList =
{
new DropLimitActivity
{
ActivityId = 1,
BeginTime = 1576029600,
EndTime = 1891735200,
DropLimitGotNumList =
{
new DropLimitItem { LimitId = 101 },
new DropLimitItem { LimitId = 201 },
new DropLimitItem { LimitId = 301 },
new DropLimitItem { LimitId = 401 }
}
},
new DropLimitActivity
{
ActivityId = 38,
BeginTime = 1624500000,
EndTime = 2068056000,
DropLimitGotNumList =
{
new DropLimitItem { LimitId = 3001 },
new DropLimitItem { LimitId = 3002, GotNum = 3800 },
new DropLimitItem { LimitId = 3003, GotNum = 1500 },
new DropLimitItem { LimitId = 3004, GotNum = 1500 },
new DropLimitItem { LimitId = 3005, GotNum = 1500 },
new DropLimitItem { LimitId = 3006, GotNum = 1500 },
new DropLimitItem { LimitId = 3007, GotNum = 1500 },
new DropLimitItem { LimitId = 3008, GotNum = 1500 },
new DropLimitItem { LimitId = 3010, GotNum = 1500 },
new DropLimitItem { LimitId = 3013, GotNum = 1500 },
new DropLimitItem { LimitId = 3014, GotNum = 1500 },
new DropLimitItem { LimitId = 3015, GotNum = 1500 },
new DropLimitItem { LimitId = 3016, GotNum = 1500 },
new DropLimitItem { LimitId = 3017, GotNum = 1500 },
new DropLimitItem { LimitId = 3019, GotNum = 1500 },
new DropLimitItem { LimitId = 3021, GotNum = 1500 },
new DropLimitItem { LimitId = 3022, GotNum = 1500 },
new DropLimitItem { LimitId = 3026, GotNum = 1500 },
new DropLimitItem { LimitId = 3027, GotNum = 1500 },
new DropLimitItem { LimitId = 3028, GotNum = 1500 },
new DropLimitItem { LimitId = 3031, GotNum = 1500 },
new DropLimitItem { LimitId = 3032, GotNum = 1500 },
new DropLimitItem { LimitId = 3035, GotNum = 1500 },
new DropLimitItem { LimitId = 3036, GotNum = 1500 },
new DropLimitItem { LimitId = 3040, GotNum = 210 },
new DropLimitItem { LimitId = 3042, GotNum = 1500 },
new DropLimitItem { LimitId = 3043, GotNum = 1500 },
new DropLimitItem { LimitId = 3045, GotNum = 430 },
new DropLimitItem { LimitId = 3047, GotNum = 430 },
new DropLimitItem { LimitId = 3048, GotNum = 430 },
new DropLimitItem { LimitId = 3049, GotNum = 1500 },
new DropLimitItem { LimitId = 3050, GotNum = 430 },
new DropLimitItem { LimitId = 3051, GotNum = 465 },
new DropLimitItem { LimitId = 3052, GotNum = 465 },
new DropLimitItem { LimitId = 3054, GotNum = 505 },
new DropLimitItem { LimitId = 3055, GotNum = 505 }
}
},
new DropLimitActivity
{
ActivityId = 42,
BeginTime = 1634004000,
EndTime = 1891735200,
DropLimitGotNumList =
{
new DropLimitItem { LimitId = 408 }
}
},
new DropLimitActivity
{
ActivityId = 45,
BeginTime = 1644264000,
EndTime = 1975780800,
DropLimitGotNumList =
{
new DropLimitItem { LimitId = 4001 }
}
},
new DropLimitActivity
{
ActivityId = 47,
BeginTime = 1668045600,
EndTime = 1976558400,
DropLimitGotNumList =
{
new DropLimitItem { LimitId = 4003, GotNum = 360 }
}
},
new DropLimitActivity
{
ActivityId = 48,
BeginTime = 1668045600,
EndTime = 1976558400,
DropLimitGotNumList =
{
new DropLimitItem { LimitId = 4006 }
}
},
new DropLimitActivity
{
ActivityId = 49,
BeginTime = 1668045600,
EndTime = 1976558400,
DropLimitGotNumList =
{
new DropLimitItem { LimitId = 4010, GotNum = 1050 },
new DropLimitItem { LimitId = 4012, GotNum = 600 }
}
},
new DropLimitActivity
{
ActivityId = 50,
BeginTime = 1673740800,
EndTime = 1976558400
}
}
};
SetData(proto);
}
}

View File

@@ -0,0 +1,17 @@
using KianaBH.KcpSharp;
using KianaBH.Proto;
namespace KianaBH.GameServer.Server.Packet.Send.Activity;
public class PacketGetExtractReforgeActivityRsp : BasePacket
{
public PacketGetExtractReforgeActivityRsp() : base(CmdIds.GetExtractReforgeActivityRsp)
{
var proto = new GetExtractReforgeActivityRsp
{
};
SetData(proto);
}
}

View File

@@ -0,0 +1,17 @@
using KianaBH.KcpSharp;
using KianaBH.Proto;
namespace KianaBH.GameServer.Server.Packet.Send.Activity;
public class PacketGetFarmActivityDataRsp : BasePacket
{
public PacketGetFarmActivityDataRsp() : base(CmdIds.GetFarmActivityDataRsp)
{
var proto = new GetFarmActivityDataRsp
{
};
SetData(proto);
}
}

View File

@@ -0,0 +1,17 @@
using KianaBH.KcpSharp;
using KianaBH.Proto;
namespace KianaBH.GameServer.Server.Packet.Send.Activity;
public class PacketGetGardenScheduleRsp : BasePacket
{
public PacketGetGardenScheduleRsp() : base(CmdIds.GetGardenScheduleRsp)
{
var proto = new GetGardenScheduleRsp
{
};
SetData(proto);
}
}

View File

@@ -0,0 +1,25 @@
using KianaBH.KcpSharp;
using KianaBH.Proto;
namespace KianaBH.GameServer.Server.Packet.Send.Activity;
public class PacketGetInviteActivityInviteeDataRsp : BasePacket
{
public PacketGetInviteActivityInviteeDataRsp() : base(CmdIds.GetInviteActivityInviteeDataRsp)
{
// TODO: Hardcoded
var proto = new GetInviteActivityInviteeDataRsp
{
InviteeActivityInfoList =
{
new InviteeActivity
{
ScheduleId = 2,
ActivityType = InviteeActivityType.Goback
}
}
};
SetData(proto);
}
}

View File

@@ -0,0 +1,29 @@
using KianaBH.KcpSharp;
using KianaBH.Proto;
namespace KianaBH.GameServer.Server.Packet.Send.Activity;
public class PacketGetInviteActivityInviterDataRsp : BasePacket
{
public PacketGetInviteActivityInviterDataRsp() : base(CmdIds.GetInviteActivityInviterDataRsp)
{
// TODO: Hardcoded
var proto = new GetInviteActivityInviterDataRsp
{
InviterActivityInfoList =
{
new InviterActivity
{
ScheduleId = 4
},
new InviterActivity
{
ScheduleId = 103
}
},
MyInviteCode = "17263334YG"
};
SetData(proto);
}
}

View File

@@ -0,0 +1,30 @@
using KianaBH.KcpSharp;
using KianaBH.Proto;
using KianaBH.Util.Extensions;
namespace KianaBH.GameServer.Server.Packet.Send.Activity;
public class PacketGetLoginActivityRsp : BasePacket
{
public PacketGetLoginActivityRsp() : base(CmdIds.GetLoginActivityRsp)
{
// TODO: Hardcoded
var now = (uint)Extensions.GetUnixSec();
var proto = new GetLoginActivityRsp
{
LoginList =
{
new LoginActivityData
{
Id = 581,
LoginDays = now,
AcceptTime = now,
DurationEndTime = now + 604800 * 2
}
}
};
SetData(proto);
}
}

View File

@@ -0,0 +1,17 @@
using KianaBH.KcpSharp;
using KianaBH.Proto;
namespace KianaBH.GameServer.Server.Packet.Send.Activity;
public class PacketGetMosaicActivityRsp : BasePacket
{
public PacketGetMosaicActivityRsp() : base(CmdIds.GetMosaicActivityRsp)
{
var proto = new GetMosaicActivityRsp
{
};
SetData(proto);
}
}

View File

@@ -0,0 +1,17 @@
using KianaBH.KcpSharp;
using KianaBH.Proto;
namespace KianaBH.GameServer.Server.Packet.Send.Activity;
public class PacketGetNewbieActivityRsp : BasePacket
{
public PacketGetNewbieActivityRsp() : base(CmdIds.GetNewbieActivityRsp)
{
var proto = new GetNewbieActivityRsp
{
};
SetData(proto);
}
}

View File

@@ -0,0 +1,17 @@
using KianaBH.KcpSharp;
using KianaBH.Proto;
namespace KianaBH.GameServer.Server.Packet.Send.Activity;
public class PacketGetNinjaActivityRsp : BasePacket
{
public PacketGetNinjaActivityRsp() : base(CmdIds.GetNinjaActivityRsp)
{
var proto = new GetNinjaActivityRsp
{
};
SetData(proto);
}
}

View File

@@ -0,0 +1,48 @@
using KianaBH.KcpSharp;
using KianaBH.Proto;
namespace KianaBH.GameServer.Server.Packet.Send.Activity;
public class PacketGetThemeWantedRsp : BasePacket
{
public PacketGetThemeWantedRsp() : base(CmdIds.GetThemeWantedRsp)
{
// TODO: Hardcoded
var proto = new GetThemeWantedRsp
{
ThemeWantedActivity = new ThemeWantedActivity
{
ActivityId = 11105,
OpenStageGroupIdList = { 17, 18, 19, 20 },
ScheduleId = 5,
StageGroupInfoList =
{
new ThemeWantedStageGroupInfo
{
Progress = 8,
StageGroupId = 17
},
new ThemeWantedStageGroupInfo
{
NotPassProgressList = { 7 },
Progress = 7,
StageGroupId = 18
},
new ThemeWantedStageGroupInfo
{
Progress = 8,
StageGroupId = 19
},
new ThemeWantedStageGroupInfo
{
Progress = 8,
StageGroupId = 20
},
}
}
};
SetData(proto);
}
}

View File

@@ -0,0 +1,17 @@
using KianaBH.KcpSharp;
using KianaBH.Proto;
namespace KianaBH.GameServer.Server.Packet.Send.Adventure;
public class PacketGetAdventureGroupRsp : BasePacket
{
public PacketGetAdventureGroupRsp() : base(CmdIds.GetAdventureGroupRsp)
{
var proto = new GetAdventureGroupRsp
{
};
SetData(proto);
}
}

View File

@@ -0,0 +1,57 @@
using KianaBH.KcpSharp;
using KianaBH.Proto;
namespace KianaBH.GameServer.Server.Packet.Send.Adventure;
public class PacketGetAdventureStorySweepInfoRsp : BasePacket
{
public PacketGetAdventureStorySweepInfoRsp() : base(CmdIds.GetAdventureStorySweepInfoRsp)
{
// TODO: Hardcoded
var proto = new GetAdventureStorySweepInfoRsp
{
StorySweepList =
{
new IslandStorySweepData
{
AvatarIdList =
{
20401,
20301,
20201
},
IsFinished = true,
OverTime = 1719938652,
SweepId = 282
},
new IslandStorySweepData
{
AvatarIdList =
{
3701,
3601,
3501
},
IsFinished = true,
OverTime = 1719938654,
SweepId = 282
},
new IslandStorySweepData
{
AvatarIdList =
{
3301,
3201,
3101
},
IsFinished = true,
OverTime = 1719938655,
SweepId = 282
}
}
};
SetData(proto);
}
}

View File

@@ -0,0 +1,17 @@
using KianaBH.KcpSharp;
using KianaBH.Proto;
namespace KianaBH.GameServer.Server.Packet.Send.Adventure;
public class PacketGetConsignedOrderDataRsp : BasePacket
{
public PacketGetConsignedOrderDataRsp() : base(CmdIds.GetConsignedOrderDataRsp)
{
var proto = new GetConsignedOrderDataRsp
{
};
SetData(proto);
}
}

View File

@@ -0,0 +1,27 @@
using KianaBH.KcpSharp;
using KianaBH.Proto;
namespace KianaBH.GameServer.Server.Packet.Send.Armada;
public class PacketGetArmadaActivityListRsp : BasePacket
{
public PacketGetArmadaActivityListRsp() : base(CmdIds.GetArmadaActivityListRsp)
{
// TODO: Hardcoded
var proto = new GetArmadaActivityListRsp
{
ActivityList =
{
new ArmadaActivity
{
BeginTime = 0,
EndTime = 1880308800,
Type = ArmadaActivityType.ArmadaActivityArmadaStageScoreActivity
}
}
};
SetData(proto);
}
}

View File

@@ -0,0 +1,17 @@
using KianaBH.KcpSharp;
using KianaBH.Proto;
namespace KianaBH.GameServer.Server.Packet.Send.Armada;
public class PacketGetArmadaDataRsp : BasePacket
{
public PacketGetArmadaDataRsp() : base(CmdIds.GetArmadaDataRsp)
{
var proto = new GetArmadaDataRsp
{
};
SetData(proto);
}
}

View File

@@ -0,0 +1,17 @@
using KianaBH.KcpSharp;
using KianaBH.Proto;
namespace KianaBH.GameServer.Server.Packet.Send.Armada;
public class PacketGetArmadaStageScoreActivityRsp : BasePacket
{
public PacketGetArmadaStageScoreActivityRsp() : base(CmdIds.GetArmadaStageScoreActivityRsp)
{
var proto = new GetArmadaStageScoreActivityRsp
{
};
SetData(proto);
}
}

View File

@@ -0,0 +1,20 @@
using KianaBH.KcpSharp;
using KianaBH.Proto;
namespace KianaBH.GameServer.Server.Packet.Send.Auth;
public class PacketGetAuthkeyRsp : BasePacket
{
public PacketGetAuthkeyRsp(string AuthAppid) : base(CmdIds.GetAuthkeyRsp)
{
var proto = new GetAuthkeyRsp
{
AuthAppid = AuthAppid,
Authkey = "0",
SignType = 2,
AuthkeyVer = 1,
};
SetData(proto);
}
}

View File

@@ -0,0 +1,17 @@
using KianaBH.KcpSharp;
using KianaBH.Proto;
namespace KianaBH.GameServer.Server.Packet.Send.Avatar;
public class PacketAddCustomAvatarTeamRsp : BasePacket
{
public PacketAddCustomAvatarTeamRsp() : base(CmdIds.AddCustomAvatarTeamRsp)
{
var proto = new AddCustomAvatarTeamRsp
{
};
SetData(proto);
}
}

View File

@@ -0,0 +1,18 @@
using KianaBH.KcpSharp;
using KianaBH.Proto;
namespace KianaBH.GameServer.Server.Packet.Send.Avatar;
public class PacketAvatarSubSkillLevelUpRsp : BasePacket
{
public PacketAvatarSubSkillLevelUpRsp() : base(CmdIds.AvatarSubSkillLevelUpRsp)
{
// TODO: Implement
var proto = new AvatarSubSkillLevelUpRsp
{
};
SetData(proto);
}
}

View File

@@ -0,0 +1,17 @@
using KianaBH.KcpSharp;
using KianaBH.Proto;
namespace KianaBH.GameServer.Server.Packet.Send.Avatar;
public class PacketDelCustomAvatarTeamRsp : BasePacket
{
public PacketDelCustomAvatarTeamRsp() : base(CmdIds.DelCustomAvatarTeamRsp)
{
var proto = new DelCustomAvatarTeamRsp
{
};
SetData(proto);
}
}

View File

@@ -0,0 +1,18 @@
using KianaBH.KcpSharp;
using KianaBH.Proto;
namespace KianaBH.GameServer.Server.Packet.Send.Avatar;
public class PacketDressEquipmentRsp : BasePacket
{
public PacketDressEquipmentRsp() : base(CmdIds.DressEquipmentRsp)
{
// TODO: Implement
var proto = new DressEquipmentRsp
{
};
SetData(proto);
}
}

View File

@@ -0,0 +1,19 @@
using Google.Protobuf.Collections;
using KianaBH.Database.Avatar;
using KianaBH.KcpSharp;
using KianaBH.Proto;
namespace KianaBH.GameServer.Server.Packet.Send.Avatar;
public class PacketGetAvatarDataRsp : BasePacket
{
public PacketGetAvatarDataRsp(List<AvatarInfo> Avatars, bool IsAll) : base(CmdIds.GetAvatarDataRsp)
{
var proto = new GetAvatarDataRsp
{
AvatarList = { Avatars.Select(avatar => avatar.ToProto()) },
IsAll = IsAll
};
SetData(proto);
}
}

View File

@@ -0,0 +1,17 @@
using KianaBH.KcpSharp;
using KianaBH.Proto;
namespace KianaBH.GameServer.Server.Packet.Send.Avatar;
public class PacketGetAvatarMissionActivityRsp : BasePacket
{
public PacketGetAvatarMissionActivityRsp() : base(CmdIds.GetAvatarMissionActivityRsp)
{
var proto = new GetAvatarMissionActivityRsp
{
};
SetData(proto);
}
}

View File

@@ -0,0 +1,161 @@
using KianaBH.GameServer.Game.Player;
using KianaBH.KcpSharp;
using KianaBH.Proto;
namespace KianaBH.GameServer.Server.Packet.Send.Avatar;
public class PacketGetAvatarRollDataRsp : BasePacket
{
public PacketGetAvatarRollDataRsp(PlayerInstance player) : base(CmdIds.GetAvatarRollDataRsp)
{
//var proto = new GetAvatarRollDataRsp
//{
// IsAll = true,
// RollList =
// {
// player.AvatarManager?.AvatarData?.Avatars?
// .Select(avatar => new AvatarRoll
// {
// AvatarId = avatar.AvatarId,
// IsUnlock = true
// })
// }
//};
var proto = new GetAvatarRollDataRsp
{
IsAll = true,
RollList =
{
new AvatarRoll { AvatarId = 101, IsUnlock = true },
new AvatarRoll { AvatarId = 102, IsUnlock = true },
new AvatarRoll { AvatarId = 103, IsUnlock = true },
new AvatarRoll { AvatarId = 104, IsUnlock = true },
new AvatarRoll { AvatarId = 105, IsUnlock = true },
new AvatarRoll { AvatarId = 106, IsUnlock = true },
new AvatarRoll { AvatarId = 111, IsUnlock = true },
new AvatarRoll { AvatarId = 112, IsUnlock = true },
new AvatarRoll { AvatarId = 113, IsUnlock = true },
new AvatarRoll { AvatarId = 114, IsUnlock = true },
new AvatarRoll { AvatarId = 201, IsUnlock = true },
new AvatarRoll { AvatarId = 202, IsUnlock = true },
new AvatarRoll { AvatarId = 203, IsUnlock = true },
new AvatarRoll { AvatarId = 204, IsUnlock = true },
new AvatarRoll { AvatarId = 205, IsUnlock = true },
new AvatarRoll { AvatarId = 206, IsUnlock = true },
new AvatarRoll { AvatarId = 211, IsUnlock = true },
new AvatarRoll { AvatarId = 212, IsUnlock = true },
new AvatarRoll { AvatarId = 213, IsUnlock = true },
new AvatarRoll { AvatarId = 214, IsUnlock = true },
new AvatarRoll { AvatarId = 301, IsUnlock = true },
new AvatarRoll { AvatarId = 302, IsUnlock = true },
new AvatarRoll { AvatarId = 303, IsUnlock = true },
new AvatarRoll { AvatarId = 311, IsUnlock = true },
new AvatarRoll { AvatarId = 312, IsUnlock = true },
new AvatarRoll { AvatarId = 313, IsUnlock = true },
new AvatarRoll { AvatarId = 314, IsUnlock = true },
new AvatarRoll { AvatarId = 317, IsUnlock = true },
new AvatarRoll { AvatarId = 401, IsUnlock = true },
new AvatarRoll { AvatarId = 402, IsUnlock = true },
new AvatarRoll { AvatarId = 403, IsUnlock = true },
new AvatarRoll { AvatarId = 404, IsUnlock = true },
new AvatarRoll { AvatarId = 411, IsUnlock = true },
new AvatarRoll { AvatarId = 412, IsUnlock = true },
new AvatarRoll { AvatarId = 421, IsUnlock = true },
new AvatarRoll { AvatarId = 422, IsUnlock = true },
new AvatarRoll { AvatarId = 501, IsUnlock = true },
new AvatarRoll { AvatarId = 502, IsUnlock = true },
new AvatarRoll { AvatarId = 503, IsUnlock = true },
new AvatarRoll { AvatarId = 504, IsUnlock = true },
new AvatarRoll { AvatarId = 506, IsUnlock = true },
new AvatarRoll { AvatarId = 507, IsUnlock = true },
new AvatarRoll { AvatarId = 511, IsUnlock = true },
new AvatarRoll { AvatarId = 601, IsUnlock = true },
new AvatarRoll { AvatarId = 602, IsUnlock = true },
new AvatarRoll { AvatarId = 603, IsUnlock = true },
new AvatarRoll { AvatarId = 604, IsUnlock = true },
new AvatarRoll { AvatarId = 611, IsUnlock = true },
new AvatarRoll { AvatarId = 612, IsUnlock = true },
new AvatarRoll { AvatarId = 702, IsUnlock = true },
new AvatarRoll { AvatarId = 703, IsUnlock = true },
new AvatarRoll { AvatarId = 705, IsUnlock = true },
new AvatarRoll { AvatarId = 706, IsUnlock = true },
new AvatarRoll { AvatarId = 711, IsUnlock = true },
new AvatarRoll { AvatarId = 712, IsUnlock = true },
new AvatarRoll { AvatarId = 713, IsUnlock = true },
new AvatarRoll { AvatarId = 714, IsUnlock = true },
new AvatarRoll { AvatarId = 801, IsUnlock = true },
new AvatarRoll { AvatarId = 802, IsUnlock = true },
new AvatarRoll { AvatarId = 803, IsUnlock = true },
new AvatarRoll { AvatarId = 2201, IsUnlock = true },
new AvatarRoll { AvatarId = 2202, IsUnlock = true },
new AvatarRoll { AvatarId = 2401, IsUnlock = true },
new AvatarRoll { AvatarId = 2501, IsUnlock = true },
new AvatarRoll { AvatarId = 2601, IsUnlock = true },
new AvatarRoll { AvatarId = 2801, IsUnlock = true },
new AvatarRoll { AvatarId = 2901, IsUnlock = true },
new AvatarRoll { AvatarId = 2902, IsUnlock = true },
new AvatarRoll { AvatarId = 3101, IsUnlock = true },
new AvatarRoll { AvatarId = 3201, IsUnlock = true },
new AvatarRoll { AvatarId = 3301, IsUnlock = true },
new AvatarRoll { AvatarId = 3501, IsUnlock = true },
new AvatarRoll { AvatarId = 3601, IsUnlock = true },
new AvatarRoll { AvatarId = 3701, IsUnlock = true },
new AvatarRoll { AvatarId = 20201, IsUnlock = true },
new AvatarRoll { AvatarId = 20301, IsUnlock = true },
new AvatarRoll { AvatarId = 20401, IsUnlock = true },
new AvatarRoll { AvatarId = 70005, Progress = 18 },
new AvatarRoll { AvatarId = 70006, Progress = 18 },
new AvatarRoll { AvatarId = 70010, Progress = 18 },
new AvatarRoll
{
AvatarId = 70011,
HasTakeGroupList = { 111 },
Progress = 33
},
new AvatarRoll
{
AvatarId = 70019,
HasTakeGroupList = { 191, 192 },
Progress = 87
},
new AvatarRoll
{
AvatarId = 70022,
HasTakeGroupList = { 221, 222 },
IsUnlock = true,
Progress = 68
},
new AvatarRoll
{
AvatarId = 70025,
HasTakeGroupList = { 251, 252 },
Progress = 87
},
new AvatarRoll
{
AvatarId = 70030,
HasTakeGroupList = { 301, 302 },
Progress = 87
},
new AvatarRoll
{
AvatarId = 70032,
HasTakeGroupList = { 321 },
Progress = 33
},
new AvatarRoll { AvatarId = 70038, Progress = 21 },
new AvatarRoll { AvatarId = 70065, Progress = 33 },
new AvatarRoll
{
AvatarId = 70080,
HasTakeGroupList = { 801, 802 },
IsUnlock = true,
Progress = 63
}
}
};
SetData(proto);
}
}

View File

@@ -0,0 +1,17 @@
using KianaBH.KcpSharp;
using KianaBH.Proto;
namespace KianaBH.GameServer.Server.Packet.Send.Avatar;
public class PacketGetAvatarTeamDataRsp : BasePacket
{
public PacketGetAvatarTeamDataRsp() : base(CmdIds.GetAvatarTeamDataRsp)
{
var proto = new GetAvatarTeamDataRsp // TODO: Add Lineup
{
};
SetData(proto);
}
}

View File

@@ -0,0 +1,17 @@
using KianaBH.KcpSharp;
using KianaBH.Proto;
namespace KianaBH.GameServer.Server.Packet.Send.Avatar;
public class PacketUpdateCustomAvatarTeamRsp : BasePacket
{
public PacketUpdateCustomAvatarTeamRsp() : base(CmdIds.UpdateCustomAvatarTeamRsp)
{
var proto = new UpdateCustomAvatarTeamRsp
{
};
SetData(proto);
}
}

View File

@@ -0,0 +1,27 @@
using Google.Protobuf.Collections;
using KianaBH.KcpSharp;
using KianaBH.Proto;
using KianaBH.Util.Extensions;
namespace KianaBH.GameServer.Server.Packet.Send.Battle;
public class PacketGetBuffEffectRsp : BasePacket
{
public PacketGetBuffEffectRsp(RepeatedField<uint> EffectIdList) : base(CmdIds.GetBuffEffectRsp)
{
var proto = new GetBuffEffectRsp
{
AuraEffectList = { EffectIdList },
EffectList =
{
EffectIdList.Select(id => new BuffEffect
{
EffectId = id,
EndTime = (uint)Extensions.GetUnixSec() + 3600,
})
}
};
SetData(proto);
}
}

View File

@@ -0,0 +1,17 @@
using KianaBH.KcpSharp;
using KianaBH.Proto;
namespace KianaBH.GameServer.Server.Packet.Send.BattlePass;
public class PacketGetBattlePassMissionPanelRsp : BasePacket
{
public PacketGetBattlePassMissionPanelRsp() : base(CmdIds.GetBattlePassMissionPanelRsp)
{
var proto = new GetBattlePassMissionPanelRsp
{
};
SetData(proto);
}
}

View File

@@ -0,0 +1,38 @@
using KianaBH.Data;
using KianaBH.KcpSharp;
using KianaBH.Proto;
namespace KianaBH.GameServer.Server.Packet.Send.Challenge;
public class PacketGetChallengeStepCompensationInfoRsp : BasePacket
{
public PacketGetChallengeStepCompensationInfoRsp() : base(CmdIds.GetChallengeStepCompensationInfoRsp)
{
var proto = new GetChallengeStepCompensationInfoRsp
{
CompensationList =
{
GameData.StepMissionCompensationData.Values
.Select(m => new ChallengeStepCompensation
{
CompensationId = m.CompensationId,
IsTakeCompensation = true,
NewChallengeStepCompensationList =
{
m.NewChallengeStepIdList.Select(id => new StepCompensation { StepId = id })
},
OldChallengeStepCompensationList =
{
m.OldChallengeStepIdList.Select(id => new StepCompensation { StepId = id })
},
MainlineStepCompensationList =
{
m.MainLineStepIdList.Select(id => new StepCompensation { StepId = id })
},
})
}
};
SetData(proto);
}
}

View File

@@ -0,0 +1,44 @@
using KianaBH.KcpSharp;
using KianaBH.Proto;
namespace KianaBH.GameServer.Server.Packet.Send.Chapter;
public class PacketChapterArkGetDataRsp : BasePacket
{
public PacketChapterArkGetDataRsp(uint ChapterId) : base(CmdIds.ChapterArkGetDataRsp)
{
// TODO: Hardcoded
var avatarList = new List<uint> { 1, 2, 3, 4, 5 };
var proto = new ChapterArkGetDataRsp
{
ChapterArk = new ChapterArk
{
ChapterId = ChapterId,
AvatarList = { avatarList },
IsFinishOpening = true,
RoleList =
{
avatarList.Select(id => new ChapterArkRoleInfo
{
Id = id,
Level = 30
})
},
SkillList =
{
Enumerable.Range(1, 5)
.SelectMany(i => Enumerable.Range(1, 12)
.Select(j => new ChapterArkSkillInfo
{
Id = (uint)(i * 100 + j),
Level = (uint)(j > 3 ? 3 : 1)
}))
}
}
};
SetData(proto);
}
}

View File

@@ -0,0 +1,20 @@
using KianaBH.KcpSharp;
using KianaBH.Proto;
namespace KianaBH.GameServer.Server.Packet.Send.Chapter;
public class PacketChapterBwWorldGetDataRsp : BasePacket
{
public PacketChapterBwWorldGetDataRsp(uint ChapterId) : base(CmdIds.ChapterBwWorldGetDataRsp)
{
var proto = new ChapterBwWorldGetDataRsp
{
ChapterBwWorld = new ChapterBwWorld
{
ChapterId = ChapterId
}
};
SetData(proto);
}
}

View File

@@ -0,0 +1,35 @@
using KianaBH.KcpSharp;
using KianaBH.Proto;
using KianaBH.Data;
namespace KianaBH.GameServer.Server.Packet.Send.Chapter;
public class PacketChapterGroupGetDataRsp : BasePacket
{
public PacketChapterGroupGetDataRsp() : base(CmdIds.ChapterGroupGetDataRsp)
{
var proto = new ChapterGroupGetDataRsp
{
IsAll = true,
ChapterGroupList =
{
GameData.ChapterGroupConfigData.Select(x => new ChapterGroup
{
Id = (uint)x.Key,
SiteList =
{
x.Value.SiteList.Select(siteId => new ChapterGroupSite
{
ChapterId = (uint)siteId,
SiteId = (uint)siteId,
Status = ChapterGroupSiteStatus.Finished,
})
}
})
}
};
SetData(proto);
}
}

View File

@@ -0,0 +1,19 @@
using Azure.Core;
using KianaBH.KcpSharp;
using KianaBH.Proto;
namespace KianaBH.GameServer.Server.Packet.Send.Chapter;
public class PacketChapterKnightRichManGetDataRsp : BasePacket
{
public PacketChapterKnightRichManGetDataRsp(uint RichManId) : base(CmdIds.ChapterKnightRichManGetDataRsp)
{
var proto = new ChapterKnightRichManGetDataRsp
{
RichManId = RichManId,
Retcode = ChapterKnightRichManGetDataRsp.Types.Retcode.NotOpen, // set to NotOpen to prevent null reference error pop up
};
SetData(proto);
}
}

View File

@@ -0,0 +1,25 @@
using KianaBH.KcpSharp;
using KianaBH.Proto;
namespace KianaBH.GameServer.Server.Packet.Send.Chapter;
public class PacketGetEliteChapterCompensationInfoRsp : BasePacket
{
public PacketGetEliteChapterCompensationInfoRsp() : base(CmdIds.GetEliteChapterCompensationInfoRsp)
{
// TODO: Hardcoded
var proto = new GetEliteChapterCompensationInfoRsp
{
ChapterList =
{
Enumerable.Range(1, 35).Select(i => new EliteChapterCompensationInfo
{
ChapterId = (uint)i,
HasTakenCompensation = true
})
}
};
SetData(proto);
}
}

View File

@@ -0,0 +1,17 @@
using KianaBH.KcpSharp;
using KianaBH.Proto;
namespace KianaBH.GameServer.Server.Packet.Send.Chat;
public class PacketChatworldBeastGetActivityRsp : BasePacket
{
public PacketChatworldBeastGetActivityRsp() : base(CmdIds.ChatworldBeastGetActivityRsp)
{
var proto = new ChatworldBeastGetActivityRsp
{
};
SetData(proto);
}
}

View File

@@ -0,0 +1,19 @@
using KianaBH.KcpSharp;
using KianaBH.Proto;
namespace KianaBH.GameServer.Server.Packet.Send.Chat;
public class PacketChatworldGetActivityScheduleRsp : BasePacket
{
public PacketChatworldGetActivityScheduleRsp() : base(CmdIds.ChatworldGetActivityScheduleRsp)
{
// TODO: Hardcoded
var proto = new ChatworldGetActivityScheduleRsp
{
SceneId = 111
};
SetData(proto);
}
}

View File

@@ -0,0 +1,17 @@
using KianaBH.KcpSharp;
using KianaBH.Proto;
namespace KianaBH.GameServer.Server.Packet.Send.Chat;
public class PacketChatworldGetPrayInfoRsp : BasePacket
{
public PacketChatworldGetPrayInfoRsp() : base(CmdIds.ChatworldGetPrayInfoRsp)
{
var proto = new ChatworldGetPrayInfoRsp
{
};
SetData(proto);
}
}

View File

@@ -0,0 +1,19 @@
using KianaBH.KcpSharp;
using KianaBH.Proto;
namespace KianaBH.GameServer.Server.Packet.Send.Chat;
public class PacketEnterWorldChatroomRsp : BasePacket
{
public PacketEnterWorldChatroomRsp() : base(CmdIds.EnterWorldChatroomRsp)
{
// TODO: Hardcoded
var proto = new EnterWorldChatroomRsp
{
ChatroomId = 1,
PlayerNum = 69
};
SetData(proto);
}
}

View File

@@ -0,0 +1,17 @@
using KianaBH.KcpSharp;
using KianaBH.Proto;
namespace KianaBH.GameServer.Server.Packet.Send.Chat;
public class PacketGetChatgroupListRsp : BasePacket
{
public PacketGetChatgroupListRsp() : base(CmdIds.GetChatgroupListRsp)
{
var proto = new GetChatgroupListRsp
{
};
SetData(proto);
}
}

View File

@@ -0,0 +1,17 @@
using KianaBH.KcpSharp;
using KianaBH.Proto;
namespace KianaBH.GameServer.Server.Packet.Send.Client;
public class PacketClientReportRsp : BasePacket
{
public PacketClientReportRsp() : base(CmdIds.ClientReportRsp)
{
var proto = new ClientReportRsp
{
};
SetData(proto);
}
}

View File

@@ -0,0 +1,21 @@
using KianaBH.GameServer.Game.Player;
using KianaBH.KcpSharp;
using KianaBH.Proto;
using static Microsoft.EntityFrameworkCore.DbLoggerCategory.Database;
namespace KianaBH.GameServer.Server.Packet.Send.Client;
public class PacketGetClientDataRsp : BasePacket
{
public PacketGetClientDataRsp(uint id, ClientDataType type, PlayerInstance player) : base(CmdIds.GetClientDataRsp)
{
var proto = new GetClientDataRsp
{
Id = id,
Type = type,
ClientDataList = { player.ClientData!.Clients.Select(x => x.ToProto()) }
};
SetData(proto);
}
}

View File

@@ -0,0 +1,17 @@
using KianaBH.KcpSharp;
using KianaBH.Proto;
namespace KianaBH.GameServer.Server.Packet.Send.Client;
public class PacketGetClientMailDataRsp : BasePacket
{
public PacketGetClientMailDataRsp() : base(CmdIds.GetClientMailDataRsp)
{
var proto = new GetClientMailDataRsp
{
};
SetData(proto);
}
}

View File

@@ -0,0 +1,18 @@
using KianaBH.KcpSharp;
using KianaBH.Proto;
namespace KianaBH.GameServer.Server.Packet.Send.Client;
public class PacketGetClientSettingRsp : BasePacket
{
public PacketGetClientSettingRsp(uint ClientSettingType) : base(CmdIds.GetClientSettingRsp)
{
var proto = new GetClientSettingRsp
{
ClientSettingType = ClientSettingType,
IsWeeklyGuideSwitchOn = true,
};
SetData(proto);
}
}

View File

@@ -0,0 +1,17 @@
using KianaBH.KcpSharp;
using KianaBH.Proto;
namespace KianaBH.GameServer.Server.Packet.Send.Client;
public class PacketReportClientDataVersionRsp : BasePacket
{
public PacketReportClientDataVersionRsp(uint version) : base(CmdIds.ReportClientDataVersionRsp)
{
var proto = new ReportClientDataVersionRsp
{
ServerVersion = version
};
SetData(proto);
}
}

View File

@@ -0,0 +1,18 @@
using KianaBH.KcpSharp;
using KianaBH.Proto;
namespace KianaBH.GameServer.Server.Packet.Send.Client;
public class PacketSetClientDataRsp : BasePacket
{
public PacketSetClientDataRsp(uint Id, ClientDataType Type) : base(CmdIds.SetClientDataRsp)
{
var proto = new SetClientDataRsp
{
Id = Id,
Type = Type
};
SetData(proto);
}
}

View File

@@ -0,0 +1,21 @@
using KianaBH.Data;
using KianaBH.KcpSharp;
using KianaBH.Proto;
namespace KianaBH.GameServer.Server.Packet.Send.Collection;
public class PacketGetCollectionListRsp : BasePacket
{
public PacketGetCollectionListRsp() : base(CmdIds.GetCollectionListRsp)
{
var collections = GameData.CollectionData.Keys.Select(key => (uint)key);
var proto = new GetCollectionListRsp
{
CollectionIdList = { collections },
ActiveCollectionIdList = { collections },
};
SetData(proto);
}
}

View File

@@ -0,0 +1,17 @@
using KianaBH.KcpSharp;
using KianaBH.Proto;
namespace KianaBH.GameServer.Server.Packet.Send.DLC;
public class PacketGetDLCAvatarRsp : BasePacket
{
public PacketGetDLCAvatarRsp() : base(CmdIds.GetDLCAvatarRsp)
{
var proto = new GetDLCAvatarRsp
{
};
SetData(proto);
}
}

View File

@@ -0,0 +1,17 @@
using KianaBH.KcpSharp;
using KianaBH.Proto;
namespace KianaBH.GameServer.Server.Packet.Send.DLC;
public class PacketGetDLCRsp : BasePacket
{
public PacketGetDLCRsp() : base(CmdIds.GetDLCRsp)
{
var proto = new GetDLCRsp
{
};
SetData(proto);
}
}

View File

@@ -0,0 +1,17 @@
using KianaBH.KcpSharp;
using KianaBH.Proto;
namespace KianaBH.GameServer.Server.Packet.Send.DLC;
public class PacketGetDLCTowerRsp : BasePacket
{
public PacketGetDLCTowerRsp() : base(CmdIds.GetDLCTowerRsp)
{
var proto = new GetDLCTowerRsp
{
};
SetData(proto);
}
}

View File

@@ -0,0 +1,218 @@
using KianaBH.KcpSharp;
using KianaBH.Proto;
namespace KianaBH.GameServer.Server.Packet.Send.Dorm;
public class PacketGetDormDataRsp : BasePacket
{
public PacketGetDormDataRsp() : base(CmdIds.GetDormDataRsp)
{
// TODO: Hardcoded
var proto = new GetDormDataRsp
{
DepotFurnitureList =
{
new DepotFurniture { Id = 140001, Num = 1 },
new DepotFurniture { Id = 140002, Num = 1 },
new DepotFurniture { Id = 140003, Num = 1 },
new DepotFurniture { Id = 140010, Num = 1 },
new DepotFurniture { Id = 140012, Num = 1 },
new DepotFurniture { Id = 140013, Num = 1 },
new DepotFurniture { Id = 140015, Num = 1 },
new DepotFurniture { Id = 140016, Num = 1 },
new DepotFurniture { Id = 140201, Num = 1 },
new DepotFurniture { Id = 140202, Num = 1 },
new DepotFurniture { Id = 140213, Num = 1 },
new DepotFurniture { Id = 140215, Num = 1 },
new DepotFurniture { Id = 140216, Num = 1 },
new DepotFurniture { Id = 140601, Num = 1 },
new DepotFurniture { Id = 140603, Num = 1 },
new DepotFurniture { Id = 140801, Num = 1 },
new DepotFurniture { Id = 140802, Num = 1 },
new DepotFurniture { Id = 140806, Num = 1 },
new DepotFurniture { Id = 140810, Num = 1 },
new DepotFurniture { Id = 140812, Num = 1 },
new DepotFurniture { Id = 140813, Num = 1 },
new DepotFurniture { Id = 140814, Num = 1 },
new DepotFurniture { Id = 140815, Num = 1 },
new DepotFurniture { Id = 140816, Num = 1 },
new DepotFurniture { Id = 140817, Num = 1 },
new DepotFurniture { Id = 140818, Num = 1 },
new DepotFurniture { Id = 140819, Num = 1 },
new DepotFurniture { Id = 140820, Num = 1 },
new DepotFurniture { Id = 140822, Num = 1 },
new DepotFurniture { Id = 141501, Num = 1 },
new DepotFurniture { Id = 141601, Num = 1 },
new DepotFurniture { Id = 141606, Num = 1 },
new DepotFurniture { Id = 141615, Num = 1 },
new DepotFurniture { Id = 141619, Num = 1 },
new DepotFurniture { Id = 141620, Num = 1 },
new DepotFurniture { Id = 141621, Num = 1 },
new DepotFurniture { Id = 141622, Num = 1 },
new DepotFurniture { Id = 141701, Num = 1 },
new DepotFurniture { Id = 141702, Num = 1 },
new DepotFurniture { Id = 141703, Num = 1 },
new DepotFurniture { Id = 141704, Num = 1 },
new DepotFurniture { Id = 141709, Num = 1 },
new DepotFurniture { Id = 141713, Num = 1 },
new DepotFurniture { Id = 141801, Num = 1 },
new DepotFurniture { Id = 141802, Num = 1 },
new DepotFurniture { Id = 141804, Num = 1 },
new DepotFurniture { Id = 141805, Num = 1 },
new DepotFurniture { Id = 141807, Num = 1 },
new DepotFurniture { Id = 141808, Num = 1 },
new DepotFurniture { Id = 141809, Num = 1 },
new DepotFurniture { Id = 141810, Num = 1 },
new DepotFurniture { Id = 141811, Num = 1 },
new DepotFurniture { Id = 141812, Num = 1 },
new DepotFurniture { Id = 141814, Num = 1 },
new DepotFurniture { Id = 141815, Num = 1 },
new DepotFurniture { Id = 146120, Num = 1 },
new DepotFurniture { Id = 146620, Num = 1 }
},
EventList =
{
new DormEvent { AvatarId = 101, EventIdList = { 10007, 10011 } },
new DormEvent { AvatarId = 102, EventIdList = { 10007, 10011 } },
new DormEvent { AvatarId = 103, EventIdList = { 10007, 10011 } },
new DormEvent { AvatarId = 104, EventIdList = { 10007, 10011 } },
new DormEvent { AvatarId = 105, EventIdList = { 10007, 10011 } },
new DormEvent { AvatarId = 106, EventIdList = { 10007, 10011 } },
new DormEvent { AvatarId = 111, EventIdList = { 10007, 10011 } },
new DormEvent { AvatarId = 112, EventIdList = { 10007, 10011 } },
new DormEvent { AvatarId = 113, EventIdList = { 10007, 10011 } },
new DormEvent { AvatarId = 114, EventIdList = { 10007, 10011 } },
new DormEvent { AvatarId = 201, EventIdList = { 10007, 10011 } },
new DormEvent { AvatarId = 202, EventIdList = { 10007, 10011 } },
new DormEvent { AvatarId = 203, EventIdList = { 10007, 10011 } },
new DormEvent { AvatarId = 204, EventIdList = { 10007, 10011 } },
new DormEvent { AvatarId = 205, EventIdList = { 10007, 10011 } },
new DormEvent { AvatarId = 206, EventIdList = { 10007, 10011 } },
new DormEvent { AvatarId = 211, EventIdList = { 10007, 10011 } },
new DormEvent { AvatarId = 212, EventIdList = { 10007, 10011 } },
new DormEvent { AvatarId = 213, EventIdList = { 10007, 10011 } },
new DormEvent { AvatarId = 214, EventIdList = { 10007, 10011 } },
new DormEvent { AvatarId = 301, EventIdList = { 10007, 10011 } },
new DormEvent { AvatarId = 302, EventIdList = { 10007, 10011 } },
new DormEvent { AvatarId = 303, EventIdList = { 10007, 10011 } },
new DormEvent { AvatarId = 311, EventIdList = { 10007, 10011 } },
new DormEvent { AvatarId = 312, EventIdList = { 10007, 10011 } },
new DormEvent { AvatarId = 313, EventIdList = { 10007, 10011 } },
new DormEvent { AvatarId = 314, EventIdList = { 10007, 10011 } },
new DormEvent { AvatarId = 317, EventIdList = { 10007, 10011 } },
new DormEvent { AvatarId = 401, EventIdList = { 10007, 10011 } },
new DormEvent { AvatarId = 402, EventIdList = { 10007, 10011 } },
new DormEvent { AvatarId = 403, EventIdList = { 10007, 10011 } },
new DormEvent { AvatarId = 404, EventIdList = { 10007, 10011 } },
new DormEvent { AvatarId = 411, EventIdList = { 10007, 10011 } },
new DormEvent { AvatarId = 412, EventIdList = { 10007, 10011 } },
new DormEvent { AvatarId = 421, EventIdList = { 10007, 10011 } },
new DormEvent { AvatarId = 422, EventIdList = { 10007, 10011 } },
new DormEvent { AvatarId = 501, EventIdList = { 10007, 10011 } },
new DormEvent { AvatarId = 502, EventIdList = { 10007, 10011 } },
new DormEvent { AvatarId = 503, EventIdList = { 10007, 10011 } },
new DormEvent { AvatarId = 504, EventIdList = { 10007, 10011 } },
new DormEvent { AvatarId = 506, EventIdList = { 10007, 10011 } },
new DormEvent { AvatarId = 507, EventIdList = { 10007, 10011 } },
new DormEvent { AvatarId = 511, EventIdList = { 10007, 10011 } },
new DormEvent { AvatarId = 601, EventIdList = { 10007, 10011 } },
new DormEvent { AvatarId = 602, EventIdList = { 10007, 10011 } },
new DormEvent { AvatarId = 603, EventIdList = { 10007, 10011 } },
new DormEvent { AvatarId = 604, EventIdList = { 10007, 10011 } },
new DormEvent { AvatarId = 611, EventIdList = { 10007, 10011 } },
new DormEvent { AvatarId = 612, EventIdList = { 10007, 10011 } },
new DormEvent { AvatarId = 702, EventIdList = { 10007, 10011 } },
new DormEvent { AvatarId = 703, EventIdList = { 10007, 10011 } },
new DormEvent { AvatarId = 705, EventIdList = { 10007, 10011 } },
new DormEvent { AvatarId = 706, EventIdList = { 10007, 10011 } },
new DormEvent { AvatarId = 711, EventIdList = { 10007, 10011 } },
new DormEvent { AvatarId = 712, EventIdList = { 10007, 10011 } },
new DormEvent { AvatarId = 713, EventIdList = { 10007, 10011 } },
new DormEvent { AvatarId = 714, EventIdList = { 10007, 10011 } },
new DormEvent { AvatarId = 801, EventIdList = { 10007, 10011 } },
new DormEvent { AvatarId = 802, EventIdList = { 10007, 10011 } },
new DormEvent { AvatarId = 803, EventIdList = { 10007, 10011 } },
new DormEvent { AvatarId = 2201, EventIdList = { 10007, 10011 } },
new DormEvent { AvatarId = 2202, EventIdList = { 10007, 10011 } },
new DormEvent { AvatarId = 2401, EventIdList = { 10007, 10011 } },
new DormEvent { AvatarId = 2501, EventIdList = { 10007, 10011 } },
new DormEvent { AvatarId = 2601, EventIdList = { 10007, 10011 } },
new DormEvent { AvatarId = 2801, EventIdList = { 10007, 10011 } },
new DormEvent { AvatarId = 2901, EventIdList = { 10007, 10011 } },
new DormEvent { AvatarId = 2902, EventIdList = { 10007, 10011 } },
new DormEvent { AvatarId = 3101, EventIdList = { 10007, 10011 } },
new DormEvent { AvatarId = 3201, EventIdList = { 10007, 10011 } },
new DormEvent { AvatarId = 3301, EventIdList = { 10007, 10011 } },
new DormEvent { AvatarId = 3501, EventIdList = { 10007, 10011 } },
new DormEvent { AvatarId = 3601, EventIdList = { 10007, 10011 } },
new DormEvent { AvatarId = 3701, EventIdList = { 10007, 10011 } },
new DormEvent { AvatarId = 20201, EventIdList = { 10007, 10011 } },
new DormEvent { AvatarId = 20301, EventIdList = { 10007, 10011 } },
new DormEvent { AvatarId = 20401, EventIdList = { 10007, 10011 } }
},
HouseList =
{
new DormHouse
{
Id = 101,
Level = 39,
Name = "HitLey",
RoomList =
{
new DormRoom
{
AvatarList = { 412, 705, 802, 2201, 2401 },
FurnitureList =
{
new Furniture { Id = 140015 },
new Furniture { Id = 140013 },
new Furniture { Id = 140016 }
},
Id = 1011
},
new DormRoom
{
AvatarList = { 105, 113, 205, 313, 612 },
FurnitureList =
{
new Furniture { Id = 140808, PosX = 1, PosY = 22 },
new Furniture { Id = 140809, Location = 3, PosX = 7, PosY = 5 },
new Furniture { Direction = 3, Id = 140803, PosX = 1, PosY = 15 },
new Furniture { Direction = 1, Id = 140811, PosX = 5, PosY = 14 },
new Furniture { Id = 141610, PosX = 2, PosY = 8 },
new Furniture { Id = 140812, PosX = 4, PosY = 4 },
new Furniture { Id = 141806, PosX = 9, PosY = 7 },
new Furniture { Id = 141803, PosX = 11, PosY = 12 },
new Furniture { Id = 140821, Location = 2, PosX = 7, PosY = 3 },
new Furniture { Id = 140002, PosX = 26, PosY = 2 },
new Furniture { Id = 140804, PosX = 24, PosY = 17 },
new Furniture { Id = 140805, PosX = 25, PosY = 15 },
new Furniture { Id = 140807, PosX = 23, PosY = 5 },
new Furniture { Id = 140825 },
new Furniture { Id = 140824 },
new Furniture { Id = 140823 }
},
Id = 1012
},
new DormRoom
{
FurnitureList =
{
new Furniture { Id = 140015 },
new Furniture { Id = 140013 },
new Furniture { Id = 140016 }
},
Id = 1013
}
}
}
},
IsAllowVisit = true,
ShowHouse = 101,
ShowRoom = 1012,
VisitAvatar = 101
};
SetData(proto);
}
}

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,97 @@
using KianaBH.KcpSharp;
using KianaBH.Proto;
namespace KianaBH.GameServer.Server.Packet.Send.Dummy;
public class PacketGetPrivilegeInfoRsp : BasePacket
{
public PacketGetPrivilegeInfoRsp() : base(CmdIds.GetPrivilegeInfoRsp)
{
var proto = new GetPrivilegeInfoRsp
{
PrivilegeList =
{
new PrivilegeInfo
{
ExpireTime = 1734001367,
PrivilegeId = 6,
RightInfoList =
{
new PrivilegeRightInfo
{
MaxUseTimes = 10,
NextAutoRefreshTime = 1730145600,
RightId = 4,
Type = 1
}
}
},
new PrivilegeInfo
{
ExpireTime = 1668139199,
PrivilegeId = 19,
RightInfoList =
{
new PrivilegeRightInfo
{
MaxUseTimes = 10,
NextAutoRefreshTime = 1730145600,
RightId = 17,
TotalUsedTimes = 10,
Type = 4
}
}
},
new PrivilegeInfo
{
ExpireTime = 1685678400,
PrivilegeId = 23,
RightInfoList =
{
new PrivilegeRightInfo
{
MaxUseTimes = 10,
NextAutoRefreshTime = 1730145600,
RightId = 21,
TotalUsedTimes = 10,
Type = 4
}
}
},
new PrivilegeInfo
{
ExpireTime = 1700798399,
PrivilegeId = 25,
RightInfoList =
{
new PrivilegeRightInfo
{
MaxUseTimes = 10,
NextAutoRefreshTime = 1730145600,
RightId = 23,
TotalUsedTimes = 10,
Type = 4
}
}
},
new PrivilegeInfo
{
ExpireTime = 1731643200,
PrivilegeId = 34,
RightInfoList =
{
new PrivilegeRightInfo
{
MaxUseTimes = 10,
NextAutoRefreshTime = 1730145600,
RightId = 32,
Type = 4
}
}
}
}
};
SetData(proto);
}
}

View File

@@ -0,0 +1,21 @@
using KianaBH.KcpSharp;
using KianaBH.Proto;
using KianaBH.Util.Extensions;
namespace KianaBH.GameServer.Server.Packet.Send.Dummy;
public class PacketGetProductListRsp : BasePacket
{
public PacketGetProductListRsp() : base(CmdIds.GetProductListRsp)
{
var time = (uint)Extensions.GetUnixSec();
var proto = new GetProductListRsp
{
NextRandomBoxProductRefreshTime = time + 3600 * 24,
NextLimitProductRefreshTime = time + 3600 * 24
};
SetData(proto);
}
}

View File

@@ -0,0 +1,20 @@
using KianaBH.KcpSharp;
using KianaBH.Proto;
namespace KianaBH.GameServer.Server.Packet.Send.Dummy;
public class PacketGetProductRecommendListRsp : BasePacket
{
public PacketGetProductRecommendListRsp() : base(CmdIds.GetProductRecommendListRsp)
{
var proto = new GetProductRecommendListRsp
{
RecommendList =
{
16301720
}
};
SetData(proto);
}
}

View File

@@ -0,0 +1,17 @@
using KianaBH.KcpSharp;
using KianaBH.Proto;
namespace KianaBH.GameServer.Server.Packet.Send.Dummy;
public class PacketGetRaffleActivityRsp : BasePacket
{
public PacketGetRaffleActivityRsp() : base(CmdIds.GetRaffleActivityRsp)
{
var proto = new GetRaffleActivityRsp
{
};
SetData(proto);
}
}

View File

@@ -0,0 +1,17 @@
using KianaBH.KcpSharp;
using KianaBH.Proto;
namespace KianaBH.GameServer.Server.Packet.Send.Dummy;
public class PacketGetRankScheduleDataRsp : BasePacket
{
public PacketGetRankScheduleDataRsp() : base(CmdIds.GetRankScheduleDataRsp)
{
var proto = new GetRankScheduleDataRsp
{
};
SetData(proto);
}
}

View File

@@ -0,0 +1,17 @@
using KianaBH.KcpSharp;
using KianaBH.Proto;
namespace KianaBH.GameServer.Server.Packet.Send.Dummy;
public class PacketGetRecommendFriendListRsp : BasePacket
{
public PacketGetRecommendFriendListRsp() : base(CmdIds.GetRecommendFriendListRsp)
{
var proto = new GetRecommendFriendListRsp
{
};
SetData(proto);
}
}

View File

@@ -0,0 +1,17 @@
using KianaBH.KcpSharp;
using KianaBH.Proto;
namespace KianaBH.GameServer.Server.Packet.Send.Dummy;
public class PacketGetRecommendGoodsRsp : BasePacket
{
public PacketGetRecommendGoodsRsp() : base(CmdIds.GetRecommendGoodsRsp)
{
var proto = new GetRecommendGoodsRsp
{
};
SetData(proto);
}
}

View File

@@ -0,0 +1,27 @@
using KianaBH.KcpSharp;
using KianaBH.Proto;
namespace KianaBH.GameServer.Server.Packet.Send.Dummy;
public class PacketGetRewardLineActivityRsp : BasePacket
{
public PacketGetRewardLineActivityRsp() : base(CmdIds.GetRewardLineActivityRsp)
{
// TODO: Hardcoded
var proto = new GetRewardLineActivityRsp
{
RewardLineActivityList =
{
Enumerable.Range(10, 4) // 10<31>13
.Concat([14, 15, 16, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39])
.Concat(Enumerable.Range(45, 18)) // 45<34>62
.Concat([64, 65, 66, 67, 68, 69, 70, 71, 72])
.Select(id => new RewardLineActivity { Id = (uint)id })
.ToList()
}
};
SetData(proto);
}
}

View File

@@ -0,0 +1,17 @@
using KianaBH.KcpSharp;
using KianaBH.Proto;
namespace KianaBH.GameServer.Server.Packet.Send.Dummy;
public class PacketGetRoomDataRsp : BasePacket
{
public PacketGetRoomDataRsp() : base(CmdIds.GetRoomDataRsp)
{
var proto = new GetRoomDataRsp
{
};
SetData(proto);
}
}

View File

@@ -0,0 +1,17 @@
using KianaBH.KcpSharp;
using KianaBH.Proto;
namespace KianaBH.GameServer.Server.Packet.Send.Dummy;
public class PacketGetRpgTaleRsp : BasePacket
{
public PacketGetRpgTaleRsp() : base(CmdIds.GetRpgTaleRsp)
{
var proto = new GetRpgTaleRsp
{
};
SetData(proto);
}
}

View File

@@ -0,0 +1,17 @@
using KianaBH.KcpSharp;
using KianaBH.Proto;
namespace KianaBH.GameServer.Server.Packet.Send.Dummy;
public class PacketGetScratchTicketRsp : BasePacket
{
public PacketGetScratchTicketRsp() : base(CmdIds.GetScratchTicketRsp)
{
var proto = new GetScratchTicketRsp
{
Retcode = GetScratchTicketRsp.Types.Retcode.ActivityNotOpen,
};
SetData(proto);
}
}

View File

@@ -0,0 +1,17 @@
using KianaBH.KcpSharp;
using KianaBH.Proto;
namespace KianaBH.GameServer.Server.Packet.Send.Dummy;
public class PacketGetSecurityPasswordRsp : BasePacket
{
public PacketGetSecurityPasswordRsp() : base(CmdIds.GetSecurityPasswordRsp)
{
var proto = new GetSecurityPasswordRsp
{
};
SetData(proto);
}
}

View File

@@ -0,0 +1,17 @@
using KianaBH.KcpSharp;
using KianaBH.Proto;
namespace KianaBH.GameServer.Server.Packet.Send.Dummy;
public class PacketGetShopListRsp : BasePacket
{
public PacketGetShopListRsp() : base(CmdIds.GetShopListRsp)
{
var proto = new GetShopListRsp
{
IsAll = true,
};
SetData(proto);
}
}

View File

@@ -0,0 +1,17 @@
using KianaBH.KcpSharp;
using KianaBH.Proto;
namespace KianaBH.GameServer.Server.Packet.Send.Dummy;
public class PacketGetShoppingMallListRsp : BasePacket
{
public PacketGetShoppingMallListRsp() : base(CmdIds.GetShoppingMallListRsp)
{
var proto = new GetShoppingMallListRsp
{
};
SetData(proto);
}
}

View File

@@ -0,0 +1,17 @@
using KianaBH.KcpSharp;
using KianaBH.Proto;
namespace KianaBH.GameServer.Server.Packet.Send.Dummy;
public class PacketGetSupportActivityRsp : BasePacket
{
public PacketGetSupportActivityRsp() : base(CmdIds.GetSupportActivityRsp)
{
var proto = new GetSupportActivityRsp
{
};
SetData(proto);
}
}

View File

@@ -0,0 +1,17 @@
using KianaBH.KcpSharp;
using KianaBH.Proto;
namespace KianaBH.GameServer.Server.Packet.Send.Dummy;
public class PacketGetSurveyDataRsp : BasePacket
{
public PacketGetSurveyDataRsp() : base(CmdIds.GetSurveyDataRsp)
{
var proto = new GetSurveyDataRsp
{
};
SetData(proto);
}
}

View File

@@ -0,0 +1,17 @@
using KianaBH.KcpSharp;
using KianaBH.Proto;
namespace KianaBH.GameServer.Server.Packet.Send.Dummy;
public class PacketGetTowerRaidActivityRsp : BasePacket
{
public PacketGetTowerRaidActivityRsp() : base(CmdIds.GetTowerRaidActivityRsp)
{
var proto = new GetTowerRaidActivityRsp
{
Retcode = GetTowerRaidActivityRsp.Types.Retcode.NotOpen, // set to NotOpen to prevent null reference error pop up
};
SetData(proto);
}
}

View File

@@ -0,0 +1,17 @@
using KianaBH.KcpSharp;
using KianaBH.Proto;
namespace KianaBH.GameServer.Server.Packet.Send.Dummy;
public class PacketGetTradingCardActivityRsp : BasePacket
{
public PacketGetTradingCardActivityRsp() : base(CmdIds.GetTradingCardActivityRsp)
{
var proto = new GetTradingCardActivityRsp
{
};
SetData(proto);
}
}

View File

@@ -0,0 +1,17 @@
using KianaBH.KcpSharp;
using KianaBH.Proto;
namespace KianaBH.GameServer.Server.Packet.Send.Dummy;
public class PacketGetTrialAvatarRsp : BasePacket
{
public PacketGetTrialAvatarRsp() : base(CmdIds.GetTrialAvatarRsp)
{
var proto = new GetTrialAvatarRsp
{
IsAllUpdate = true,
};
SetData(proto);
}
}

View File

@@ -0,0 +1,145 @@
using KianaBH.KcpSharp;
using KianaBH.Proto;
namespace KianaBH.GameServer.Server.Packet.Send.Dummy;
public class PacketGetVipRewardDataRsp : BasePacket
{
public PacketGetVipRewardDataRsp() : base(CmdIds.GetVipRewardDataRsp)
{
// TODO: Hardcoded
var proto = new GetVipRewardDataRsp
{
TotalPayHcoin = 17185,
VipRewardList =
{
new VipReward
{
IsSpecialShineList = { 1 },
PayHcoin = 10,
RewardBatch = 1,
RewardIdList = { 2101, 2201 },
SpecialRewardIdList = { 2101 },
TakenRewardIdList = { 2101, 2201, 2251 },
VipLevel = 1
},
new VipReward
{
IsSpecialShineList = { 1, 1 },
PayHcoin = 300,
RewardBatch = 1,
RewardIdList = { 2002, 2102, 2302 },
SpecialRewardIdList = { 2102, 2302 },
TakenRewardIdList = { 2002, 2102, 2252, 2302 },
VipLevel = 2
},
new VipReward
{
IsSpecialShineList = { 1, 1 },
PayHcoin = 500,
RewardBatch = 1,
RewardIdList = { 2103, 2203, 2303 },
SpecialRewardIdList = { 2103, 2303 },
TakenRewardIdList = { 2103, 2203, 2253, 2303 },
VipLevel = 3
},
new VipReward
{
IsSpecialShineList = { 1, 1 },
PayHcoin = 1000,
RewardBatch = 1,
RewardIdList = { 2004, 2104, 2304 },
SpecialRewardIdList = { 2104, 2304 },
TakenRewardIdList = { 2004, 2104, 2254, 2304 },
VipLevel = 4
},
new VipReward
{
IsSpecialShineList = { 1, 1 },
PayHcoin = 2000,
RewardBatch = 1,
RewardIdList = { 2105, 2205, 2305 },
SpecialRewardIdList = { 2105, 2305 },
TakenRewardIdList = { 2105, 2205, 2255, 2305 },
VipLevel = 5
},
new VipReward
{
IsSpecialShineList = { 1, 1 },
PayHcoin = 5000,
RewardBatch = 1,
RewardIdList = { 2006, 2106, 2306 },
SpecialRewardIdList = { 2106, 2306 },
TakenRewardIdList = { 2006, 2106, 2256, 2306 },
VipLevel = 6
},
new VipReward
{
IsSpecialShineList = { 1, 1 },
PayHcoin = 10000,
RewardBatch = 1,
RewardIdList = { 2107, 2207, 2257, 2307 },
SpecialRewardIdList = { 2107, 2307 },
TakenRewardIdList = { 2107, 2207, 2257, 2307 },
VipLevel = 7
},
new VipReward
{
IsSpecialShineList = { 1, 1 },
PayHcoin = 20000,
RewardBatch = 1,
RewardIdList = { 2108, 2208, 2258, 2308 },
SpecialRewardIdList = { 2108, 2308 },
VipLevel = 8
},
new VipReward
{
IsSpecialShineList = { 1, 1 },
PayHcoin = 50000,
RewardBatch = 1,
RewardIdList = { 2109, 2209, 2309 },
SpecialRewardIdList = { 2109, 2309 },
VipLevel = 9
},
new VipReward
{
IsSpecialShineList = { 1, 1, 1 },
PayHcoin = 100000,
RewardBatch = 1,
RewardIdList = { 2110, 2210, 2310 },
SpecialRewardIdList = { 2110, 2310 },
VipLevel = 10
},
new VipReward
{
IsSpecialShineList = { 1, 1, 1 },
PayHcoin = 150000,
RewardBatch = 1,
RewardIdList = { 2261, 2311 },
SpecialRewardIdList = { 2311 },
VipLevel = 11
},
new VipReward
{
IsSpecialShineList = { 1, 1, 1 },
PayHcoin = 200000,
RewardBatch = 1,
RewardIdList = { 2262, 2312 },
SpecialRewardIdList = { 2312 },
VipLevel = 12
},
new VipReward
{
IsSpecialShineList = { 1 },
PayHcoin = 250000,
RewardBatch = 1,
RewardIdList = { 2263, 2313 },
SpecialRewardIdList = { 2313 },
VipLevel = 13
}
}
};
SetData(proto);
}
}

View File

@@ -0,0 +1,41 @@
using System.Security.Cryptography;
using KianaBH.KcpSharp;
using KianaBH.Proto;
namespace KianaBH.GameServer.Server.Packet.Send.Dummy;
public class PacketGetVirtualAvatarGroupDetailRsp : BasePacket
{
public PacketGetVirtualAvatarGroupDetailRsp(uint GroupId) : base(CmdIds.GetVirtualAvatarGroupDetailRsp)
{
var proto = new GetVirtualAvatarGroupDetailRsp();
if (GroupId == 114)
{
proto.VirtualAvatarGroup = new VirtualAvatarGroup
{
GroupId = 114,
VirtualAvatarList =
{
new VirtualAvatar { VirtualAvatarId = 300001 },
new VirtualAvatar { VirtualAvatarId = 300003 }
},
VirtualAvatarTeamList = { 300001, 300003 }
};
}
else if (GroupId == 111)
{
proto.VirtualAvatarGroup = new VirtualAvatarGroup
{
GroupId = 111,
VirtualAvatarList =
{
new VirtualAvatar { VirtualAvatarId = 300001 }
},
VirtualAvatarTeamList = { 300001 }
};
}
SetData(proto);
}
}

View File

@@ -0,0 +1,719 @@
using KianaBH.KcpSharp;
using KianaBH.Proto;
namespace KianaBH.GameServer.Server.Packet.Send.Elf;
public class PacketGetElfDataRsp : BasePacket
{
public PacketGetElfDataRsp() : base(CmdIds.GetElfDataRsp)
{
var proto = new GetElfDataRsp // TODO: GET FROM DB
{
ElfList =
{
new Proto.Elf
{
ElfId = 101,
Exp = 1,
Level = 80,
SkillList =
{
new ElfSkill
{
SkillId = 10101,
SkillLevel = 1
},
new ElfSkill
{
SkillId = 10102,
SkillLevel = 1
},
new ElfSkill
{
SkillId = 10103,
SkillLevel = 1
},
new ElfSkill
{
SkillId = 10105,
SkillLevel = 1
},
new ElfSkill
{
SkillId = 10106,
SkillLevel = 1
},
new ElfSkill
{
SkillId = 10107,
SkillLevel = 1
},
new ElfSkill
{
SkillId = 101011,
SkillLevel = 6
},
new ElfSkill
{
SkillId = 101021,
SkillLevel = 3
},
new ElfSkill
{
SkillId = 101032,
SkillLevel = 4
},
new ElfSkill
{
SkillId = 101033,
SkillLevel = 4
},
new ElfSkill
{
SkillId = 101034,
SkillLevel = 4
},
new ElfSkill
{
SkillId = 101035,
SkillLevel = 4
}
},
Star = 7
},
new Proto.Elf
{
ElfId = 102,
Exp = 1,
Level = 80,
SkillList =
{
new ElfSkill
{
SkillId = 10201,
SkillLevel = 1
},
new ElfSkill
{
SkillId = 10202,
SkillLevel = 1
},
new ElfSkill
{
SkillId = 10203,
SkillLevel = 4
},
new ElfSkill
{
SkillId = 10205,
SkillLevel = 1
},
new ElfSkill
{
SkillId = 10206,
SkillLevel = 1
},
new ElfSkill
{
SkillId = 10207,
SkillLevel = 1
},
new ElfSkill
{
SkillId = 102011,
SkillLevel = 5
},
new ElfSkill
{
SkillId = 102031,
SkillLevel = 6
},
new ElfSkill
{
SkillId = 102032,
SkillLevel = 6
},
new ElfSkill
{
SkillId = 102033,
SkillLevel = 6
},
new ElfSkill
{
SkillId = 102034,
SkillLevel = 6
}
},
Star = 7
},
new Proto.Elf
{
ElfId = 106,
Exp = 1,
Level = 80,
SkillList =
{
new ElfSkill
{
SkillId = 10601,
SkillLevel = 1
},
new ElfSkill
{
SkillId = 10602,
SkillLevel = 1
},
new ElfSkill
{
SkillId = 10603,
SkillLevel = 1
},
new ElfSkill
{
SkillId = 10604,
SkillLevel = 4
},
new ElfSkill
{
SkillId = 10605,
SkillLevel = 1
},
new ElfSkill
{
SkillId = 10606,
SkillLevel = 1
},
new ElfSkill
{
SkillId = 10607,
SkillLevel = 1
},
new ElfSkill
{
SkillId = 106011,
SkillLevel = 5
},
new ElfSkill
{
SkillId = 106012,
SkillLevel = 3
},
new ElfSkill
{
SkillId = 106013,
SkillLevel = 5
},
new ElfSkill
{
SkillId = 106021,
SkillLevel = 3
},
new ElfSkill
{
SkillId = 106022,
SkillLevel = 5
},
new ElfSkill
{
SkillId = 106031,
SkillLevel = 5
},
new ElfSkill
{
SkillId = 106032,
SkillLevel = 5
},
new ElfSkill
{
SkillId = 106041,
SkillLevel = 3
},
new ElfSkill
{
SkillId = 106042,
SkillLevel = 4
}
},
Star = 4
},
new Proto.Elf
{
ElfId = 108,
Exp = 1,
Level = 80,
SkillList = {
new ElfSkill
{
SkillId = 10801,
SkillLevel = 1
},
new ElfSkill
{
SkillId = 10802,
SkillLevel = 1
},
new ElfSkill
{
SkillId = 10803,
SkillLevel = 1
},
new ElfSkill
{
SkillId = 10804,
SkillLevel = 1
},
new ElfSkill
{
SkillId = 10805,
SkillLevel = 1
},
new ElfSkill
{
SkillId = 10806,
SkillLevel = 1
},
new ElfSkill
{
SkillId = 10807,
SkillLevel = 1
},
new ElfSkill
{
SkillId = 108011,
SkillLevel = 5
},
new ElfSkill
{
SkillId = 108012,
SkillLevel = 3
},
new ElfSkill
{
SkillId = 108013,
SkillLevel = 5
},
new ElfSkill
{
SkillId = 108021,
SkillLevel = 3
},
new ElfSkill
{
SkillId = 108022,
SkillLevel = 5
},
new ElfSkill
{
SkillId = 108023,
SkillLevel = 3
},
new ElfSkill
{
SkillId = 108031,
SkillLevel = 5
},
new ElfSkill
{
SkillId = 108032,
SkillLevel = 5
},
new ElfSkill
{
SkillId = 108041,
SkillLevel = 3
},
new ElfSkill
{
SkillId = 108042,
SkillLevel = 5
}
},
Star = 7
},
new Proto.Elf
{
ElfId = 110,
Exp = 1,
Level = 80,
SkillList =
{
new ElfSkill
{
SkillId = 11001,
SkillLevel = 1
},
new ElfSkill
{
SkillId = 11002,
SkillLevel = 1
},
new ElfSkill
{
SkillId = 11003,
SkillLevel = 1
},
new ElfSkill
{
SkillId = 11004,
SkillLevel = 1
},
new ElfSkill
{
SkillId = 11005,
SkillLevel = 1
},
new ElfSkill
{
SkillId = 11006,
SkillLevel = 1
},
new ElfSkill
{
SkillId = 11007,
SkillLevel = 1
},
new ElfSkill
{
SkillId = 110011,
SkillLevel = 5
},
new ElfSkill
{
SkillId = 110021,
SkillLevel = 3
},
new ElfSkill
{
SkillId = 110031,
SkillLevel = 3
},
new ElfSkill
{
SkillId = 110041,
SkillLevel = 4
},
new ElfSkill
{
SkillId = 110051,
SkillLevel = 3
},
new ElfSkill
{
SkillId = 110071,
SkillLevel = 5
}
},
Star = 2
},
new Proto.Elf
{
ElfId = 111,
Exp = 1,
Level = 80,
SkillList =
{
new ElfSkill
{
SkillId = 12001,
SkillLevel = 1
},
new ElfSkill
{
SkillId = 12002,
SkillLevel = 1
},
new ElfSkill
{
SkillId = 12003,
SkillLevel = 1
},
new ElfSkill
{
SkillId = 12004,
SkillLevel = 1
},
new ElfSkill
{
SkillId = 12005,
SkillLevel = 1
},
new ElfSkill
{
SkillId = 12006,
SkillLevel = 1
},
new ElfSkill
{
SkillId = 12007,
SkillLevel = 1
},
new ElfSkill
{
SkillId = 120011,
SkillLevel = 5
},
new ElfSkill
{
SkillId = 120021,
SkillLevel = 5
},
new ElfSkill
{
SkillId = 120031,
SkillLevel = 6
},
new ElfSkill
{
SkillId = 120041,
SkillLevel = 5
},
new ElfSkill
{
SkillId = 120042,
SkillLevel = 4
}
},
Star = 2
},
new Proto.Elf
{
ElfId = 112,
Exp = 1,
Level = 80,
SkillList =
{
new ElfSkill
{
SkillId = 13001,
SkillLevel = 1
},
new ElfSkill
{
SkillId = 13002,
SkillLevel = 1
},
new ElfSkill
{
SkillId = 13003,
SkillLevel = 1
},
new ElfSkill
{
SkillId = 13004,
SkillLevel = 1
},
new ElfSkill
{
SkillId = 13005,
SkillLevel = 1
},
new ElfSkill
{
SkillId = 13006,
SkillLevel = 1
},
new ElfSkill
{
SkillId = 13007,
SkillLevel = 1
},
new ElfSkill
{
SkillId = 130011,
SkillLevel = 4
},
new ElfSkill
{
SkillId = 130012,
SkillLevel = 5
},
new ElfSkill
{
SkillId = 130013,
SkillLevel = 3
},
new ElfSkill
{
SkillId = 130021,
SkillLevel = 3
},
new ElfSkill
{
SkillId = 130022,
SkillLevel = 5
},
new ElfSkill
{
SkillId = 130023,
SkillLevel = 4
},
new ElfSkill
{
SkillId = 130031,
SkillLevel = 5
},
new ElfSkill
{
SkillId = 130032,
SkillLevel = 4
},
new ElfSkill
{
SkillId = 130033,
SkillLevel = 4
},
new ElfSkill
{
SkillId = 130041,
SkillLevel = 1
},
new ElfSkill
{
SkillId = 130042,
SkillLevel = 3
},
new ElfSkill
{
SkillId = 130043,
SkillLevel = 3
}
},
Star = 7
},
new Proto.Elf
{
ElfId = 113,
Exp = 1,
Level = 80,
SkillList =
{
new ElfSkill
{
SkillId = 14001,
SkillLevel = 1
},
new ElfSkill
{
SkillId = 14002,
SkillLevel = 1
},
new ElfSkill
{
SkillId = 14003,
SkillLevel = 1
},
new ElfSkill
{
SkillId = 14004,
SkillLevel = 1
},
new ElfSkill
{
SkillId = 14005,
SkillLevel = 1
},
new ElfSkill
{
SkillId = 14006,
SkillLevel = 1
},
new ElfSkill
{
SkillId = 14007,
SkillLevel = 1
},
new ElfSkill
{
SkillId = 140011,
SkillLevel = 5
},
new ElfSkill
{
SkillId = 140021,
SkillLevel = 5
},
new ElfSkill
{
SkillId = 140031,
SkillLevel = 5
}
},
Star = 2
},
new Proto.Elf
{
ElfId = 120,
Exp = 1,
Level = 80,
SkillList =
{
new ElfSkill
{
SkillId = 20005,
SkillLevel = 1
},
new ElfSkill
{
SkillId = 20006,
SkillLevel = 1
},
new ElfSkill
{
SkillId = 20007,
SkillLevel = 1
},
new ElfSkill
{
SkillId = 200051,
SkillLevel = 3
},
new ElfSkill
{
SkillId = 200071,
SkillLevel = 2
}
},
Star = 1
},
new Proto.Elf
{
ElfId = 130,
Exp = 1,
Level = 80,
SkillList =
{
new ElfSkill
{
SkillId = 20005,
SkillLevel = 1
},
new ElfSkill
{
SkillId = 20006,
SkillLevel = 1
},
new ElfSkill
{
SkillId = 20007,
SkillLevel = 1
},
new ElfSkill
{
SkillId = 200051,
SkillLevel = 3
},
new ElfSkill
{
SkillId = 200071,
SkillLevel = 2
}
},
Star = 1
}
}
};
SetData(proto);
}
}

View File

@@ -0,0 +1,35 @@
using KianaBH.KcpSharp;
using KianaBH.Proto;
namespace KianaBH.GameServer.Server.Packet.Send.Endless;
public class PacketGetEndlessStatusRsp : BasePacket
{
public PacketGetEndlessStatusRsp() : base(CmdIds.GetEndlessStatusRsp)
{
// TODO: Hardcoded
var proto = new GetEndlessStatusRsp
{
CurStatus = new EndlessStatus
{
BeginTime = 1730098800,
CanJoinIn = true,
CloseTime = 1880308800,
EndTime = 1880308800,
EndlessType = EndlessType.Ultra
},
NextStatusList =
{
new EndlessStatus
{
BeginTime = 1730444400,
CloseTime = 1880308800,
EndTime = 1880308800,
EndlessType = EndlessType.Ultra
}
}
};
SetData(proto);
}
}

View File

@@ -0,0 +1,17 @@
using KianaBH.KcpSharp;
using KianaBH.Proto;
namespace KianaBH.GameServer.Server.Packet.Send.Event;
public class PacketGetGalInteractTriggerEventRsp : BasePacket
{
public PacketGetGalInteractTriggerEventRsp(uint avatarId) : base(CmdIds.GetGalInteractTriggerEventRsp)
{
var proto = new GetGalInteractTriggerEventRsp
{
AvatarId = avatarId
};
SetData(proto);
}
}

View File

@@ -0,0 +1,17 @@
using KianaBH.KcpSharp;
using KianaBH.Proto;
namespace KianaBH.GameServer.Server.Packet.Send.ExBoss;
public class PacketExBossStageBeginRsp : BasePacket
{
public PacketExBossStageBeginRsp() : base(CmdIds.ExBossStageBeginRsp)
{
var proto = new ExBossStageBeginRsp
{
};
SetData(proto);
}
}

View File

@@ -0,0 +1,18 @@
using KianaBH.KcpSharp;
using KianaBH.Proto;
namespace KianaBH.GameServer.Server.Packet.Send.ExBoss;
public class PacketExBossStageEndRsp : BasePacket
{
public PacketExBossStageEndRsp(uint bossId, StageEndStatus Status) : base(CmdIds.ExBossStageEndRsp)
{
var proto = new ExBossStageEndRsp
{
BossId = bossId,
EndStatus = Status
};
SetData(proto);
}
}

View File

@@ -0,0 +1,26 @@
using KianaBH.KcpSharp;
using KianaBH.Proto;
namespace KianaBH.GameServer.Server.Packet.Send.ExBoss;
public class PacketGetExBossInfoRsp : BasePacket
{
public PacketGetExBossInfoRsp() : base(CmdIds.GetExBossInfoRsp)
{
// TODO:Hardcoded
var proto = new GetExBossInfoRsp
{
BossInfo = new ExBossInfo
{
BossIdList = { },
CurMaxEnterTimes = 18,
RankId = 104,
ScheduleId = 10377,
NowScheduleId = 10377
}
};
SetData(proto);
}
}

View File

@@ -0,0 +1,39 @@
using KianaBH.GameServer.Game.Player;
using KianaBH.KcpSharp;
using KianaBH.Proto;
namespace KianaBH.GameServer.Server.Packet.Send.ExBoss;
public class PacketGetExBossRankRsp : BasePacket
{
public PacketGetExBossRankRsp(PlayerInstance player) : base(CmdIds.GetExBossRankRsp)
{
// TODO: Hardcoded
var proto = new GetExBossRankRsp
{
RankId = 104,
RankData = new RankShowData
{
MyRank = 104,
MyRankType = 2,
MyScore = 116330,
RankList =
{
new UserRankData
{
AvatarId = 3101,
CustomHeadId = 161099,
DressId = 50217,
FrameId = 200080,
NickName = "Kiana",
Rank = 1,
Score = 119727,
Uid = (uint)player.Data.Uid
}
}
}
};
SetData(proto);
}
}

View File

@@ -0,0 +1,22 @@
using KianaBH.KcpSharp;
using KianaBH.Proto;
namespace KianaBH.GameServer.Server.Packet.Send.ExBoss;
public class PacketGetExBossScheduleRsp : BasePacket
{
public PacketGetExBossScheduleRsp() : base(CmdIds.GetExBossScheduleRsp)
{
// TODO: Hardcoded
var proto = new GetExBossScheduleRsp
{
BeginTime = 1730750400,
EndTime = 1931268799,
MinLevel = 38,
RankId = 104,
ScheduleId = 10377
};
SetData(proto);
}
}

View File

@@ -0,0 +1,17 @@
using KianaBH.KcpSharp;
using KianaBH.Proto;
namespace KianaBH.GameServer.Server.Packet.Send.Exchange;
public class PacketGetCurrencyExchangeInfoRsp : BasePacket
{
public PacketGetCurrencyExchangeInfoRsp() : base(CmdIds.GetCurrencyExchangeInfoRsp)
{
var proto = new GetCurrencyExchangeInfoRsp
{
};
SetData(proto);
}
}

View File

@@ -0,0 +1,17 @@
using KianaBH.KcpSharp;
using KianaBH.Proto;
namespace KianaBH.GameServer.Server.Packet.Send.Friend;
public class PacketGetAskAddFriendListRsp : BasePacket
{
public PacketGetAskAddFriendListRsp() : base(CmdIds.GetAskAddFriendListRsp)
{
var proto = new GetAskAddFriendListRsp
{
};
SetData(proto);
}
}

View File

@@ -0,0 +1,17 @@
using KianaBH.KcpSharp;
using KianaBH.Proto;
namespace KianaBH.GameServer.Server.Packet.Send.Friend;
public class PacketGetFriendListRsp : BasePacket
{
public PacketGetFriendListRsp() : base(CmdIds.GetFriendListRsp)
{
var proto = new GetFriendListRsp
{
};
SetData(proto);
}
}

View File

@@ -0,0 +1,17 @@
using KianaBH.KcpSharp;
using KianaBH.Proto;
namespace KianaBH.GameServer.Server.Packet.Send.Friend;
public class PacketGetFriendRemarkListRsp : BasePacket
{
public PacketGetFriendRemarkListRsp() : base(CmdIds.GetFriendRemarkListRsp)
{
var proto = new GetFriendRemarkListRsp
{
};
SetData(proto);
}
}

View File

@@ -0,0 +1,17 @@
using KianaBH.KcpSharp;
using KianaBH.Proto;
namespace KianaBH.GameServer.Server.Packet.Send.Gacha;
public class PacketGetGachaDisplayRsp : BasePacket
{
public PacketGetGachaDisplayRsp() : base(CmdIds.GetGachaDisplayRsp)
{
var proto = new GetGachaDisplayRsp
{
};
SetData(proto);
}
}

View File

@@ -0,0 +1,17 @@
using KianaBH.KcpSharp;
using KianaBH.Proto;
namespace KianaBH.GameServer.Server.Packet.Send.GodWar;
public class PacketGetGobackRsp : BasePacket
{
public PacketGetGobackRsp() : base(CmdIds.GetGobackRsp)
{
var proto = new GetGobackRsp
{
};
SetData(proto);
}
}

View File

@@ -0,0 +1,20 @@
using KianaBH.KcpSharp;
using KianaBH.Proto;
namespace KianaBH.GameServer.Server.Packet.Send.GodWar;
public class PacketGetGodWarLobbyRsp : BasePacket
{
public PacketGetGodWarLobbyRsp() : base(CmdIds.GetGodWarLobbyRsp)
{
// TODO: Hardcoded
var proto = new GetGodWarLobbyRsp
{
GodWarId = 1,
LobbyId = 2
};
SetData(proto);
}
}

View File

@@ -0,0 +1,18 @@
using KianaBH.KcpSharp;
using KianaBH.Proto;
namespace KianaBH.GameServer.Server.Packet.Send.GodWar;
public class PacketGetGodWarRsp : BasePacket
{
public PacketGetGodWarRsp() : base(CmdIds.GetGodWarRsp)
{
// TODO: Implement
var proto = new GetGodWarRsp
{
};
SetData(proto);
}
}

View File

@@ -0,0 +1,99 @@
using KianaBH.KcpSharp;
using KianaBH.Proto;
namespace KianaBH.GameServer.Server.Packet.Send.GodWar;
public class PacketGetGrandKeyRsp : BasePacket
{
public PacketGetGrandKeyRsp() : base(CmdIds.GetGrandKeyRsp)
{
// TODO: Hardcoded
var proto = new GetGrandKeyRsp
{
IsAll = true,
KeyList =
{
new GrandKey
{
Id = 203,
Level = 10,
ActivateLevel = 10,
BreachLevel = 1,
EndTime = 1975780800,
UnlockLevel = 50,
Skill = new GrandKeySkill
{
SkillId = 20310
}
},
new GrandKey
{
Id = 208,
Level = 1,
UnlockLevel = 65
},
new GrandKey
{
Id = 205,
Level = 10,
ActivateLevel = 10,
BreachLevel = 1,
EndTime = 1975780800,
UnlockLevel = 65,
Skill = new GrandKeySkill
{
SkillId = 20509
}
},
new GrandKey
{
Id = 202,
Level = 10,
ActivateLevel = 10,
BreachLevel = 2,
EndTime = 1975780800,
UnlockLevel = 50,
Skill = new GrandKeySkill
{
SkillId = 20209
}
},
new GrandKey
{
Id = 207,
Level = 1,
BreachLevel = 1,
UnlockLevel = 65
},
new GrandKey
{
Id = 204,
Level = 1,
BreachLevel = 1,
UnlockLevel = 65
},
new GrandKey
{
Id = 201,
Level = 10,
ActivateLevel = 10,
EndTime = 1975780800,
UnlockLevel = 50,
Skill = new GrandKeySkill
{
SkillId = 20109
}
},
new GrandKey
{
Id = 206,
Level = 1,
BreachLevel = 1,
UnlockLevel = 35
}
}
};
SetData(proto);
}
}

Some files were not shown because too many files have changed in this diff Show More