Esempio n. 1
0
 public static Offset <NetPing> CreateNetPing(FlatBufferBuilder builder,
                                              uint time = 0)
 {
     builder.StartObject(1);
     NetPing.AddTime(builder, time);
     return(NetPing.EndNetPing(builder));
 }
Esempio n. 2
0
 public static Offset <NetPing> CreateNetPing(FlatBufferBuilder builder,
                                              uint time              = 0,
                                              uint latency           = 0,
                                              uint fps               = 0,
                                              uint vps               = 0,
                                              uint ups               = 0,
                                              uint cs                = 0,
                                              bool backgrounded      = false,
                                              uint bandwidthThrottle = 0)
 {
     builder.StartObject(8);
     NetPing.AddBandwidthThrottle(builder, bandwidthThrottle);
     NetPing.AddCs(builder, cs);
     NetPing.AddUps(builder, ups);
     NetPing.AddVps(builder, vps);
     NetPing.AddFps(builder, fps);
     NetPing.AddLatency(builder, latency);
     NetPing.AddTime(builder, time);
     NetPing.AddBackgrounded(builder, backgrounded);
     return(NetPing.EndNetPing(builder));
 }