|
|
@ -345,6 +345,13 @@ namespace Game { |
|
|
__Marshaller_game_Null, |
|
|
__Marshaller_game_Null, |
|
|
__Marshaller_game_LobbyStatus); |
|
|
__Marshaller_game_LobbyStatus); |
|
|
|
|
|
|
|
|
|
|
|
static readonly grpc::Method<global::Game.Null, global::Game.Null> __Method_leave = new grpc::Method<global::Game.Null, global::Game.Null>( |
|
|
|
|
|
grpc::MethodType.Unary, |
|
|
|
|
|
__ServiceName, |
|
|
|
|
|
"leave", |
|
|
|
|
|
__Marshaller_game_Null, |
|
|
|
|
|
__Marshaller_game_Null); |
|
|
|
|
|
|
|
|
/// <summary>Service descriptor</summary>
|
|
|
/// <summary>Service descriptor</summary>
|
|
|
public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor |
|
|
public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor |
|
|
{ |
|
|
{ |
|
|
@ -375,6 +382,11 @@ namespace Game { |
|
|
throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); |
|
|
throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public virtual global::System.Threading.Tasks.Task<global::Game.Null> leave(global::Game.Null request, grpc::ServerCallContext context) |
|
|
|
|
|
{ |
|
|
|
|
|
throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/// <summary>Client for Lobby</summary>
|
|
|
/// <summary>Client for Lobby</summary>
|
|
|
@ -464,6 +476,22 @@ namespace Game { |
|
|
{ |
|
|
{ |
|
|
return CallInvoker.AsyncUnaryCall(__Method_status, null, options, request); |
|
|
return CallInvoker.AsyncUnaryCall(__Method_status, null, options, request); |
|
|
} |
|
|
} |
|
|
|
|
|
public virtual global::Game.Null leave(global::Game.Null request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) |
|
|
|
|
|
{ |
|
|
|
|
|
return leave(request, new grpc::CallOptions(headers, deadline, cancellationToken)); |
|
|
|
|
|
} |
|
|
|
|
|
public virtual global::Game.Null leave(global::Game.Null request, grpc::CallOptions options) |
|
|
|
|
|
{ |
|
|
|
|
|
return CallInvoker.BlockingUnaryCall(__Method_leave, null, options, request); |
|
|
|
|
|
} |
|
|
|
|
|
public virtual grpc::AsyncUnaryCall<global::Game.Null> leaveAsync(global::Game.Null request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) |
|
|
|
|
|
{ |
|
|
|
|
|
return leaveAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); |
|
|
|
|
|
} |
|
|
|
|
|
public virtual grpc::AsyncUnaryCall<global::Game.Null> leaveAsync(global::Game.Null request, grpc::CallOptions options) |
|
|
|
|
|
{ |
|
|
|
|
|
return CallInvoker.AsyncUnaryCall(__Method_leave, null, options, request); |
|
|
|
|
|
} |
|
|
/// <summary>Creates a new instance of client from given <c>ClientBaseConfiguration</c>.</summary>
|
|
|
/// <summary>Creates a new instance of client from given <c>ClientBaseConfiguration</c>.</summary>
|
|
|
protected override LobbyClient NewInstance(ClientBaseConfiguration configuration) |
|
|
protected override LobbyClient NewInstance(ClientBaseConfiguration configuration) |
|
|
{ |
|
|
{ |
|
|
@ -479,7 +507,8 @@ namespace Game { |
|
|
.AddMethod(__Method_getCardImage, serviceImpl.getCardImage) |
|
|
.AddMethod(__Method_getCardImage, serviceImpl.getCardImage) |
|
|
.AddMethod(__Method_vote, serviceImpl.vote) |
|
|
.AddMethod(__Method_vote, serviceImpl.vote) |
|
|
.AddMethod(__Method_ready, serviceImpl.ready) |
|
|
.AddMethod(__Method_ready, serviceImpl.ready) |
|
|
.AddMethod(__Method_status, serviceImpl.status).Build(); |
|
|
.AddMethod(__Method_status, serviceImpl.status) |
|
|
|
|
|
.AddMethod(__Method_leave, serviceImpl.leave).Build(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/// <summary>Register service method with a service binder with or without implementation. Useful when customizing the service binding logic.
|
|
|
/// <summary>Register service method with a service binder with or without implementation. Useful when customizing the service binding logic.
|
|
|
@ -492,6 +521,7 @@ namespace Game { |
|
|
serviceBinder.AddMethod(__Method_vote, serviceImpl == null ? null : new grpc::UnaryServerMethod<global::Game.Vote, global::Game.Null>(serviceImpl.vote)); |
|
|
serviceBinder.AddMethod(__Method_vote, serviceImpl == null ? null : new grpc::UnaryServerMethod<global::Game.Vote, global::Game.Null>(serviceImpl.vote)); |
|
|
serviceBinder.AddMethod(__Method_ready, serviceImpl == null ? null : new grpc::UnaryServerMethod<global::Game.Null, global::Game.Null>(serviceImpl.ready)); |
|
|
serviceBinder.AddMethod(__Method_ready, serviceImpl == null ? null : new grpc::UnaryServerMethod<global::Game.Null, global::Game.Null>(serviceImpl.ready)); |
|
|
serviceBinder.AddMethod(__Method_status, serviceImpl == null ? null : new grpc::UnaryServerMethod<global::Game.Null, global::Game.LobbyStatus>(serviceImpl.status)); |
|
|
serviceBinder.AddMethod(__Method_status, serviceImpl == null ? null : new grpc::UnaryServerMethod<global::Game.Null, global::Game.LobbyStatus>(serviceImpl.status)); |
|
|
|
|
|
serviceBinder.AddMethod(__Method_leave, serviceImpl == null ? null : new grpc::UnaryServerMethod<global::Game.Null, global::Game.Null>(serviceImpl.leave)); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|