feature/72-channelselection-and-character-creation #82
1 changed files with 35 additions and 30 deletions
|
@ -71,39 +71,44 @@ public class ChannelSelectionHandler : IPacketHandler<ChannelSelectionPacket>
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
responsePacket = new ChannelSelectionResponsePacket
|
responsePacket = CreateTestChannelSelectionResponsePacket();
|
||||||
{
|
|
||||||
ChannelIsFullFlag = 0,
|
|
||||||
Endpoint = "127.0.0.1",
|
|
||||||
Port = 12345,
|
|
||||||
Characters = new[]
|
|
||||||
{
|
|
||||||
new CharacterData
|
|
||||||
{
|
|
||||||
Name = "Test243",
|
|
||||||
Job = new JobData { FirstJob = 1, SecondJob = 0, ThirdJob = 0, FourthJob = 0 },
|
|
||||||
Gender = Gender.None,
|
|
||||||
Level = ushort.MaxValue - 1,
|
|
||||||
Experience = 255,
|
|
||||||
Stats = new BaseStats
|
|
||||||
{
|
|
||||||
Strength = 5,
|
|
||||||
Dexterity = 5,
|
|
||||||
Intelligence = 5,
|
|
||||||
Vitality = 5,
|
|
||||||
Luck = 5,
|
|
||||||
Wisdom = 5
|
|
||||||
},
|
|
||||||
Health = int.MaxValue - 1,
|
|
||||||
Mana = int.MaxValue - 1,
|
|
||||||
EquippedItems = Enumerable.Repeat((ushort)25, 20).ToArray(),
|
|
||||||
EquippedCashItems = Enumerable.Repeat((ushort)25, 20).ToArray()
|
|
||||||
},
|
|
||||||
},
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
||||||
authSession.Send(responsePacket);
|
authSession.Send(responsePacket);
|
||||||
return Task.CompletedTask;
|
return Task.CompletedTask;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private static ChannelSelectionResponsePacket CreateTestChannelSelectionResponsePacket()
|
||||||
|
{
|
||||||
|
return new ChannelSelectionResponsePacket
|
||||||
|
{
|
||||||
|
ChannelIsFullFlag = 0,
|
||||||
|
Endpoint = "127.0.0.1",
|
||||||
|
Port = 12345,
|
||||||
|
Characters = new[]
|
||||||
|
{
|
||||||
|
new CharacterData
|
||||||
|
{
|
||||||
|
Name = "Test243",
|
||||||
|
Job = new JobData { FirstJob = 1, SecondJob = 0, ThirdJob = 0, FourthJob = 0 },
|
||||||
|
Gender = Gender.None,
|
||||||
|
Level = ushort.MaxValue - 1,
|
||||||
|
Experience = 255,
|
||||||
|
Stats = new BaseStats
|
||||||
|
{
|
||||||
|
Strength = 5,
|
||||||
|
Dexterity = 5,
|
||||||
|
Intelligence = 5,
|
||||||
|
Vitality = 5,
|
||||||
|
Luck = 5,
|
||||||
|
Wisdom = 5
|
||||||
|
},
|
||||||
|
Health = int.MaxValue - 1,
|
||||||
|
Mana = int.MaxValue - 1,
|
||||||
|
EquippedItems = Enumerable.Repeat((ushort)25, 20).ToArray(),
|
||||||
|
EquippedCashItems = Enumerable.Repeat((ushort)25, 20).ToArray()
|
||||||
|
},
|
||||||
|
},
|
||||||
|
};
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue