Exemplo n.º 1
0
 public static Offset <NetworkPacket.PacketHolder> CreatePacketHolder(FlatBufferBuilder builder,
                                                                      NetworkPacket.Packets packet_type = NetworkPacket.Packets.NONE,
                                                                      int packetOffset = 0)
 {
     builder.StartTable(2);
     PacketHolder.AddPacket(builder, packetOffset);
     PacketHolder.AddPacketType(builder, packet_type);
     return(PacketHolder.EndPacketHolder(builder));
 }
Exemplo n.º 2
0
 public static void AddPacketType(FlatBufferBuilder builder, NetworkPacket.Packets packetType)
 {
     builder.AddByte(0, (byte)packetType, 0);
 }