示例#1
0
文件: game.cs 项目: ckissane/IOGame
 public static Offset <NetPing> CreateNetPing(FlatBufferBuilder builder,
                                              uint time = 0)
 {
     builder.StartObject(1);
     NetPing.AddTime(builder, time);
     return(NetPing.EndNetPing(builder));
 }
示例#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));
 }