public static Offset <NetPing> CreateNetPing(FlatBufferBuilder builder, uint time = 0) { builder.StartObject(1); NetPing.AddTime(builder, time); return(NetPing.EndNetPing(builder)); }
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)); }
public static NetPing GetRootAsNetPing(ByteBuffer _bb, NetPing obj) { return(obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); }