public static Schema.KRPC.Argument ToProtobufMessage (this Argument argument) { var result = new Schema.KRPC.Argument (); result.Position = argument.Position; result.Value = Encoder.Encode (argument.Value); return result; }
public static Schema.KRPC.Argument ToProtobufMessage(this Argument argument) { var result = new Schema.KRPC.Argument(); result.Position = argument.Position; result.Value = Encoder.Encode(argument.Value); return(result); }
public static Argument ToMessage(this Schema.KRPC.Argument argument, Type type) { return(new Argument(argument.Position, Encoder.Decode(argument.Value, type))); }