kRPC: Control the game using C#, C++, Java, Lua, Python...

kRPC: Control the game using C#, C++, Java, Lua, Python...

7.8k Downloads

Allow multiplication in .NET stream expressions

RedlineTriad opened this issue ยท 0 comments

commented

When adding a stream to the connection with this expression

flight.MeanAltitude * 1.

It throws this exception:
System.ArgumentException : 'Invalid expression. Must consist of a method call or property accessor only.'
The reason this is an issue is that when using F# it is useful to do this:

flight.MeanAltitude * 1.<m>

For those not familiar with F#, this causes the compiler to interpret the float to be in meters because F# has support for units. But when the code is actually compiled the unit is erased, meaning all that is left over is a flight.MeanAltitude * 1 as such I would request multiplication to be supported in streams.