Open ebuxk opened 4 months ago
When generating the below common.proto & game-broken.proto, Private/SGame/GameContext.cpp has compilation issues.
GameContext.cpp(19): Error C2665 : 'TURBOLINK_TO_GRPC': no overloaded function could convert all the argument types
I found 2 ways to work around this:
common.proto
package common; message Player { uint64 id = 1; string username = 2; string auth_key = 3; }
game-broken.proto
package game; import "common.proto"; service TestTurbo { rpc TestTurboFunc(common.Player) returns (common.Player); }
game-workaround.proto
package game; import "common.proto"; message TestTurboFuncMessage { common.Player player = 1; } service TestTurbo { rpc TestTurboFunc(TestTurboFuncMessage) returns (TestTurboFuncMessage); }
Thank you for all your time and focus on turbolink. 👍
This isn't an issue with this repo, it's an issue with the protogen. You can check out the PR #11 for this fix.
When generating the below common.proto & game-broken.proto, Private/SGame/GameContext.cpp has compilation issues.
I found 2 ways to work around this:
common.proto
game-broken.proto
game-workaround.proto
Thank you for all your time and focus on turbolink. 👍