mirror of
https://github.com/collinsmith/riiablo.git
synced 2025-02-01 02:14:32 +07:00
Changed flatbuffers to use union of message types
This commit is contained in:
parent
acdc38123e
commit
140e6bfad8
15
core/src/com/riiablo/net/packet/Packet.fbs
Normal file
15
core/src/com/riiablo/net/packet/Packet.fbs
Normal 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;
|
6
core/src/com/riiablo/net/packet/WalkToLocation.fbs
Normal file
6
core/src/com/riiablo/net/packet/WalkToLocation.fbs
Normal file
@ -0,0 +1,6 @@
|
||||
namespace com.riiablo.net.packet;
|
||||
|
||||
table WalkToLocation {
|
||||
x:int16;
|
||||
y:int16;
|
||||
}
|
Loading…
Reference in New Issue
Block a user