From da8167162a652a730af03600d6d8b90155f10e72 Mon Sep 17 00:00:00 2001 From: xiaohang Date: Fri, 20 Oct 2023 17:02:57 +0800 Subject: [PATCH] add assignment test matchmake --- Runtime/NetworkGen/Messages.cs | 17 +++++++++++++++++ Runtime/ServerProto/messages.proto | 15 +++++++++++++++ 2 files changed, 32 insertions(+) diff --git a/Runtime/NetworkGen/Messages.cs b/Runtime/NetworkGen/Messages.cs index 001e061..6f3824e 100644 --- a/Runtime/NetworkGen/Messages.cs +++ b/Runtime/NetworkGen/Messages.cs @@ -366,6 +366,23 @@ namespace Dof } + [global::ProtoBuf.ProtoContract()] + public partial class Assignment : global::ProtoBuf.IExtensible + { + private global::ProtoBuf.IExtension __pbn__extensionData; + global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing) + => global::ProtoBuf.Extensible.GetExtensionObject(ref __pbn__extensionData, createIfMissing); + + [global::ProtoBuf.ProtoMember(1, Name = @"connection")] + [global::System.ComponentModel.DefaultValue("")] + public string Connection { get; set; } = ""; + + [global::ProtoBuf.ProtoMember(4, Name = @"extensions")] + [global::ProtoBuf.ProtoMap] + public global::System.Collections.Generic.Dictionary Extensions { get; } = new global::System.Collections.Generic.Dictionary(); + + } + } #pragma warning restore CS0612, CS0618, CS1591, CS3021, IDE0079, IDE1006, RCS1036, RCS1057, RCS1085, RCS1192 diff --git a/Runtime/ServerProto/messages.proto b/Runtime/ServerProto/messages.proto index f1643f5..8bd79cb 100644 --- a/Runtime/ServerProto/messages.proto +++ b/Runtime/ServerProto/messages.proto @@ -2,6 +2,8 @@ syntax = "proto3"; package dof; option go_package = "./;pb"; +import "google/protobuf/any.proto"; + // ClientMessage 客户端发送给服务端的消息类型 message ClientMessage { oneof actual { @@ -97,4 +99,17 @@ message PlayerLeave { message Heartbeat { int64 timestamp = 1; +} + +message Assignment { + // Connection information for this Assignment. + string connection = 1; + + // Customized information not inspected by Open Match, to be used by the match + // making function, evaluator, and components making calls to Open Match. + // Optional, depending on the requirements of the connected systems. + map extensions = 4; + + // Deprecated fields. + reserved 2, 3; } \ No newline at end of file