Changed flatbuffers to use union of message types

This commit is contained in:
Collin Smith 2019-04-11 15:46:04 -07:00
parent acdc38123e
commit 140e6bfad8
2 changed files with 21 additions and 0 deletions

View File

@ -0,0 +1,15 @@
include "WalkToLocation.fbs";
include "Connection.fbs";
namespace com.riiablo.net.packet;
union PacketData {
WalkToLocation,
Connection
}
table Packet {
data:PacketData;
}
root_type Packet;

View File

@ -0,0 +1,6 @@
namespace com.riiablo.net.packet;
table WalkToLocation {
x:int16;
y:int16;
}