-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #519 from pacampbell/investigate_pawn_issues
fix: Fix issue with random pawns
- Loading branch information
Showing
5 changed files
with
78 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
Arrowgene.Ddon.Shared/Entity/PacketStructure/C2SPawnGetNoraPawnListReq.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
using Arrowgene.Buffers; | ||
using Arrowgene.Ddon.Shared.Network; | ||
|
||
namespace Arrowgene.Ddon.Shared.Entity.PacketStructure | ||
{ | ||
public class C2SPawnGetNoraPawnListReq : IPacketStructure | ||
{ | ||
public PacketId Id => PacketId.C2S_PAWN_GET_NORA_PAWN_LIST_REQ; | ||
|
||
public class Serializer : PacketEntitySerializer<C2SPawnGetNoraPawnListReq> | ||
{ | ||
public override void Write(IBuffer buffer, C2SPawnGetNoraPawnListReq obj) | ||
{ | ||
} | ||
|
||
public override C2SPawnGetNoraPawnListReq Read(IBuffer buffer) | ||
{ | ||
return new C2SPawnGetNoraPawnListReq(); | ||
} | ||
} | ||
} | ||
} |
37 changes: 37 additions & 0 deletions
37
Arrowgene.Ddon.Shared/Entity/PacketStructure/S2CPawnGetNoraPawnListRes.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
using System.Collections.Generic; | ||
using Arrowgene.Buffers; | ||
using Arrowgene.Ddon.Shared.Entity.Structure; | ||
using Arrowgene.Ddon.Shared.Network; | ||
|
||
namespace Arrowgene.Ddon.Shared.Entity.PacketStructure | ||
{ | ||
public class S2CPawnGetNoraPawnListRes : ServerResponse | ||
{ | ||
public override PacketId Id => PacketId.S2C_PAWN_GET_NORA_PAWN_LIST_RES; | ||
|
||
public S2CPawnGetNoraPawnListRes() | ||
{ | ||
NoraPawnList = new List<CDataRegisterdPawnList>(); | ||
} | ||
|
||
public List<CDataRegisterdPawnList> NoraPawnList { get; set; } | ||
|
||
|
||
public class Serializer : PacketEntitySerializer<S2CPawnGetNoraPawnListRes> | ||
{ | ||
public override void Write(IBuffer buffer, S2CPawnGetNoraPawnListRes obj) | ||
{ | ||
WriteServerResponse(buffer, obj); | ||
WriteEntityList(buffer, obj.NoraPawnList); | ||
} | ||
|
||
public override S2CPawnGetNoraPawnListRes Read(IBuffer buffer) | ||
{ | ||
S2CPawnGetNoraPawnListRes obj = new S2CPawnGetNoraPawnListRes(); | ||
ReadServerResponse(buffer, obj); | ||
obj.NoraPawnList = ReadEntityList<CDataRegisterdPawnList>(buffer); | ||
return obj; | ||
} | ||
} | ||
} | ||
} |