Organized packets better (going to add d2gs, mcp and perhaps bnls)

This commit is contained in:
Collin Smith 2019-04-12 15:33:02 -07:00
parent 172f7180da
commit dace9e31e9
7 changed files with 11 additions and 11 deletions

View File

@ -22,7 +22,7 @@ eclipse.project {
}
task createFlatBuffers(type: FlatBuffers) {
inputDir = file("src/com/riiablo/net/packet")
inputDir = file("src/com/riiablo/net/")
outputDir = file("gen/")
language = 'java'
}

View File

@ -1,4 +1,4 @@
namespace com.riiablo.net.packet;
namespace com.riiablo.net.packet.d2gs;
table Connection {
MCPCookie:uint32;

View File

@ -4,9 +4,9 @@ include "RunToLocation.fbs";
include "RunToEntity.fbs";
include "Connection.fbs";
namespace com.riiablo.net.packet;
namespace com.riiablo.net.packet.d2gs;
union PacketData {
union D2GSData {
WalkToLocation,
WalkToEntity,
RunToLocation,
@ -14,8 +14,8 @@ union PacketData {
Connection
}
table Packet {
data:PacketData;
table D2GS {
data:D2GSData;
}
root_type Packet;
root_type D2GS;

View File

@ -1,4 +1,4 @@
namespace com.riiablo.net.packet;
namespace com.riiablo.net.packet.d2gs;
table RunToEntity {
type:int32;

View File

@ -1,4 +1,4 @@
namespace com.riiablo.net.packet;
namespace com.riiablo.net.packet.d2gs;
table RunToLocation {
x:int16;

View File

@ -1,4 +1,4 @@
namespace com.riiablo.net.packet;
namespace com.riiablo.net.packet.d2gs;
table WalkToEntity {
type:int32;

View File

@ -1,4 +1,4 @@
namespace com.riiablo.net.packet;
namespace com.riiablo.net.packet.d2gs;
table WalkToLocation {
x:int16;