-
Notifications
You must be signed in to change notification settings - Fork 83
Expand file tree
/
Copy pathBattleContentCharacterInfoHandler.cs
More file actions
83 lines (78 loc) · 2.83 KB
/
Copy pathBattleContentCharacterInfoHandler.cs
File metadata and controls
83 lines (78 loc) · 2.83 KB
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
using System.Collections.Generic;
using Arrowgene.Ddon.GameServer.Dump;
using Arrowgene.Ddon.Server;
using Arrowgene.Ddon.Shared.Entity;
using Arrowgene.Ddon.Shared.Entity.PacketStructure;
using Arrowgene.Ddon.Shared.Entity.Structure;
using Arrowgene.Ddon.Shared.Model;
using Arrowgene.Ddon.Shared.Model.BattleContent;
using Arrowgene.Logging;
namespace Arrowgene.Ddon.GameServer.Handler
{
public class BattleContentCharacterInfoHandler : GameRequestPacketHandler<C2SBattleContentCharacterInfoReq, S2CBattleContentCharacterInfoRes>
{
private static readonly ServerLogger Logger = LogProvider.Logger<ServerLogger>(typeof(BattleContentCharacterInfoHandler));
public BattleContentCharacterInfoHandler(DdonGameServer server) : base(server)
{
}
public override S2CBattleContentCharacterInfoRes Handle(GameClient client, C2SBattleContentCharacterInfoReq request)
{
var result = new S2CBattleContentCharacterInfoRes()
{
SituationData = new CDataBattleContentSituationData
{
GameMode = GameMode.BitterblackMaze,
StartTime = 1,
RewardReceived = false,
Unk3 = false,
RewardBonus = BattleContentRewardBonus.Normal,
ReportReset = 0,
ReportSearchResults = 0,
Unk7 = 2,
Unk8 = 2,
Unktime = 0,
ContentId = 2,
Unk11 = 2
},
AvailableRewardsList = [
new CDataBattleContentAvailableRewards
{
Id = 10,
Amount = 1
},
new CDataBattleContentAvailableRewards
{
Id = 2,
Amount = 1
},
new CDataBattleContentAvailableRewards
{
Id = 11,
Amount = 1
},
new CDataBattleContentAvailableRewards
{
Id = 3,
Amount = 1
},
new CDataBattleContentAvailableRewards
{
Id = 12,
Amount = 1
},
new CDataBattleContentAvailableRewards
{
Id = 4,
Amount = 1
},
new CDataBattleContentAvailableRewards
{
Id = 13,
Amount = 1
}
]
};
return result;
}
}
}