From b8e40275869f8d9ce06b7ec19fae48a6f8009efc Mon Sep 17 00:00:00 2001 From: Wesley Wu Date: Mon, 21 Aug 2023 11:44:11 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=20LevelResource=20=E6=B6=88?= =?UTF-8?q?=E6=81=AF=E4=BD=93=E7=BB=93=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dof/csharp/Messages.cs | 142 +++++++++++++++++++++++++++++++---------- dof/go/messages.pb.go | 96 +++++++++++++++++----------- dof/messages.proto | 4 +- 3 files changed, 171 insertions(+), 71 deletions(-) diff --git a/dof/csharp/Messages.cs b/dof/csharp/Messages.cs index 5585ba1..87778cc 100644 --- a/dof/csharp/Messages.cs +++ b/dof/csharp/Messages.cs @@ -40,19 +40,21 @@ namespace Dof { "bmQSMgoLZ2FtZV9maW5pc2gYBCABKAsyDy5kb2YuR2FtZUZpbmlzaEgAUgpn", "YW1lRmluaXNoQggKBmFjdHVhbCJvCgtQbGF5ZXJFbnRlchIXCgdyb29tX2lk", "GAEgASgJUgZyb29tSWQSEAoDdWlkGAIgASgJUgN1aWQSGwoJbmlja19uYW1l", - "GAMgASgJUghuaWNrTmFtZRIYCgdjb3VudHJ5GAQgASgJUgdjb3VudHJ5IiUK", - "DUxldmVsUmVzb3VyY2USFAoFbGV2ZWwYASABKAlSBWxldmVsIkYKCUdhbWVT", - "dGFydBI5Cg5sZXZlbF9yZXNvdXJjZRgBIAMoCzISLmRvZi5MZXZlbFJlc291", - "cmNlUg1sZXZlbFJlc291cmNlIjcKDUxldmVsUHJlcGFyZWQSEAoDY2lkGAEg", - "ASgDUgNjaWQSFAoFbGV2ZWwYAiABKAlSBWxldmVsIiIKCkxldmVsU3RhcnQS", - "FAoFbGV2ZWwYASABKAlSBWxldmVsIk8KClBvaW50Rm91bmQSEAoDY2lkGAEg", - "ASgDUgNjaWQSFAoFbGV2ZWwYAiABKAlSBWxldmVsEhkKCHBvaW50X2lkGAMg", - "ASgFUgdwb2ludElkIjIKCExldmVsRW5kEhAKA2NpZBgBIAEoA1IDY2lkEhQK", - "BWxldmVsGAIgASgJUgVsZXZlbCIfCgtBbGxMZXZlbEVuZBIQCgNjaWQYASAB", - "KANSA2NpZCIzCglHYW1lU2NvcmUSEAoDdWlkGAEgASgJUgN1aWQSFAoFc2Nv", - "cmUYAiABKAVSBXNjb3JlIjQKCkdhbWVGaW5pc2gSJgoGc2NvcmVzGAEgAygL", - "Mg4uZG9mLkdhbWVTY29yZVIGc2NvcmVzIh8KC1BsYXllckxlYXZlEhAKA2Np", - "ZBgBIAEoA1IDY2lkQgdaBS4vO3BiYgZwcm90bzM=")); + "GAMgASgJUghuaWNrTmFtZRIYCgdjb3VudHJ5GAQgASgJUgdjb3VudHJ5IoAB", + "Cg1MZXZlbFJlc291cmNlEhkKCGxldmVsX2lkGAEgASgJUgdsZXZlbElkEi0K", + "EmFuZHJvaWRfZ2VuZXJhdGlvbhgCIAEoCVIRYW5kcm9pZEdlbmVyYXRpb24S", + "JQoOaW9zX2dlbmVyYXRpb24YAyABKAlSDWlvc0dlbmVyYXRpb24iRgoJR2Ft", + "ZVN0YXJ0EjkKDmxldmVsX3Jlc291cmNlGAEgAygLMhIuZG9mLkxldmVsUmVz", + "b3VyY2VSDWxldmVsUmVzb3VyY2UiNwoNTGV2ZWxQcmVwYXJlZBIQCgNjaWQY", + "ASABKANSA2NpZBIUCgVsZXZlbBgCIAEoCVIFbGV2ZWwiIgoKTGV2ZWxTdGFy", + "dBIUCgVsZXZlbBgBIAEoCVIFbGV2ZWwiTwoKUG9pbnRGb3VuZBIQCgNjaWQY", + "ASABKANSA2NpZBIUCgVsZXZlbBgCIAEoCVIFbGV2ZWwSGQoIcG9pbnRfaWQY", + "AyABKAVSB3BvaW50SWQiMgoITGV2ZWxFbmQSEAoDY2lkGAEgASgDUgNjaWQS", + "FAoFbGV2ZWwYAiABKAlSBWxldmVsIh8KC0FsbExldmVsRW5kEhAKA2NpZBgB", + "IAEoA1IDY2lkIjMKCUdhbWVTY29yZRIQCgN1aWQYASABKAlSA3VpZBIUCgVz", + "Y29yZRgCIAEoBVIFc2NvcmUiNAoKR2FtZUZpbmlzaBImCgZzY29yZXMYASAD", + "KAsyDi5kb2YuR2FtZVNjb3JlUgZzY29yZXMiHwoLUGxheWVyTGVhdmUSEAoD", + "Y2lkGAEgASgDUgNjaWRCB1oFLi87cGJiBnByb3RvMw==")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { }, new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { @@ -60,7 +62,7 @@ namespace Dof { new pbr::GeneratedClrTypeInfo(typeof(global::Dof.ClientMessage), global::Dof.ClientMessage.Parser, new[]{ "PlayerEnter", "LevelPrepared", "PointFound", "LevelEnd", "AllLevelEnd", "PlayerLeave" }, new[]{ "Actual" }, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Dof.ServerMessage), global::Dof.ServerMessage.Parser, new[]{ "GameStart", "LevelStart", "PointFound", "GameFinish" }, new[]{ "Actual" }, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Dof.PlayerEnter), global::Dof.PlayerEnter.Parser, new[]{ "RoomId", "Uid", "NickName", "Country" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Dof.LevelResource), global::Dof.LevelResource.Parser, new[]{ "Level" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Dof.LevelResource), global::Dof.LevelResource.Parser, new[]{ "LevelId", "AndroidGeneration", "IosGeneration" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Dof.GameStart), global::Dof.GameStart.Parser, new[]{ "LevelResource" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Dof.LevelPrepared), global::Dof.LevelPrepared.Parser, new[]{ "Cid", "Level" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Dof.LevelStart), global::Dof.LevelStart.Parser, new[]{ "Level" }, null, null, null, null), @@ -1499,7 +1501,9 @@ namespace Dof { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public LevelResource(LevelResource other) : this() { - level_ = other.level_; + levelId_ = other.levelId_; + androidGeneration_ = other.androidGeneration_; + iosGeneration_ = other.iosGeneration_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } @@ -1509,15 +1513,39 @@ namespace Dof { return new LevelResource(this); } - /// Field number for the "level" field. - public const int LevelFieldNumber = 1; - private string level_ = ""; + /// Field number for the "level_id" field. + public const int LevelIdFieldNumber = 1; + private string levelId_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Level { - get { return level_; } + public string LevelId { + get { return levelId_; } set { - level_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + levelId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "android_generation" field. + public const int AndroidGenerationFieldNumber = 2; + private string androidGeneration_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string AndroidGeneration { + get { return androidGeneration_; } + set { + androidGeneration_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "ios_generation" field. + public const int IosGenerationFieldNumber = 3; + private string iosGeneration_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string IosGeneration { + get { return iosGeneration_; } + set { + iosGeneration_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } @@ -1536,7 +1564,9 @@ namespace Dof { if (ReferenceEquals(other, this)) { return true; } - if (Level != other.Level) return false; + if (LevelId != other.LevelId) return false; + if (AndroidGeneration != other.AndroidGeneration) return false; + if (IosGeneration != other.IosGeneration) return false; return Equals(_unknownFields, other._unknownFields); } @@ -1544,7 +1574,9 @@ namespace Dof { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (Level.Length != 0) hash ^= Level.GetHashCode(); + if (LevelId.Length != 0) hash ^= LevelId.GetHashCode(); + if (AndroidGeneration.Length != 0) hash ^= AndroidGeneration.GetHashCode(); + if (IosGeneration.Length != 0) hash ^= IosGeneration.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -1563,9 +1595,17 @@ namespace Dof { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (Level.Length != 0) { + if (LevelId.Length != 0) { output.WriteRawTag(10); - output.WriteString(Level); + output.WriteString(LevelId); + } + if (AndroidGeneration.Length != 0) { + output.WriteRawTag(18); + output.WriteString(AndroidGeneration); + } + if (IosGeneration.Length != 0) { + output.WriteRawTag(26); + output.WriteString(IosGeneration); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -1577,9 +1617,17 @@ namespace Dof { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Level.Length != 0) { + if (LevelId.Length != 0) { output.WriteRawTag(10); - output.WriteString(Level); + output.WriteString(LevelId); + } + if (AndroidGeneration.Length != 0) { + output.WriteRawTag(18); + output.WriteString(AndroidGeneration); + } + if (IosGeneration.Length != 0) { + output.WriteRawTag(26); + output.WriteString(IosGeneration); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -1591,8 +1639,14 @@ namespace Dof { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (Level.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Level); + if (LevelId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(LevelId); + } + if (AndroidGeneration.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(AndroidGeneration); + } + if (IosGeneration.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(IosGeneration); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -1606,8 +1660,14 @@ namespace Dof { if (other == null) { return; } - if (other.Level.Length != 0) { - Level = other.Level; + if (other.LevelId.Length != 0) { + LevelId = other.LevelId; + } + if (other.AndroidGeneration.Length != 0) { + AndroidGeneration = other.AndroidGeneration; + } + if (other.IosGeneration.Length != 0) { + IosGeneration = other.IosGeneration; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -1625,7 +1685,15 @@ namespace Dof { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { - Level = input.ReadString(); + LevelId = input.ReadString(); + break; + } + case 18: { + AndroidGeneration = input.ReadString(); + break; + } + case 26: { + IosGeneration = input.ReadString(); break; } } @@ -1644,7 +1712,15 @@ namespace Dof { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { - Level = input.ReadString(); + LevelId = input.ReadString(); + break; + } + case 18: { + AndroidGeneration = input.ReadString(); + break; + } + case 26: { + IosGeneration = input.ReadString(); break; } } diff --git a/dof/go/messages.pb.go b/dof/go/messages.pb.go index 7da844b..fe8ed4b 100644 --- a/dof/go/messages.pb.go +++ b/dof/go/messages.pb.go @@ -393,7 +393,9 @@ type LevelResource struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Level string `protobuf:"bytes,1,opt,name=level,proto3" json:"level,omitempty"` + LevelId string `protobuf:"bytes,1,opt,name=level_id,json=levelId,proto3" json:"level_id,omitempty"` + AndroidGeneration string `protobuf:"bytes,2,opt,name=android_generation,json=androidGeneration,proto3" json:"android_generation,omitempty"` + IosGeneration string `protobuf:"bytes,3,opt,name=ios_generation,json=iosGeneration,proto3" json:"ios_generation,omitempty"` } func (x *LevelResource) Reset() { @@ -428,9 +430,23 @@ func (*LevelResource) Descriptor() ([]byte, []int) { return file_dof_messages_proto_rawDescGZIP(), []int{4} } -func (x *LevelResource) GetLevel() string { +func (x *LevelResource) GetLevelId() string { if x != nil { - return x.Level + return x.LevelId + } + return "" +} + +func (x *LevelResource) GetAndroidGeneration() string { + if x != nil { + return x.AndroidGeneration + } + return "" +} + +func (x *LevelResource) GetIosGeneration() string { + if x != nil { + return x.IosGeneration } return "" } @@ -948,40 +964,46 @@ var file_dof_messages_proto_rawDesc = []byte{ 0x75, 0x69, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x6e, 0x69, 0x63, 0x6b, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6e, 0x69, 0x63, 0x6b, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x07, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x22, 0x25, 0x0a, 0x0d, 0x4c, 0x65, - 0x76, 0x65, 0x6c, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x6c, - 0x65, 0x76, 0x65, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6c, 0x65, 0x76, 0x65, - 0x6c, 0x22, 0x46, 0x0a, 0x09, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x74, 0x61, 0x72, 0x74, 0x12, 0x39, - 0x0a, 0x0e, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x5f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, - 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x64, 0x6f, 0x66, 0x2e, 0x4c, 0x65, 0x76, - 0x65, 0x6c, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x0d, 0x6c, 0x65, 0x76, 0x65, - 0x6c, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x22, 0x37, 0x0a, 0x0d, 0x4c, 0x65, 0x76, - 0x65, 0x6c, 0x50, 0x72, 0x65, 0x70, 0x61, 0x72, 0x65, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x63, 0x69, - 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x03, 0x63, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, - 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6c, 0x65, 0x76, - 0x65, 0x6c, 0x22, 0x22, 0x0a, 0x0a, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x53, 0x74, 0x61, 0x72, 0x74, - 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x22, 0x4f, 0x0a, 0x0a, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x46, - 0x6f, 0x75, 0x6e, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x63, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x03, 0x52, 0x03, 0x63, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x19, 0x0a, 0x08, - 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, - 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x49, 0x64, 0x22, 0x32, 0x0a, 0x08, 0x4c, 0x65, 0x76, 0x65, 0x6c, - 0x45, 0x6e, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x63, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, - 0x52, 0x03, 0x63, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x22, 0x1f, 0x0a, 0x0b, 0x41, - 0x6c, 0x6c, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x45, 0x6e, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x63, 0x69, - 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x03, 0x63, 0x69, 0x64, 0x22, 0x33, 0x0a, 0x09, - 0x47, 0x61, 0x6d, 0x65, 0x53, 0x63, 0x6f, 0x72, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, 0x64, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x73, - 0x63, 0x6f, 0x72, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x73, 0x63, 0x6f, 0x72, - 0x65, 0x22, 0x34, 0x0a, 0x0a, 0x47, 0x61, 0x6d, 0x65, 0x46, 0x69, 0x6e, 0x69, 0x73, 0x68, 0x12, - 0x26, 0x0a, 0x06, 0x73, 0x63, 0x6f, 0x72, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, - 0x0e, 0x2e, 0x64, 0x6f, 0x66, 0x2e, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x63, 0x6f, 0x72, 0x65, 0x52, - 0x06, 0x73, 0x63, 0x6f, 0x72, 0x65, 0x73, 0x22, 0x1f, 0x0a, 0x0b, 0x50, 0x6c, 0x61, 0x79, 0x65, - 0x72, 0x4c, 0x65, 0x61, 0x76, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x63, 0x69, 0x64, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x03, 0x52, 0x03, 0x63, 0x69, 0x64, 0x42, 0x07, 0x5a, 0x05, 0x2e, 0x2f, 0x3b, 0x70, - 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x09, 0x52, 0x07, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x22, 0x80, 0x01, 0x0a, 0x0d, 0x4c, + 0x65, 0x76, 0x65, 0x6c, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x19, 0x0a, 0x08, + 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, + 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x49, 0x64, 0x12, 0x2d, 0x0a, 0x12, 0x61, 0x6e, 0x64, 0x72, 0x6f, + 0x69, 0x64, 0x5f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x11, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x69, 0x64, 0x47, 0x65, 0x6e, 0x65, + 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x25, 0x0a, 0x0e, 0x69, 0x6f, 0x73, 0x5f, 0x67, 0x65, + 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, + 0x69, 0x6f, 0x73, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x46, 0x0a, + 0x09, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x74, 0x61, 0x72, 0x74, 0x12, 0x39, 0x0a, 0x0e, 0x6c, 0x65, + 0x76, 0x65, 0x6c, 0x5f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x01, 0x20, 0x03, + 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x64, 0x6f, 0x66, 0x2e, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x52, 0x65, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x0d, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x52, 0x65, 0x73, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x22, 0x37, 0x0a, 0x0d, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x50, 0x72, + 0x65, 0x70, 0x61, 0x72, 0x65, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x63, 0x69, 0x64, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x03, 0x52, 0x03, 0x63, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x65, 0x76, 0x65, + 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x22, 0x22, + 0x0a, 0x0a, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x53, 0x74, 0x61, 0x72, 0x74, 0x12, 0x14, 0x0a, 0x05, + 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6c, 0x65, 0x76, + 0x65, 0x6c, 0x22, 0x4f, 0x0a, 0x0a, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x46, 0x6f, 0x75, 0x6e, 0x64, + 0x12, 0x10, 0x0a, 0x03, 0x63, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x03, 0x63, + 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x19, 0x0a, 0x08, 0x70, 0x6f, 0x69, 0x6e, + 0x74, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x70, 0x6f, 0x69, 0x6e, + 0x74, 0x49, 0x64, 0x22, 0x32, 0x0a, 0x08, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x45, 0x6e, 0x64, 0x12, + 0x10, 0x0a, 0x03, 0x63, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x03, 0x63, 0x69, + 0x64, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x22, 0x1f, 0x0a, 0x0b, 0x41, 0x6c, 0x6c, 0x4c, 0x65, + 0x76, 0x65, 0x6c, 0x45, 0x6e, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x63, 0x69, 0x64, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x03, 0x52, 0x03, 0x63, 0x69, 0x64, 0x22, 0x33, 0x0a, 0x09, 0x47, 0x61, 0x6d, 0x65, + 0x53, 0x63, 0x6f, 0x72, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x03, 0x75, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x63, 0x6f, 0x72, 0x65, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x73, 0x63, 0x6f, 0x72, 0x65, 0x22, 0x34, 0x0a, + 0x0a, 0x47, 0x61, 0x6d, 0x65, 0x46, 0x69, 0x6e, 0x69, 0x73, 0x68, 0x12, 0x26, 0x0a, 0x06, 0x73, + 0x63, 0x6f, 0x72, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x64, 0x6f, + 0x66, 0x2e, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x63, 0x6f, 0x72, 0x65, 0x52, 0x06, 0x73, 0x63, 0x6f, + 0x72, 0x65, 0x73, 0x22, 0x1f, 0x0a, 0x0b, 0x50, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x4c, 0x65, 0x61, + 0x76, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x63, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, + 0x03, 0x63, 0x69, 0x64, 0x42, 0x07, 0x5a, 0x05, 0x2e, 0x2f, 0x3b, 0x70, 0x62, 0x62, 0x06, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( diff --git a/dof/messages.proto b/dof/messages.proto index 765566a..57a9283 100644 --- a/dof/messages.proto +++ b/dof/messages.proto @@ -38,7 +38,9 @@ message PlayerEnter { } message LevelResource { - string level = 1; + string level_id = 1; + string android_generation = 2; + string ios_generation = 3; } message GameStart {