oniksan / godobuf

A Google Protobuf implementation for Godot / GDScript
BSD 3-Clause "New" or "Revised" License
260 stars 36 forks source link

Support 'service' in Protobuf #2

Closed Sharerer closed 5 years ago

Sharerer commented 5 years ago

Hello, Is it possible to add support of service? For example:

syntax = "proto3";

service ServiceName {
    rpc Ping(PingOut) returns (PingIn) {}
}
message PingOut {}
message PingIn {}
oniksan commented 5 years ago

Hi, Firstly, the GD-script, as far as I know, has no interfaces and abstract classes. Therefore, it is impossible to implement "services" beautifully. Secondly, Godot's protobuf implementation created for personal purposes. I honestly did not delve into the mechanism of organizing services in detail, and the Google's documentation of the protobuf leaves much to be desired. So in the near future, the introduction of support services is not planned, but bugs found by users will be corrected.