This commit is contained in:
杨号敬 2024-12-26 18:02:47 +08:00
commit 57ba37d615
15 changed files with 8821 additions and 240 deletions

View File

@ -1,83 +0,0 @@
// <auto-generated>
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: config.proto
// </auto-generated>
#pragma warning disable 1591, 0612, 3021, 8981
#region Designer generated code
using pb = global::Google.Protobuf;
using pbc = global::Google.Protobuf.Collections;
using pbr = global::Google.Protobuf.Reflection;
using scg = global::System.Collections.Generic;
/// <summary>Holder for reflection information generated from config.proto</summary>
public static partial class ConfigReflection {
#region Descriptor
/// <summary>File descriptor for config.proto</summary>
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
private static pbr::FileDescriptor descriptor;
static ConfigReflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"Cgxjb25maWcucHJvdG8qnQEKCkVSUk9SX0NPREUSCgoGRVJSX09rEAASEAoM",
"RVJSX05vUGxheWVyEAESDgoKRVJSX05vUm9vbRACEg0KCUVSUl9Ub2tlbhAE",
"Eg0KCUVSUl9Mb2dpbhAFEg4KCkVSUl9BY3Rpb24QBhIOCgpFUlJfUGFyYW1z",
"EAcSDgoKRVJSX1NlcnZlchAIEhMKD0VSUl9Ob0F1dGhvcml0eRAJQgdaBS4v",
"O3BiYgZwcm90bzM="));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { },
new pbr::GeneratedClrTypeInfo(new[] {typeof(global::ERROR_CODE), }, null, null));
}
#endregion
}
#region Enums
/// <summary>
///错误码
/// </summary>
public enum ERROR_CODE {
/// <summary>
///OK
/// </summary>
[pbr::OriginalName("ERR_Ok")] ErrOk = 0,
/// <summary>
///没有这个玩家
/// </summary>
[pbr::OriginalName("ERR_NoPlayer")] ErrNoPlayer = 1,
/// <summary>
///加入房间失败
/// </summary>
[pbr::OriginalName("ERR_NoRoom")] ErrNoRoom = 2,
/// <summary>
///Token验证失败
/// </summary>
[pbr::OriginalName("ERR_Token")] ErrToken = 4,
/// <summary>
///登录失败
/// </summary>
[pbr::OriginalName("ERR_Login")] ErrLogin = 5,
/// <summary>
///操作失败
/// </summary>
[pbr::OriginalName("ERR_Action")] ErrAction = 6,
/// <summary>
///参数错误
/// </summary>
[pbr::OriginalName("ERR_Params")] ErrParams = 7,
/// <summary>
///服务器内部错误
/// </summary>
[pbr::OriginalName("ERR_Server")] ErrServer = 8,
/// <summary>
///没有权限
/// </summary>
[pbr::OriginalName("ERR_NoAuthority")] ErrNoAuthority = 9,
}
#endregion
#endregion Designer generated code

View File

@ -23,42 +23,45 @@ public static partial class HallReflection {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"CgpoYWxsLnByb3RvIi8KDExvZ2luUmVxdWVzdBIOCgZ1c2VySWQYASABKAkS",
"DwoHYWNjb3VudBgCIAEoCSIuCg1Mb2dpblJlc3BvbnNlEg8KB21lc3NhZ2UY",
"ASABKAkSDAoEY29kZRgCIAEoBSIfCgxIZWxsb1JlcXVlc3QSDwoHbWVzc2Fn",
"ZRgBIAEoCSIgCg1IZWxsb1Jlc3BvbnNlEg8KB21lc3NhZ2UYASABKAkiIQoP",
"Sm9pblJvb21SZXF1ZXN0Eg4KBnJvb21JZBgBIAEoCSJUChBKb2luUm9vbVJl",
"c3BvbnNlEg8KB21lc3NhZ2UYASABKAkSDAoEY29kZRgCIAEoBRIhCgRkYXRh",
"GAMgASgLMhMuUGxheWVySm9pblJlc3BvbnNlIrcDChJQbGF5ZXJKb2luUmVz",
"cG9uc2USEAoIVXNlck5hbWUYASABKAkSDgoGUm9vbUlkGAIgASgJEg4KBlN0",
"YXR1cxgDIAEoBRIQCghSb2xlTmFtZRgEIAEoCRIUCgxJc0xlYWRpbmdOUEMY",
"BSABKAUSDgoGT25saW5lGAYgASgIEg4KBlJvbGVJZBgHIAEoBRITCgtHcm91",
"cExlYWRlchgIIAEoBRISCgpBY3Rpb25Nb2RlGAkgASgFEg0KBUdyb3VwGAog",
"ASgFEgkKAVgYCyABKAESCQ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vbmQYDCABKAMSFgoOTW92ZVNwZWVkVGhpcmQYDSABKAMiYgoP",
"VXNlckluZm9SZXF1ZXN0Eg4KBlVzZXJJZBgBIAEoAxIOCgZTdGF0dXMYAiAB",
"KAUSDgoGUm9vbUlkGAMgASgJEgkKAXgYBCABKAISCQoBeRgFIAEoAhIJCgF6",
"GAYgASgCIhIKEFVzZXJJbmZvUmVzcG9uc2VCB1oFLi87cGJiBnByb3RvMw=="));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { },
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::LoginRequest), global::LoginRequest.Parser, new[]{ "UserId", "Account" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::LoginResponse), global::LoginResponse.Parser, new[]{ "Message", "Code" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::LoginResponse), global::LoginResponse.Parser, new[]{ "Message", "Code", "Date", "Data" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::HelloRequest), global::HelloRequest.Parser, new[]{ "Message" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::HelloResponse), global::HelloResponse.Parser, new[]{ "Message" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::JoinRoomRequest), global::JoinRoomRequest.Parser, new[]{ "RoomId" }, null, null, null, null),
@ -70,7 +73,7 @@ public static partial class HallReflection {
new pbr::GeneratedClrTypeInfo(typeof(global::RpcRoomInfoResponse), global::RpcRoomInfoResponse.Parser, new[]{ "Id", "TemplateId", "Status", "ReserveDate" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::UserTemplateRequest), global::UserTemplateRequest.Parser, new[]{ "TemplateId", "RoomId" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::UserTemplate), global::UserTemplate.Parser, new[]{ "Responses" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::UserTemplateResponse), global::UserTemplateResponse.Parser, new[]{ "RoomId", "UserId", "Status", "TemplateId", "RoleId", "BirthAreaId", "ChargeAreaId" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::UserTemplateResponse), global::UserTemplateResponse.Parser, new[]{ "RoomId", "UserId", "Status", "TemplateId", "RoleId", "BirthAreaId", "ChargeAreaId", "X", "Y", "Z", "MoveSpeedFirst", "MoveSpeedSecond", "MoveSpeedThird" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::UserInfoRequest), global::UserInfoRequest.Parser, new[]{ "UserId", "Status", "RoomId", "X", "Y", "Z" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::UserInfoResponse), global::UserInfoResponse.Parser, null, null, null, null, null)
}));
@ -351,6 +354,8 @@ public sealed partial class LoginResponse : pb::IMessage<LoginResponse>
public LoginResponse(LoginResponse other) : this() {
message_ = other.message_;
code_ = other.code_;
date_ = other.date_;
data_ = other.data_ != null ? other.data_.Clone() : null;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
@ -384,6 +389,33 @@ public sealed partial class LoginResponse : pb::IMessage<LoginResponse>
}
}
/// <summary>Field number for the "date" field.</summary>
public const int DateFieldNumber = 4;
private string date_ = "";
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string Date {
get { return date_; }
set {
date_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// <summary>Field number for the "data" field.</summary>
public const int DataFieldNumber = 3;
private global::PlayerJoinResponse data_;
/// <summary>
/// 玩家信息
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::PlayerJoinResponse Data {
get { return data_; }
set {
data_ = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
@ -401,6 +433,8 @@ public sealed partial class LoginResponse : pb::IMessage<LoginResponse>
}
if (Message != other.Message) return false;
if (Code != other.Code) return false;
if (Date != other.Date) return false;
if (!object.Equals(Data, other.Data)) return false;
return Equals(_unknownFields, other._unknownFields);
}
@ -410,6 +444,8 @@ public sealed partial class LoginResponse : pb::IMessage<LoginResponse>
int hash = 1;
if (Message.Length != 0) hash ^= Message.GetHashCode();
if (Code != 0) hash ^= Code.GetHashCode();
if (Date.Length != 0) hash ^= Date.GetHashCode();
if (data_ != null) hash ^= Data.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
@ -436,6 +472,14 @@ public sealed partial class LoginResponse : pb::IMessage<LoginResponse>
output.WriteRawTag(16);
output.WriteInt32(Code);
}
if (data_ != null) {
output.WriteRawTag(26);
output.WriteMessage(Data);
}
if (Date.Length != 0) {
output.WriteRawTag(34);
output.WriteString(Date);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
@ -454,6 +498,14 @@ public sealed partial class LoginResponse : pb::IMessage<LoginResponse>
output.WriteRawTag(16);
output.WriteInt32(Code);
}
if (data_ != null) {
output.WriteRawTag(26);
output.WriteMessage(Data);
}
if (Date.Length != 0) {
output.WriteRawTag(34);
output.WriteString(Date);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
@ -470,6 +522,12 @@ public sealed partial class LoginResponse : pb::IMessage<LoginResponse>
if (Code != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(Code);
}
if (Date.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Date);
}
if (data_ != null) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Data);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
@ -488,6 +546,15 @@ public sealed partial class LoginResponse : pb::IMessage<LoginResponse>
if (other.Code != 0) {
Code = other.Code;
}
if (other.Date.Length != 0) {
Date = other.Date;
}
if (other.data_ != null) {
if (data_ == null) {
Data = new global::PlayerJoinResponse();
}
Data.MergeFrom(other.Data);
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
@ -515,6 +582,17 @@ public sealed partial class LoginResponse : pb::IMessage<LoginResponse>
Code = input.ReadInt32();
break;
}
case 26: {
if (data_ == null) {
Data = new global::PlayerJoinResponse();
}
input.ReadMessage(Data);
break;
}
case 34: {
Date = input.ReadString();
break;
}
}
}
#endif
@ -542,6 +620,17 @@ public sealed partial class LoginResponse : pb::IMessage<LoginResponse>
Code = input.ReadInt32();
break;
}
case 26: {
if (data_ == null) {
Data = new global::PlayerJoinResponse();
}
input.ReadMessage(Data);
break;
}
case 34: {
Date = input.ReadString();
break;
}
}
}
}
@ -3260,13 +3349,13 @@ public sealed partial class RpcRoomInfoResponse : pb::IMessage<RpcRoomInfoRespon
/// <summary>Field number for the "ReserveDate" field.</summary>
public const int ReserveDateFieldNumber = 4;
private long reserveDate_;
private string reserveDate_ = "";
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public long ReserveDate {
public string ReserveDate {
get { return reserveDate_; }
set {
reserveDate_ = value;
reserveDate_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
@ -3299,7 +3388,7 @@ public sealed partial class RpcRoomInfoResponse : pb::IMessage<RpcRoomInfoRespon
if (Id != 0L) hash ^= Id.GetHashCode();
if (TemplateId != 0L) hash ^= TemplateId.GetHashCode();
if (Status != 0L) hash ^= Status.GetHashCode();
if (ReserveDate != 0L) hash ^= ReserveDate.GetHashCode();
if (ReserveDate.Length != 0) hash ^= ReserveDate.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
@ -3330,9 +3419,9 @@ public sealed partial class RpcRoomInfoResponse : pb::IMessage<RpcRoomInfoRespon
output.WriteRawTag(24);
output.WriteInt64(Status);
}
if (ReserveDate != 0L) {
output.WriteRawTag(32);
output.WriteInt64(ReserveDate);
if (ReserveDate.Length != 0) {
output.WriteRawTag(34);
output.WriteString(ReserveDate);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
@ -3356,9 +3445,9 @@ public sealed partial class RpcRoomInfoResponse : pb::IMessage<RpcRoomInfoRespon
output.WriteRawTag(24);
output.WriteInt64(Status);
}
if (ReserveDate != 0L) {
output.WriteRawTag(32);
output.WriteInt64(ReserveDate);
if (ReserveDate.Length != 0) {
output.WriteRawTag(34);
output.WriteString(ReserveDate);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
@ -3379,8 +3468,8 @@ public sealed partial class RpcRoomInfoResponse : pb::IMessage<RpcRoomInfoRespon
if (Status != 0L) {
size += 1 + pb::CodedOutputStream.ComputeInt64Size(Status);
}
if (ReserveDate != 0L) {
size += 1 + pb::CodedOutputStream.ComputeInt64Size(ReserveDate);
if (ReserveDate.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(ReserveDate);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
@ -3403,7 +3492,7 @@ public sealed partial class RpcRoomInfoResponse : pb::IMessage<RpcRoomInfoRespon
if (other.Status != 0L) {
Status = other.Status;
}
if (other.ReserveDate != 0L) {
if (other.ReserveDate.Length != 0) {
ReserveDate = other.ReserveDate;
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
@ -3437,8 +3526,8 @@ public sealed partial class RpcRoomInfoResponse : pb::IMessage<RpcRoomInfoRespon
Status = input.ReadInt64();
break;
}
case 32: {
ReserveDate = input.ReadInt64();
case 34: {
ReserveDate = input.ReadString();
break;
}
}
@ -3472,8 +3561,8 @@ public sealed partial class RpcRoomInfoResponse : pb::IMessage<RpcRoomInfoRespon
Status = input.ReadInt64();
break;
}
case 32: {
ReserveDate = input.ReadInt64();
case 34: {
ReserveDate = input.ReadString();
break;
}
}
@ -3947,6 +4036,12 @@ public sealed partial class UserTemplateResponse : pb::IMessage<UserTemplateResp
roleId_ = other.roleId_;
birthAreaId_ = other.birthAreaId_;
chargeAreaId_ = other.chargeAreaId_;
x_ = other.x_;
y_ = other.y_;
z_ = other.z_;
moveSpeedFirst_ = other.moveSpeedFirst_;
moveSpeedSecond_ = other.moveSpeedSecond_;
moveSpeedThird_ = other.moveSpeedThird_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
@ -4040,6 +4135,78 @@ public sealed partial class UserTemplateResponse : pb::IMessage<UserTemplateResp
}
}
/// <summary>Field number for the "X" field.</summary>
public const int XFieldNumber = 8;
private float x_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public float X {
get { return x_; }
set {
x_ = value;
}
}
/// <summary>Field number for the "Y" field.</summary>
public const int YFieldNumber = 9;
private float y_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public float Y {
get { return y_; }
set {
y_ = value;
}
}
/// <summary>Field number for the "Z" field.</summary>
public const int ZFieldNumber = 10;
private float z_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public float Z {
get { return z_; }
set {
z_ = value;
}
}
/// <summary>Field number for the "MoveSpeedFirst" field.</summary>
public const int MoveSpeedFirstFieldNumber = 11;
private long moveSpeedFirst_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public long MoveSpeedFirst {
get { return moveSpeedFirst_; }
set {
moveSpeedFirst_ = value;
}
}
/// <summary>Field number for the "MoveSpeedSecond" field.</summary>
public const int MoveSpeedSecondFieldNumber = 12;
private long moveSpeedSecond_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public long MoveSpeedSecond {
get { return moveSpeedSecond_; }
set {
moveSpeedSecond_ = value;
}
}
/// <summary>Field number for the "MoveSpeedThird" field.</summary>
public const int MoveSpeedThirdFieldNumber = 13;
private long moveSpeedThird_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public long MoveSpeedThird {
get { return moveSpeedThird_; }
set {
moveSpeedThird_ = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
@ -4062,6 +4229,12 @@ public sealed partial class UserTemplateResponse : pb::IMessage<UserTemplateResp
if (RoleId != other.RoleId) return false;
if (BirthAreaId != other.BirthAreaId) return false;
if (ChargeAreaId != other.ChargeAreaId) return false;
if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(X, other.X)) return false;
if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Y, other.Y)) return false;
if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Z, other.Z)) return false;
if (MoveSpeedFirst != other.MoveSpeedFirst) return false;
if (MoveSpeedSecond != other.MoveSpeedSecond) return false;
if (MoveSpeedThird != other.MoveSpeedThird) return false;
return Equals(_unknownFields, other._unknownFields);
}
@ -4076,6 +4249,12 @@ public sealed partial class UserTemplateResponse : pb::IMessage<UserTemplateResp
if (RoleId != 0L) hash ^= RoleId.GetHashCode();
if (BirthAreaId != 0L) hash ^= BirthAreaId.GetHashCode();
if (ChargeAreaId != 0L) hash ^= ChargeAreaId.GetHashCode();
if (X != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(X);
if (Y != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Y);
if (Z != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Z);
if (MoveSpeedFirst != 0L) hash ^= MoveSpeedFirst.GetHashCode();
if (MoveSpeedSecond != 0L) hash ^= MoveSpeedSecond.GetHashCode();
if (MoveSpeedThird != 0L) hash ^= MoveSpeedThird.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
@ -4122,6 +4301,30 @@ public sealed partial class UserTemplateResponse : pb::IMessage<UserTemplateResp
output.WriteRawTag(56);
output.WriteInt64(ChargeAreaId);
}
if (X != 0F) {
output.WriteRawTag(69);
output.WriteFloat(X);
}
if (Y != 0F) {
output.WriteRawTag(77);
output.WriteFloat(Y);
}
if (Z != 0F) {
output.WriteRawTag(85);
output.WriteFloat(Z);
}
if (MoveSpeedFirst != 0L) {
output.WriteRawTag(88);
output.WriteInt64(MoveSpeedFirst);
}
if (MoveSpeedSecond != 0L) {
output.WriteRawTag(96);
output.WriteInt64(MoveSpeedSecond);
}
if (MoveSpeedThird != 0L) {
output.WriteRawTag(104);
output.WriteInt64(MoveSpeedThird);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
@ -4160,6 +4363,30 @@ public sealed partial class UserTemplateResponse : pb::IMessage<UserTemplateResp
output.WriteRawTag(56);
output.WriteInt64(ChargeAreaId);
}
if (X != 0F) {
output.WriteRawTag(69);
output.WriteFloat(X);
}
if (Y != 0F) {
output.WriteRawTag(77);
output.WriteFloat(Y);
}
if (Z != 0F) {
output.WriteRawTag(85);
output.WriteFloat(Z);
}
if (MoveSpeedFirst != 0L) {
output.WriteRawTag(88);
output.WriteInt64(MoveSpeedFirst);
}
if (MoveSpeedSecond != 0L) {
output.WriteRawTag(96);
output.WriteInt64(MoveSpeedSecond);
}
if (MoveSpeedThird != 0L) {
output.WriteRawTag(104);
output.WriteInt64(MoveSpeedThird);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
@ -4191,6 +4418,24 @@ public sealed partial class UserTemplateResponse : pb::IMessage<UserTemplateResp
if (ChargeAreaId != 0L) {
size += 1 + pb::CodedOutputStream.ComputeInt64Size(ChargeAreaId);
}
if (X != 0F) {
size += 1 + 4;
}
if (Y != 0F) {
size += 1 + 4;
}
if (Z != 0F) {
size += 1 + 4;
}
if (MoveSpeedFirst != 0L) {
size += 1 + pb::CodedOutputStream.ComputeInt64Size(MoveSpeedFirst);
}
if (MoveSpeedSecond != 0L) {
size += 1 + pb::CodedOutputStream.ComputeInt64Size(MoveSpeedSecond);
}
if (MoveSpeedThird != 0L) {
size += 1 + pb::CodedOutputStream.ComputeInt64Size(MoveSpeedThird);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
@ -4224,6 +4469,24 @@ public sealed partial class UserTemplateResponse : pb::IMessage<UserTemplateResp
if (other.ChargeAreaId != 0L) {
ChargeAreaId = other.ChargeAreaId;
}
if (other.X != 0F) {
X = other.X;
}
if (other.Y != 0F) {
Y = other.Y;
}
if (other.Z != 0F) {
Z = other.Z;
}
if (other.MoveSpeedFirst != 0L) {
MoveSpeedFirst = other.MoveSpeedFirst;
}
if (other.MoveSpeedSecond != 0L) {
MoveSpeedSecond = other.MoveSpeedSecond;
}
if (other.MoveSpeedThird != 0L) {
MoveSpeedThird = other.MoveSpeedThird;
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
@ -4271,6 +4534,30 @@ public sealed partial class UserTemplateResponse : pb::IMessage<UserTemplateResp
ChargeAreaId = input.ReadInt64();
break;
}
case 69: {
X = input.ReadFloat();
break;
}
case 77: {
Y = input.ReadFloat();
break;
}
case 85: {
Z = input.ReadFloat();
break;
}
case 88: {
MoveSpeedFirst = input.ReadInt64();
break;
}
case 96: {
MoveSpeedSecond = input.ReadInt64();
break;
}
case 104: {
MoveSpeedThird = input.ReadInt64();
break;
}
}
}
#endif
@ -4318,6 +4605,30 @@ public sealed partial class UserTemplateResponse : pb::IMessage<UserTemplateResp
ChargeAreaId = input.ReadInt64();
break;
}
case 69: {
X = input.ReadFloat();
break;
}
case 77: {
Y = input.ReadFloat();
break;
}
case 85: {
Z = input.ReadFloat();
break;
}
case 88: {
MoveSpeedFirst = input.ReadInt64();
break;
}
case 96: {
MoveSpeedSecond = input.ReadInt64();
break;
}
case 104: {
MoveSpeedThird = input.ReadInt64();
break;
}
}
}
}

View File

@ -22,35 +22,41 @@ public static partial class JoinReflection {
static JoinReflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"Cgpqb2luLnByb3RvIp8CChBVc2VySm9pblJlc3BvbnNlEg4KBnVzZXJJZBgB",
"IAEoAxIQCghuaWNrTmFtZRgCIAEoCRIQCghyb2xlTmFtZRgDIAEoCRIOCgZy",
"b29tSWQYBCABKAkSDgoGb25saW5lGAUgASgIEhMKC21lc3NhZ2VUeXBlGAYg",
"ASgFEgsKA2NtZBgHIAEoCRIYChBpbmNpZGVudFBvc2l0aW9uGAggASgJEhIK",
"CmZpcmVSYWRpdXMYCSABKAISEQoJZmlyZVZhbHVlGAogASgFEicKDHRhc2tS",
"ZXNwb25zZRgLIAEoCzIRLlRhc2tJbmZvUmVzcG9uc2USKwoOb2JqZWN0UmVz",
"cG9uc2UYDCABKAsyEy5PYmplY3RJbmZvUmVzcG9uc2UiNwoQUm9vbVVzZXJS",
"ZXNwb25zZRIjCgh1c2VyTGlzdBgBIAMoCzIRLlVzZXJKb2luUmVzcG9uc2Ui",
"tgIKEFRhc2tJbmZvUmVzcG9uc2USDgoGVGFza0lkGAEgASgJEg4KBlN0YXR1",
"cxgCIAEoCRIOCgZSb29tSWQYAyABKAkSCQoBWBgEIAEoAhIJCgFZGAUgASgC",
"EgkKAVoYBiABKAISDAoEVHlwZRgHIAEoCRIRCglUaW1lTGltaXQYCCABKAMS",
"DAoERGVzYxgJIAEoCRIPCgdUcmlnZ2VyGAogASgJEhEKCU5leHRUYXNrcxgL",
"IAEoCRISCgpUYXJnZXRUeXBlGAwgASgJEg4KBlJld2FyZBgNIAEoCRIMCgRO",
"b3RlGA4gASgJEhIKCkNyZWF0ZVRpbWUYDyABKAkSEgoKVXBkYXRlVGltZRgQ",
"IAEoCRIQCghUb1VzZXJJZBgRIAEoCRISCgpCYXNlVGFza0lkGBIgASgJIq8D",
"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BgLIAEoCRIQCghUYWtlVGltZRgMIAEoAxITCgtOZWVkUGxheWVy",
"cxgNIAEoCRISCgpUYXNrU3RhdHVzGA4gASgJEhIKClNlbGVjdExpc3QYDyAB",
"KAkSDQoFT25PZmYYECABKAMSDgoGU3RhdHVzGBEgASgJEhEKCVJlc0NoYW5n",
"ZRgSIAEoCRIXCg9QYXJhbGxlbENvbnRyb2wYEyABKAMSEgoKRXh0cmFWYWx1",
"ZRgUIAEoCRIPCgdVc2VySWRzGBUgASgJEhIKCkNyZWF0ZVRpbWUYFiABKAkS",
"EgoKVXBkYXRlVGltZRgXIAEoCUIHWgUuLztwYmIGcHJvdG8z"));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { },
new pbr::FileDescriptor[] { global::MoveReflection.Descriptor, global::HallReflection.Descriptor, },
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::UserJoinResponse), global::UserJoinResponse.Parser, new[]{ "UserId", "NickName", "RoleName", "RoomId", "Online", "MessageType", "Cmd", "IncidentPosition", "FireRadius", "FireValue", "TaskResponse", "ObjectResponse" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::UserJoinResponse), global::UserJoinResponse.Parser, new[]{ "UserId", "NickName", "RoleName", "RoomId", "Online", "MessageType", "Cmd", "IncidentPosition", "FireRadius", "FireValue", "TaskResponse", "ObjectResponse", "NpcResponse", "VoiceResponse", "PlayerResponse" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::VoiceTransportResponse), global::VoiceTransportResponse.Parser, new[]{ "AppId", "ChannelName" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::RoomUserResponse), global::RoomUserResponse.Parser, new[]{ "UserList" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::TaskInfoResponse), global::TaskInfoResponse.Parser, new[]{ "TaskId", "Status", "RoomId", "X", "Y", "Z", "Type", "TimeLimit", "Desc", "Trigger", "NextTasks", "TargetType", "Reward", "Note", "CreateTime", "UpdateTime", "ToUserId", "BaseTaskId" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::ObjectInfoResponse), global::ObjectInfoResponse.Parser, new[]{ "RoomId", "Id", "ObjectId", "Note", "Type", "Name", "NameShowOffset", "ShowRadius", "Icon", "Role", "ItemDepend", "TakeTime", "NeedPlayers", "TaskStatus", "SelectList", "OnOff", "Status", "ResChange", "ParallelControl", "ExtraValue", "UserIds", "CreateTime", "UpdateTime" }, null, null, null, null)
@ -107,6 +113,9 @@ public sealed partial class UserJoinResponse : pb::IMessage<UserJoinResponse>
fireValue_ = other.fireValue_;
taskResponse_ = other.taskResponse_ != null ? other.taskResponse_.Clone() : null;
objectResponse_ = other.objectResponse_ != null ? other.objectResponse_.Clone() : null;
npcResponse_ = other.npcResponse_ != null ? other.npcResponse_.Clone() : null;
voiceResponse_ = other.voiceResponse_ != null ? other.voiceResponse_.Clone() : null;
playerResponse_ = other.playerResponse_ != null ? other.playerResponse_.Clone() : null;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
@ -195,7 +204,7 @@ public sealed partial class UserJoinResponse : pb::IMessage<UserJoinResponse>
public const int MessageTypeFieldNumber = 6;
private int messageType_;
/// <summary>
///事件状态 1 用户上线 2用户下线 3 用户加入房间 4 事故发生 5 火势 6 任务 7 对象操作
///事件状态 1 用户上线 2用户下线 3 用户加入房间 4 事故发生 5 火势 6 任务 7 对象操作 8 NPC 属性更新 9 语音信息 10 用户信息更新 11 房间开始
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
@ -296,6 +305,51 @@ public sealed partial class UserJoinResponse : pb::IMessage<UserJoinResponse>
}
}
/// <summary>Field number for the "npcResponse" field.</summary>
public const int NpcResponseFieldNumber = 13;
private global::NpcInfoResponse npcResponse_;
/// <summary>
///npc信息
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::NpcInfoResponse NpcResponse {
get { return npcResponse_; }
set {
npcResponse_ = value;
}
}
/// <summary>Field number for the "voiceResponse" field.</summary>
public const int VoiceResponseFieldNumber = 14;
private global::VoiceTransportResponse voiceResponse_;
/// <summary>
///语音信息
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::VoiceTransportResponse VoiceResponse {
get { return voiceResponse_; }
set {
voiceResponse_ = value;
}
}
/// <summary>Field number for the "playerResponse" field.</summary>
public const int PlayerResponseFieldNumber = 15;
private global::PlayerJoinResponse playerResponse_;
/// <summary>
///玩家信息
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::PlayerJoinResponse PlayerResponse {
get { return playerResponse_; }
set {
playerResponse_ = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
@ -323,6 +377,9 @@ public sealed partial class UserJoinResponse : pb::IMessage<UserJoinResponse>
if (FireValue != other.FireValue) return false;
if (!object.Equals(TaskResponse, other.TaskResponse)) return false;
if (!object.Equals(ObjectResponse, other.ObjectResponse)) return false;
if (!object.Equals(NpcResponse, other.NpcResponse)) return false;
if (!object.Equals(VoiceResponse, other.VoiceResponse)) return false;
if (!object.Equals(PlayerResponse, other.PlayerResponse)) return false;
return Equals(_unknownFields, other._unknownFields);
}
@ -342,6 +399,9 @@ public sealed partial class UserJoinResponse : pb::IMessage<UserJoinResponse>
if (FireValue != 0) hash ^= FireValue.GetHashCode();
if (taskResponse_ != null) hash ^= TaskResponse.GetHashCode();
if (objectResponse_ != null) hash ^= ObjectResponse.GetHashCode();
if (npcResponse_ != null) hash ^= NpcResponse.GetHashCode();
if (voiceResponse_ != null) hash ^= VoiceResponse.GetHashCode();
if (playerResponse_ != null) hash ^= PlayerResponse.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
@ -408,6 +468,18 @@ public sealed partial class UserJoinResponse : pb::IMessage<UserJoinResponse>
output.WriteRawTag(98);
output.WriteMessage(ObjectResponse);
}
if (npcResponse_ != null) {
output.WriteRawTag(106);
output.WriteMessage(NpcResponse);
}
if (voiceResponse_ != null) {
output.WriteRawTag(114);
output.WriteMessage(VoiceResponse);
}
if (playerResponse_ != null) {
output.WriteRawTag(122);
output.WriteMessage(PlayerResponse);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
@ -466,6 +538,18 @@ public sealed partial class UserJoinResponse : pb::IMessage<UserJoinResponse>
output.WriteRawTag(98);
output.WriteMessage(ObjectResponse);
}
if (npcResponse_ != null) {
output.WriteRawTag(106);
output.WriteMessage(NpcResponse);
}
if (voiceResponse_ != null) {
output.WriteRawTag(114);
output.WriteMessage(VoiceResponse);
}
if (playerResponse_ != null) {
output.WriteRawTag(122);
output.WriteMessage(PlayerResponse);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
@ -512,6 +596,15 @@ public sealed partial class UserJoinResponse : pb::IMessage<UserJoinResponse>
if (objectResponse_ != null) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(ObjectResponse);
}
if (npcResponse_ != null) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(NpcResponse);
}
if (voiceResponse_ != null) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(VoiceResponse);
}
if (playerResponse_ != null) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(PlayerResponse);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
@ -566,6 +659,24 @@ public sealed partial class UserJoinResponse : pb::IMessage<UserJoinResponse>
}
ObjectResponse.MergeFrom(other.ObjectResponse);
}
if (other.npcResponse_ != null) {
if (npcResponse_ == null) {
NpcResponse = new global::NpcInfoResponse();
}
NpcResponse.MergeFrom(other.NpcResponse);
}
if (other.voiceResponse_ != null) {
if (voiceResponse_ == null) {
VoiceResponse = new global::VoiceTransportResponse();
}
VoiceResponse.MergeFrom(other.VoiceResponse);
}
if (other.playerResponse_ != null) {
if (playerResponse_ == null) {
PlayerResponse = new global::PlayerJoinResponse();
}
PlayerResponse.MergeFrom(other.PlayerResponse);
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
@ -639,6 +750,27 @@ public sealed partial class UserJoinResponse : pb::IMessage<UserJoinResponse>
input.ReadMessage(ObjectResponse);
break;
}
case 106: {
if (npcResponse_ == null) {
NpcResponse = new global::NpcInfoResponse();
}
input.ReadMessage(NpcResponse);
break;
}
case 114: {
if (voiceResponse_ == null) {
VoiceResponse = new global::VoiceTransportResponse();
}
input.ReadMessage(VoiceResponse);
break;
}
case 122: {
if (playerResponse_ == null) {
PlayerResponse = new global::PlayerJoinResponse();
}
input.ReadMessage(PlayerResponse);
break;
}
}
}
#endif
@ -712,6 +844,268 @@ public sealed partial class UserJoinResponse : pb::IMessage<UserJoinResponse>
input.ReadMessage(ObjectResponse);
break;
}
case 106: {
if (npcResponse_ == null) {
NpcResponse = new global::NpcInfoResponse();
}
input.ReadMessage(NpcResponse);
break;
}
case 114: {
if (voiceResponse_ == null) {
VoiceResponse = new global::VoiceTransportResponse();
}
input.ReadMessage(VoiceResponse);
break;
}
case 122: {
if (playerResponse_ == null) {
PlayerResponse = new global::PlayerJoinResponse();
}
input.ReadMessage(PlayerResponse);
break;
}
}
}
}
#endif
}
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
public sealed partial class VoiceTransportResponse : pb::IMessage<VoiceTransportResponse>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser<VoiceTransportResponse> _parser = new pb::MessageParser<VoiceTransportResponse>(() => new VoiceTransportResponse());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser<VoiceTransportResponse> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
get { return global::JoinReflection.Descriptor.MessageTypes[1]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public VoiceTransportResponse() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public VoiceTransportResponse(VoiceTransportResponse other) : this() {
appId_ = other.appId_;
channelName_ = other.channelName_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public VoiceTransportResponse Clone() {
return new VoiceTransportResponse(this);
}
/// <summary>Field number for the "appId" field.</summary>
public const int AppIdFieldNumber = 1;
private string appId_ = "";
/// <summary>
/// 应用id
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string AppId {
get { return appId_; }
set {
appId_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// <summary>Field number for the "channelName" field.</summary>
public const int ChannelNameFieldNumber = 2;
private string channelName_ = "";
/// <summary>
/// 用户id
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string ChannelName {
get { return channelName_; }
set {
channelName_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as VoiceTransportResponse);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(VoiceTransportResponse other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (AppId != other.AppId) return false;
if (ChannelName != other.ChannelName) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override int GetHashCode() {
int hash = 1;
if (AppId.Length != 0) hash ^= AppId.GetHashCode();
if (ChannelName.Length != 0) hash ^= ChannelName.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void WriteTo(pb::CodedOutputStream output) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
output.WriteRawMessage(this);
#else
if (AppId.Length != 0) {
output.WriteRawTag(10);
output.WriteString(AppId);
}
if (ChannelName.Length != 0) {
output.WriteRawTag(18);
output.WriteString(ChannelName);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
if (AppId.Length != 0) {
output.WriteRawTag(10);
output.WriteString(AppId);
}
if (ChannelName.Length != 0) {
output.WriteRawTag(18);
output.WriteString(ChannelName);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
}
#endif
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
if (AppId.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(AppId);
}
if (ChannelName.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(ChannelName);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(VoiceTransportResponse other) {
if (other == null) {
return;
}
if (other.AppId.Length != 0) {
AppId = other.AppId;
}
if (other.ChannelName.Length != 0) {
ChannelName = other.ChannelName;
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(pb::CodedInputStream input) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
input.ReadRawMessage(this);
#else
uint tag;
while ((tag = input.ReadTag()) != 0) {
if ((tag & 7) == 4) {
// Abort on any end group tag.
return;
}
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 10: {
AppId = input.ReadString();
break;
}
case 18: {
ChannelName = input.ReadString();
break;
}
}
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
if ((tag & 7) == 4) {
// Abort on any end group tag.
return;
}
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
break;
case 10: {
AppId = input.ReadString();
break;
}
case 18: {
ChannelName = input.ReadString();
break;
}
}
}
}
@ -734,7 +1128,7 @@ public sealed partial class RoomUserResponse : pb::IMessage<RoomUserResponse>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
get { return global::JoinReflection.Descriptor.MessageTypes[1]; }
get { return global::JoinReflection.Descriptor.MessageTypes[2]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
@ -924,7 +1318,7 @@ public sealed partial class TaskInfoResponse : pb::IMessage<TaskInfoResponse>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
get { return global::JoinReflection.Descriptor.MessageTypes[2]; }
get { return global::JoinReflection.Descriptor.MessageTypes[3]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
@ -1805,7 +2199,7 @@ public sealed partial class ObjectInfoResponse : pb::IMessage<ObjectInfoResponse
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
get { return global::JoinReflection.Descriptor.MessageTypes[3]; }
get { return global::JoinReflection.Descriptor.MessageTypes[4]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]

View File

@ -22,28 +22,31 @@ public static partial class MoveReflection {
static MoveReflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"Cgptb3ZlLnByb3RvIkcKEE5wY0NyZWF0ZVJlcXVlc3QSDgoGcm9vbUlkGAEg",
"ASgJEhIKCnRlbXBsYXRlSWQYAiABKAMSDwoHc2NlbmVJZBgDIAEoCSITChFO",
"cGNDcmVhdGVSZX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GUYBSABKAUSEQoJZm9ybWF0aW9uGAYgASgFEg0KBWV2ZW50GAcg",
"ASgFImYKEk1vdmVSb29tQW9pUmVxdWVzdBIOCgZyb29tSWQYASABKAkSDgoG",
"dXNlcklkGAIgASgDEgkKAXgYAyABKAISCQoBeRgEIAEoAhIJCgF6GAUgASgC",
"Eg8KB3NjZW5lSWQYBiABKAkiFQoTTW92ZVJvb21Bb2lSZXNwb25zZSI/Cg9O",
"cGNJbmZvUmVzcG9uc2USDQoFbnBjSWQYASABKAkSDwoHaW5qdXJlZBgCIAEo",
"CBIMCgRzdG9wGAMgASgIQgdaBS4vO3BiYgZwcm90bzM="));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { },
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::NpcCreateRequest), global::NpcCreateRequest.Parser, new[]{ "RoomId", "TemplateId", "SceneId" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::NpcCreateRequest), global::NpcCreateRequest.Parser, new[]{ "RoomId", "TemplateId", "SceneId", "Mode", "SubjectId" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::NpcCreateResponse), global::NpcCreateResponse.Parser, null, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::MoveRequest), global::MoveRequest.Parser, new[]{ "RoomId", "MoveType", "SelectId" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::MoveResponse), global::MoveResponse.Parser, new[]{ "UserId", "RoomId", "MoveData" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::NpcData), global::NpcData.Parser, new[]{ "X", "Y", "Z", "UserId", "NickName", "Type", "Formation", "Event" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::MoveRoomAoiRequest), global::MoveRoomAoiRequest.Parser, new[]{ "RoomId", "UserId", "X", "Y", "Z" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::MoveRoomAoiResponse), global::MoveRoomAoiResponse.Parser, null, null, null, null, null)
new pbr::GeneratedClrTypeInfo(typeof(global::MoveRoomAoiRequest), global::MoveRoomAoiRequest.Parser, new[]{ "RoomId", "UserId", "X", "Y", "Z", "SceneId" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::MoveRoomAoiResponse), global::MoveRoomAoiResponse.Parser, null, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::NpcInfoResponse), global::NpcInfoResponse.Parser, new[]{ "NpcId", "Injured", "Stop" }, null, null, null, null)
}));
}
#endregion
@ -88,6 +91,8 @@ public sealed partial class NpcCreateRequest : pb::IMessage<NpcCreateRequest>
roomId_ = other.roomId_;
templateId_ = other.templateId_;
sceneId_ = other.sceneId_;
mode_ = other.mode_;
subjectId_ = other.subjectId_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
@ -142,6 +147,36 @@ public sealed partial class NpcCreateRequest : pb::IMessage<NpcCreateRequest>
}
}
/// <summary>Field number for the "mode" field.</summary>
public const int ModeFieldNumber = 4;
private string mode_ = "";
/// <summary>
/// 难度
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string Mode {
get { return mode_; }
set {
mode_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// <summary>Field number for the "subjectId" field.</summary>
public const int SubjectIdFieldNumber = 5;
private string subjectId_ = "";
/// <summary>
/// 训练科目
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string SubjectId {
get { return subjectId_; }
set {
subjectId_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
@ -160,6 +195,8 @@ public sealed partial class NpcCreateRequest : pb::IMessage<NpcCreateRequest>
if (RoomId != other.RoomId) return false;
if (TemplateId != other.TemplateId) return false;
if (SceneId != other.SceneId) return false;
if (Mode != other.Mode) return false;
if (SubjectId != other.SubjectId) return false;
return Equals(_unknownFields, other._unknownFields);
}
@ -170,6 +207,8 @@ public sealed partial class NpcCreateRequest : pb::IMessage<NpcCreateRequest>
if (RoomId.Length != 0) hash ^= RoomId.GetHashCode();
if (TemplateId != 0L) hash ^= TemplateId.GetHashCode();
if (SceneId.Length != 0) hash ^= SceneId.GetHashCode();
if (Mode.Length != 0) hash ^= Mode.GetHashCode();
if (SubjectId.Length != 0) hash ^= SubjectId.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
@ -200,6 +239,14 @@ public sealed partial class NpcCreateRequest : pb::IMessage<NpcCreateRequest>
output.WriteRawTag(26);
output.WriteString(SceneId);
}
if (Mode.Length != 0) {
output.WriteRawTag(34);
output.WriteString(Mode);
}
if (SubjectId.Length != 0) {
output.WriteRawTag(42);
output.WriteString(SubjectId);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
@ -222,6 +269,14 @@ public sealed partial class NpcCreateRequest : pb::IMessage<NpcCreateRequest>
output.WriteRawTag(26);
output.WriteString(SceneId);
}
if (Mode.Length != 0) {
output.WriteRawTag(34);
output.WriteString(Mode);
}
if (SubjectId.Length != 0) {
output.WriteRawTag(42);
output.WriteString(SubjectId);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
@ -241,6 +296,12 @@ public sealed partial class NpcCreateRequest : pb::IMessage<NpcCreateRequest>
if (SceneId.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(SceneId);
}
if (Mode.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Mode);
}
if (SubjectId.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(SubjectId);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
@ -262,6 +323,12 @@ public sealed partial class NpcCreateRequest : pb::IMessage<NpcCreateRequest>
if (other.SceneId.Length != 0) {
SceneId = other.SceneId;
}
if (other.Mode.Length != 0) {
Mode = other.Mode;
}
if (other.SubjectId.Length != 0) {
SubjectId = other.SubjectId;
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
@ -293,6 +360,14 @@ public sealed partial class NpcCreateRequest : pb::IMessage<NpcCreateRequest>
SceneId = input.ReadString();
break;
}
case 34: {
Mode = input.ReadString();
break;
}
case 42: {
SubjectId = input.ReadString();
break;
}
}
}
#endif
@ -324,6 +399,14 @@ public sealed partial class NpcCreateRequest : pb::IMessage<NpcCreateRequest>
SceneId = input.ReadString();
break;
}
case 34: {
Mode = input.ReadString();
break;
}
case 42: {
SubjectId = input.ReadString();
break;
}
}
}
}
@ -1555,6 +1638,7 @@ public sealed partial class MoveRoomAoiRequest : pb::IMessage<MoveRoomAoiRequest
x_ = other.x_;
y_ = other.y_;
z_ = other.z_;
sceneId_ = other.sceneId_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
@ -1639,6 +1723,21 @@ public sealed partial class MoveRoomAoiRequest : pb::IMessage<MoveRoomAoiRequest
}
}
/// <summary>Field number for the "sceneId" field.</summary>
public const int SceneIdFieldNumber = 6;
private string sceneId_ = "";
/// <summary>
/// sceneId
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string SceneId {
get { return sceneId_; }
set {
sceneId_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
@ -1659,6 +1758,7 @@ public sealed partial class MoveRoomAoiRequest : pb::IMessage<MoveRoomAoiRequest
if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(X, other.X)) return false;
if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Y, other.Y)) return false;
if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Z, other.Z)) return false;
if (SceneId != other.SceneId) return false;
return Equals(_unknownFields, other._unknownFields);
}
@ -1671,6 +1771,7 @@ public sealed partial class MoveRoomAoiRequest : pb::IMessage<MoveRoomAoiRequest
if (X != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(X);
if (Y != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Y);
if (Z != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Z);
if (SceneId.Length != 0) hash ^= SceneId.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
@ -1709,6 +1810,10 @@ public sealed partial class MoveRoomAoiRequest : pb::IMessage<MoveRoomAoiRequest
output.WriteRawTag(45);
output.WriteFloat(Z);
}
if (SceneId.Length != 0) {
output.WriteRawTag(50);
output.WriteString(SceneId);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
@ -1739,6 +1844,10 @@ public sealed partial class MoveRoomAoiRequest : pb::IMessage<MoveRoomAoiRequest
output.WriteRawTag(45);
output.WriteFloat(Z);
}
if (SceneId.Length != 0) {
output.WriteRawTag(50);
output.WriteString(SceneId);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
@ -1764,6 +1873,9 @@ public sealed partial class MoveRoomAoiRequest : pb::IMessage<MoveRoomAoiRequest
if (Z != 0F) {
size += 1 + 4;
}
if (SceneId.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(SceneId);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
@ -1791,6 +1903,9 @@ public sealed partial class MoveRoomAoiRequest : pb::IMessage<MoveRoomAoiRequest
if (other.Z != 0F) {
Z = other.Z;
}
if (other.SceneId.Length != 0) {
SceneId = other.SceneId;
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
@ -1830,6 +1945,10 @@ public sealed partial class MoveRoomAoiRequest : pb::IMessage<MoveRoomAoiRequest
Z = input.ReadFloat();
break;
}
case 50: {
SceneId = input.ReadString();
break;
}
}
}
#endif
@ -1869,6 +1988,10 @@ public sealed partial class MoveRoomAoiRequest : pb::IMessage<MoveRoomAoiRequest
Z = input.ReadFloat();
break;
}
case 50: {
SceneId = input.ReadString();
break;
}
}
}
}
@ -2037,6 +2160,287 @@ public sealed partial class MoveRoomAoiResponse : pb::IMessage<MoveRoomAoiRespon
}
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
public sealed partial class NpcInfoResponse : pb::IMessage<NpcInfoResponse>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser<NpcInfoResponse> _parser = new pb::MessageParser<NpcInfoResponse>(() => new NpcInfoResponse());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser<NpcInfoResponse> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
get { return global::MoveReflection.Descriptor.MessageTypes[7]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public NpcInfoResponse() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public NpcInfoResponse(NpcInfoResponse other) : this() {
npcId_ = other.npcId_;
injured_ = other.injured_;
stop_ = other.stop_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public NpcInfoResponse Clone() {
return new NpcInfoResponse(this);
}
/// <summary>Field number for the "npcId" field.</summary>
public const int NpcIdFieldNumber = 1;
private string npcId_ = "";
/// <summary>
/// NPC Id
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string NpcId {
get { return npcId_; }
set {
npcId_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// <summary>Field number for the "injured" field.</summary>
public const int InjuredFieldNumber = 2;
private bool injured_;
/// <summary>
/// 受伤
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Injured {
get { return injured_; }
set {
injured_ = value;
}
}
/// <summary>Field number for the "stop" field.</summary>
public const int StopFieldNumber = 3;
private bool stop_;
/// <summary>
/// 是否停止下来
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Stop {
get { return stop_; }
set {
stop_ = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as NpcInfoResponse);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(NpcInfoResponse other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (NpcId != other.NpcId) return false;
if (Injured != other.Injured) return false;
if (Stop != other.Stop) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override int GetHashCode() {
int hash = 1;
if (NpcId.Length != 0) hash ^= NpcId.GetHashCode();
if (Injured != false) hash ^= Injured.GetHashCode();
if (Stop != false) hash ^= Stop.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void WriteTo(pb::CodedOutputStream output) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
output.WriteRawMessage(this);
#else
if (NpcId.Length != 0) {
output.WriteRawTag(10);
output.WriteString(NpcId);
}
if (Injured != false) {
output.WriteRawTag(16);
output.WriteBool(Injured);
}
if (Stop != false) {
output.WriteRawTag(24);
output.WriteBool(Stop);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
if (NpcId.Length != 0) {
output.WriteRawTag(10);
output.WriteString(NpcId);
}
if (Injured != false) {
output.WriteRawTag(16);
output.WriteBool(Injured);
}
if (Stop != false) {
output.WriteRawTag(24);
output.WriteBool(Stop);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
}
#endif
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
if (NpcId.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(NpcId);
}
if (Injured != false) {
size += 1 + 1;
}
if (Stop != false) {
size += 1 + 1;
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(NpcInfoResponse other) {
if (other == null) {
return;
}
if (other.NpcId.Length != 0) {
NpcId = other.NpcId;
}
if (other.Injured != false) {
Injured = other.Injured;
}
if (other.Stop != false) {
Stop = other.Stop;
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(pb::CodedInputStream input) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
input.ReadRawMessage(this);
#else
uint tag;
while ((tag = input.ReadTag()) != 0) {
if ((tag & 7) == 4) {
// Abort on any end group tag.
return;
}
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 10: {
NpcId = input.ReadString();
break;
}
case 16: {
Injured = input.ReadBool();
break;
}
case 24: {
Stop = input.ReadBool();
break;
}
}
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
if ((tag & 7) == 4) {
// Abort on any end group tag.
return;
}
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
break;
case 10: {
NpcId = input.ReadString();
break;
}
case 16: {
Injured = input.ReadBool();
break;
}
case 24: {
Stop = input.ReadBool();
break;
}
}
}
}
#endif
}
#endregion

View File

@ -0,0 +1,594 @@
// <auto-generated>
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: npc_request.proto
// </auto-generated>
#pragma warning disable 1591, 0612, 3021, 8981
#region Designer generated code
using pb = global::Google.Protobuf;
using pbc = global::Google.Protobuf.Collections;
using pbr = global::Google.Protobuf.Reflection;
using scg = global::System.Collections.Generic;
/// <summary>Holder for reflection information generated from npc_request.proto</summary>
public static partial class NpcRequestReflection {
#region Descriptor
/// <summary>File descriptor for npc_request.proto</summary>
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
private static pbr::FileDescriptor descriptor;
static NpcRequestReflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"ChFucGNfcmVxdWVzdC5wcm90byI9CgpucGNSZXF1ZXN0Eg8KB25wY0xpc3QY",
"ASADKAkSDgoGcm9vbUlkGAIgASgJEg4KBmFjdGlvbhgDIAEoBSJACg9OcGNT",
"aG9ja1JlcXVlc3QSDQoFdmFsdWUYAiABKAkSDgoGdXNlcklkGAMgASgJEg4K",
"BlJvb21JZBgBIAEoCUIHWgUuLztwYmIGcHJvdG8z"));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { },
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::npcRequest), global::npcRequest.Parser, new[]{ "NpcList", "RoomId", "Action" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::NpcShockRequest), global::NpcShockRequest.Parser, new[]{ "Value", "UserId", "RoomId" }, null, null, null, null)
}));
}
#endregion
}
#region Messages
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
public sealed partial class npcRequest : pb::IMessage<npcRequest>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser<npcRequest> _parser = new pb::MessageParser<npcRequest>(() => new npcRequest());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser<npcRequest> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
get { return global::NpcRequestReflection.Descriptor.MessageTypes[0]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public npcRequest() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public npcRequest(npcRequest other) : this() {
npcList_ = other.npcList_.Clone();
roomId_ = other.roomId_;
action_ = other.action_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public npcRequest Clone() {
return new npcRequest(this);
}
/// <summary>Field number for the "npcList" field.</summary>
public const int NpcListFieldNumber = 1;
private static readonly pb::FieldCodec<string> _repeated_npcList_codec
= pb::FieldCodec.ForString(10);
private readonly pbc::RepeatedField<string> npcList_ = new pbc::RepeatedField<string>();
/// <summary>
/// NPC 列表Id 例如: [1,2,3,4,5,6,7,8,9]
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::RepeatedField<string> NpcList {
get { return npcList_; }
}
/// <summary>Field number for the "roomId" field.</summary>
public const int RoomIdFieldNumber = 2;
private string roomId_ = "";
/// <summary>
/// 房间id
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string RoomId {
get { return roomId_; }
set {
roomId_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// <summary>Field number for the "action" field.</summary>
public const int ActionFieldNumber = 3;
private int action_;
/// <summary>
/// 触发的行为1 进入烟雾 2 离开烟雾
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int Action {
get { return action_; }
set {
action_ = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as npcRequest);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(npcRequest other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if(!npcList_.Equals(other.npcList_)) return false;
if (RoomId != other.RoomId) return false;
if (Action != other.Action) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override int GetHashCode() {
int hash = 1;
hash ^= npcList_.GetHashCode();
if (RoomId.Length != 0) hash ^= RoomId.GetHashCode();
if (Action != 0) hash ^= Action.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void WriteTo(pb::CodedOutputStream output) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
output.WriteRawMessage(this);
#else
npcList_.WriteTo(output, _repeated_npcList_codec);
if (RoomId.Length != 0) {
output.WriteRawTag(18);
output.WriteString(RoomId);
}
if (Action != 0) {
output.WriteRawTag(24);
output.WriteInt32(Action);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
npcList_.WriteTo(ref output, _repeated_npcList_codec);
if (RoomId.Length != 0) {
output.WriteRawTag(18);
output.WriteString(RoomId);
}
if (Action != 0) {
output.WriteRawTag(24);
output.WriteInt32(Action);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
}
#endif
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
size += npcList_.CalculateSize(_repeated_npcList_codec);
if (RoomId.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(RoomId);
}
if (Action != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(Action);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(npcRequest other) {
if (other == null) {
return;
}
npcList_.Add(other.npcList_);
if (other.RoomId.Length != 0) {
RoomId = other.RoomId;
}
if (other.Action != 0) {
Action = other.Action;
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(pb::CodedInputStream input) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
input.ReadRawMessage(this);
#else
uint tag;
while ((tag = input.ReadTag()) != 0) {
if ((tag & 7) == 4) {
// Abort on any end group tag.
return;
}
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 10: {
npcList_.AddEntriesFrom(input, _repeated_npcList_codec);
break;
}
case 18: {
RoomId = input.ReadString();
break;
}
case 24: {
Action = input.ReadInt32();
break;
}
}
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
if ((tag & 7) == 4) {
// Abort on any end group tag.
return;
}
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
break;
case 10: {
npcList_.AddEntriesFrom(ref input, _repeated_npcList_codec);
break;
}
case 18: {
RoomId = input.ReadString();
break;
}
case 24: {
Action = input.ReadInt32();
break;
}
}
}
}
#endif
}
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
public sealed partial class NpcShockRequest : pb::IMessage<NpcShockRequest>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser<NpcShockRequest> _parser = new pb::MessageParser<NpcShockRequest>(() => new NpcShockRequest());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser<NpcShockRequest> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
get { return global::NpcRequestReflection.Descriptor.MessageTypes[1]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public NpcShockRequest() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public NpcShockRequest(NpcShockRequest other) : this() {
value_ = other.value_;
userId_ = other.userId_;
roomId_ = other.roomId_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public NpcShockRequest Clone() {
return new NpcShockRequest(this);
}
/// <summary>Field number for the "value" field.</summary>
public const int ValueFieldNumber = 2;
private string value_ = "";
/// <summary>
/// 选项的增加值
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string Value {
get { return value_; }
set {
value_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// <summary>Field number for the "userId" field.</summary>
public const int UserIdFieldNumber = 3;
private string userId_ = "";
/// <summary>
/// 用户id
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string UserId {
get { return userId_; }
set {
userId_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// <summary>Field number for the "RoomId" field.</summary>
public const int RoomIdFieldNumber = 1;
private string roomId_ = "";
/// <summary>
/// 房间ID
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string RoomId {
get { return roomId_; }
set {
roomId_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as NpcShockRequest);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(NpcShockRequest other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (Value != other.Value) return false;
if (UserId != other.UserId) return false;
if (RoomId != other.RoomId) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override int GetHashCode() {
int hash = 1;
if (Value.Length != 0) hash ^= Value.GetHashCode();
if (UserId.Length != 0) hash ^= UserId.GetHashCode();
if (RoomId.Length != 0) hash ^= RoomId.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void WriteTo(pb::CodedOutputStream output) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
output.WriteRawMessage(this);
#else
if (RoomId.Length != 0) {
output.WriteRawTag(10);
output.WriteString(RoomId);
}
if (Value.Length != 0) {
output.WriteRawTag(18);
output.WriteString(Value);
}
if (UserId.Length != 0) {
output.WriteRawTag(26);
output.WriteString(UserId);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
if (RoomId.Length != 0) {
output.WriteRawTag(10);
output.WriteString(RoomId);
}
if (Value.Length != 0) {
output.WriteRawTag(18);
output.WriteString(Value);
}
if (UserId.Length != 0) {
output.WriteRawTag(26);
output.WriteString(UserId);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
}
#endif
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
if (Value.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Value);
}
if (UserId.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(UserId);
}
if (RoomId.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(RoomId);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(NpcShockRequest other) {
if (other == null) {
return;
}
if (other.Value.Length != 0) {
Value = other.Value;
}
if (other.UserId.Length != 0) {
UserId = other.UserId;
}
if (other.RoomId.Length != 0) {
RoomId = other.RoomId;
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(pb::CodedInputStream input) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
input.ReadRawMessage(this);
#else
uint tag;
while ((tag = input.ReadTag()) != 0) {
if ((tag & 7) == 4) {
// Abort on any end group tag.
return;
}
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 10: {
RoomId = input.ReadString();
break;
}
case 18: {
Value = input.ReadString();
break;
}
case 26: {
UserId = input.ReadString();
break;
}
}
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
if ((tag & 7) == 4) {
// Abort on any end group tag.
return;
}
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
break;
case 10: {
RoomId = input.ReadString();
break;
}
case 18: {
Value = input.ReadString();
break;
}
case 26: {
UserId = input.ReadString();
break;
}
}
}
}
#endif
}
#endregion
#endregion Designer generated code

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 6249125b6bd7a964aa825c041b9cab82
guid: 271f1c208dd510142be4268127fc6dbc
MonoImporter:
externalObjects: {}
serializedVersion: 2

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 9b2ff411b5e682c439d271893fe57cf2
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -22,24 +22,25 @@ public static partial class PropReflection {
static PropReflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"Cgpwcm9wLnByb3RvIlMKC1Byb3BSZXF1ZXN0Eg4KBnByb3BJZBgBIAEoBRIO",
"Cgpwcm9wLnByb3RvImMKC1Byb3BSZXF1ZXN0Eg4KBnByb3BJZBgBIAEoBRIO",
"CgZhY3Rpb24YAiABKAUSFAoMcHJvcFNlcnZlcklkGAMgASgJEg4KBnJvb21J",
"ZBgEIAEoCSJhCgxQcm9wUmVzcG9uc2USDgoGcHJvcElkGAEgASgFEhQKDHBy",
"b3BTZXJ2ZXJJZBgFIAEoCRIMCgRuYW1lGAIgASgJEgwKBGNvZGUYAyABKAUS",
"DwoHbWVzc2FnZRgEIAEoCSIeChBQcm9wTW9kZWxSZXF1ZXN0EgoKAmlkGAEg",
"ASgFIvYCChFQcm9wTW9kZWxSZXNwb25zZRIKCgJpZBgBIAEoCRIQCghjYXRl",
"Z29yeRgCIAEoCRIMCgROb3Rl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SDAoEVXNlZBgQIAEoCBIOCgZV",
"c2VySWQYESABKAkSDgoGUm9vbUlkGBIgASgJEhAKCFRvdGFsTnVtGBMgASgF",
"Eg8KB1Jlc3ROdW0YFCABKAUSEQoJQXR0cmlidXRlGBUgASgJQgdaBS4vO3Bi",
"YgZwcm90bzM="));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { },
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::PropRequest), global::PropRequest.Parser, new[]{ "PropId", "Action", "PropServerId", "RoomId" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::PropRequest), global::PropRequest.Parser, new[]{ "PropId", "Action", "PropServerId", "RoomId", "UserId" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::PropResponse), global::PropResponse.Parser, new[]{ "PropId", "PropServerId", "Name", "Code", "Message" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::PropModelRequest), global::PropModelRequest.Parser, new[]{ "Id" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::PropModelResponse), global::PropModelResponse.Parser, new[]{ "Id", "Category", "Note", "Name", "Weight", "Scene", "Icon", "ResPath", "ConsumableType", "Durations", "IsPickup", "Num", "Calculation", "LossTime", "PropServerId", "Used", "UserId", "RoomId", "TotalNum", "RestNum", "Attribute" }, null, null, null, null)
@ -88,6 +89,7 @@ public sealed partial class PropRequest : pb::IMessage<PropRequest>
action_ = other.action_;
propServerId_ = other.propServerId_;
roomId_ = other.roomId_;
userId_ = other.userId_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
@ -154,6 +156,21 @@ public sealed partial class PropRequest : pb::IMessage<PropRequest>
}
}
/// <summary>Field number for the "userId" field.</summary>
public const int UserIdFieldNumber = 5;
private string userId_ = "";
/// <summary>
/// 用户ID
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string UserId {
get { return userId_; }
set {
userId_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
@ -173,6 +190,7 @@ public sealed partial class PropRequest : pb::IMessage<PropRequest>
if (Action != other.Action) return false;
if (PropServerId != other.PropServerId) return false;
if (RoomId != other.RoomId) return false;
if (UserId != other.UserId) return false;
return Equals(_unknownFields, other._unknownFields);
}
@ -184,6 +202,7 @@ public sealed partial class PropRequest : pb::IMessage<PropRequest>
if (Action != 0) hash ^= Action.GetHashCode();
if (PropServerId.Length != 0) hash ^= PropServerId.GetHashCode();
if (RoomId.Length != 0) hash ^= RoomId.GetHashCode();
if (UserId.Length != 0) hash ^= UserId.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
@ -218,6 +237,10 @@ public sealed partial class PropRequest : pb::IMessage<PropRequest>
output.WriteRawTag(34);
output.WriteString(RoomId);
}
if (UserId.Length != 0) {
output.WriteRawTag(42);
output.WriteString(UserId);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
@ -244,6 +267,10 @@ public sealed partial class PropRequest : pb::IMessage<PropRequest>
output.WriteRawTag(34);
output.WriteString(RoomId);
}
if (UserId.Length != 0) {
output.WriteRawTag(42);
output.WriteString(UserId);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
@ -266,6 +293,9 @@ public sealed partial class PropRequest : pb::IMessage<PropRequest>
if (RoomId.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(RoomId);
}
if (UserId.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(UserId);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
@ -290,6 +320,9 @@ public sealed partial class PropRequest : pb::IMessage<PropRequest>
if (other.RoomId.Length != 0) {
RoomId = other.RoomId;
}
if (other.UserId.Length != 0) {
UserId = other.UserId;
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
@ -325,6 +358,10 @@ public sealed partial class PropRequest : pb::IMessage<PropRequest>
RoomId = input.ReadString();
break;
}
case 42: {
UserId = input.ReadString();
break;
}
}
}
#endif
@ -360,6 +397,10 @@ public sealed partial class PropRequest : pb::IMessage<PropRequest>
RoomId = input.ReadString();
break;
}
case 42: {
UserId = input.ReadString();
break;
}
}
}
}

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 66d3975862e2e444bac5aee094c9f89c
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

File diff suppressed because it is too large Load Diff

View File

@ -24,18 +24,18 @@ public static partial class UserReflection {
string.Concat(
"Cgp1c2VyLnByb3RvIiQKElVzZXJPZmZsaW5lUmVxdWVzdBIOCgZ1c2VySWQY",
"ASABKAkiJQoTVXNlck9mZmxpbmVSZXNwb25zZRIOCgZ1c2VySWQYASABKAki",
"IQoPVXNlclJvbGVSZXF1ZXN0Eg4KBnJvbGVJZBgBIAEoBSKCAQoQVXNlclJv",
"IQoPVXNlclJvbGVSZXF1ZXN0Eg4KBnJvbGVJZBgBIAEoBSKRAQoQVXNlclJv",
"bGVSZXNwb25zZRIOCgZyb2xlSWQYASABKAUSEAoIcm9sZU5hbWUYAiABKAkS",
"EgoKYWN0aW9uTW9kZRgDIAEoBRINCgVncm91cBgEIAEoBRITCgtncm91cExl",
"YWRlchgFIAEoBRIUCgxpc0xlYWRpbmdOUEMYBiABKAVCB1oFLi87cGJiBnBy",
"b3RvMw=="));
"YWRlchgFIAEoBRIUCgxpc0xlYWRpbmdOUEMYBiABKAUSDQoFc3RhdHMYByAB",
"KAlCB1oFLi87cGJiBnByb3RvMw=="));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { },
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::UserOfflineRequest), global::UserOfflineRequest.Parser, new[]{ "UserId" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::UserOfflineResponse), global::UserOfflineResponse.Parser, new[]{ "UserId" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::UserRoleRequest), global::UserRoleRequest.Parser, new[]{ "RoleId" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::UserRoleResponse), global::UserRoleResponse.Parser, new[]{ "RoleId", "RoleName", "ActionMode", "Group", "GroupLeader", "IsLeadingNPC" }, null, null, null, null)
new pbr::GeneratedClrTypeInfo(typeof(global::UserRoleResponse), global::UserRoleResponse.Parser, new[]{ "RoleId", "RoleName", "ActionMode", "Group", "GroupLeader", "IsLeadingNPC", "Stats" }, null, null, null, null)
}));
}
#endregion
@ -683,6 +683,7 @@ public sealed partial class UserRoleResponse : pb::IMessage<UserRoleResponse>
group_ = other.group_;
groupLeader_ = other.groupLeader_;
isLeadingNPC_ = other.isLeadingNPC_;
stats_ = other.stats_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
@ -764,6 +765,18 @@ public sealed partial class UserRoleResponse : pb::IMessage<UserRoleResponse>
}
}
/// <summary>Field number for the "stats" field.</summary>
public const int StatsFieldNumber = 7;
private string stats_ = "";
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string Stats {
get { return stats_; }
set {
stats_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
@ -785,6 +798,7 @@ public sealed partial class UserRoleResponse : pb::IMessage<UserRoleResponse>
if (Group != other.Group) return false;
if (GroupLeader != other.GroupLeader) return false;
if (IsLeadingNPC != other.IsLeadingNPC) return false;
if (Stats != other.Stats) return false;
return Equals(_unknownFields, other._unknownFields);
}
@ -798,6 +812,7 @@ public sealed partial class UserRoleResponse : pb::IMessage<UserRoleResponse>
if (Group != 0) hash ^= Group.GetHashCode();
if (GroupLeader != 0) hash ^= GroupLeader.GetHashCode();
if (IsLeadingNPC != 0) hash ^= IsLeadingNPC.GetHashCode();
if (Stats.Length != 0) hash ^= Stats.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
@ -840,6 +855,10 @@ public sealed partial class UserRoleResponse : pb::IMessage<UserRoleResponse>
output.WriteRawTag(48);
output.WriteInt32(IsLeadingNPC);
}
if (Stats.Length != 0) {
output.WriteRawTag(58);
output.WriteString(Stats);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
@ -874,6 +893,10 @@ public sealed partial class UserRoleResponse : pb::IMessage<UserRoleResponse>
output.WriteRawTag(48);
output.WriteInt32(IsLeadingNPC);
}
if (Stats.Length != 0) {
output.WriteRawTag(58);
output.WriteString(Stats);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
@ -902,6 +925,9 @@ public sealed partial class UserRoleResponse : pb::IMessage<UserRoleResponse>
if (IsLeadingNPC != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(IsLeadingNPC);
}
if (Stats.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Stats);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
@ -932,6 +958,9 @@ public sealed partial class UserRoleResponse : pb::IMessage<UserRoleResponse>
if (other.IsLeadingNPC != 0) {
IsLeadingNPC = other.IsLeadingNPC;
}
if (other.Stats.Length != 0) {
Stats = other.Stats;
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
@ -975,6 +1004,10 @@ public sealed partial class UserRoleResponse : pb::IMessage<UserRoleResponse>
IsLeadingNPC = input.ReadInt32();
break;
}
case 58: {
Stats = input.ReadString();
break;
}
}
}
#endif
@ -1018,6 +1051,10 @@ public sealed partial class UserRoleResponse : pb::IMessage<UserRoleResponse>
IsLeadingNPC = input.ReadInt32();
break;
}
case 58: {
Stats = input.ReadString();
break;
}
}
}
}

View File

@ -0,0 +1,807 @@
// <auto-generated>
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: voice.proto
// </auto-generated>
#pragma warning disable 1591, 0612, 3021, 8981
#region Designer generated code
using pb = global::Google.Protobuf;
using pbc = global::Google.Protobuf.Collections;
using pbr = global::Google.Protobuf.Reflection;
using scg = global::System.Collections.Generic;
/// <summary>Holder for reflection information generated from voice.proto</summary>
public static partial class VoiceReflection {
#region Descriptor
/// <summary>File descriptor for voice.proto</summary>
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
private static pbr::FileDescriptor descriptor;
static VoiceReflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"Cgt2b2ljZS5wcm90byJjCgxWb2ljZVJlcXVlc3QSCwoDVWlkGAEgASgNEhMK",
"C0NoYW5uZWxOYW1lGAIgASgJEhMKC0NoYW5uZWxUeXBlGAUgASgJEg4KBnJv",
"b21JZBgIIAEoCRIMCgRyb2xlGAYgASgJIncKDVZvaWNlUmVzcG9uc2USCwoD",
"VWlkGAEgASgNEhMKC0NoYW5uZWxOYW1lGAIgASgJEhEKCUNoYW5uZWxJZBgD",
"IAEoCRINCgVUb2tlbhgEIAEoCRITCgtDaGFubmVsVHlwZRgFIAEoCRINCgVh",
"cHBJZBgHIAEoCUIHWgUuLztwYmIGcHJvdG8z"));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { },
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::VoiceRequest), global::VoiceRequest.Parser, new[]{ "Uid", "ChannelName", "ChannelType", "RoomId", "Role" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::VoiceResponse), global::VoiceResponse.Parser, new[]{ "Uid", "ChannelName", "ChannelId", "Token", "ChannelType", "AppId" }, null, null, null, null)
}));
}
#endregion
}
#region Messages
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
public sealed partial class VoiceRequest : pb::IMessage<VoiceRequest>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser<VoiceRequest> _parser = new pb::MessageParser<VoiceRequest>(() => new VoiceRequest());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser<VoiceRequest> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
get { return global::VoiceReflection.Descriptor.MessageTypes[0]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public VoiceRequest() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public VoiceRequest(VoiceRequest other) : this() {
uid_ = other.uid_;
channelName_ = other.channelName_;
channelType_ = other.channelType_;
roomId_ = other.roomId_;
role_ = other.role_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public VoiceRequest Clone() {
return new VoiceRequest(this);
}
/// <summary>Field number for the "Uid" field.</summary>
public const int UidFieldNumber = 1;
private uint uid_;
/// <summary>
/// 用户id
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public uint Uid {
get { return uid_; }
set {
uid_ = value;
}
}
/// <summary>Field number for the "ChannelName" field.</summary>
public const int ChannelNameFieldNumber = 2;
private string channelName_ = "";
/// <summary>
/// 频道名称
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string ChannelName {
get { return channelName_; }
set {
channelName_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// <summary>Field number for the "ChannelType" field.</summary>
public const int ChannelTypeFieldNumber = 5;
private string channelType_ = "";
/// <summary>
/// 频道类型
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string ChannelType {
get { return channelType_; }
set {
channelType_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// <summary>Field number for the "roomId" field.</summary>
public const int RoomIdFieldNumber = 8;
private string roomId_ = "";
/// <summary>
/// 游戏房间id
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string RoomId {
get { return roomId_; }
set {
roomId_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// <summary>Field number for the "role" field.</summary>
public const int RoleFieldNumber = 6;
private string role_ = "";
/// <summary>
/// 需要通知的角色 例如1,2,3,4
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string Role {
get { return role_; }
set {
role_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as VoiceRequest);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(VoiceRequest other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (Uid != other.Uid) return false;
if (ChannelName != other.ChannelName) return false;
if (ChannelType != other.ChannelType) return false;
if (RoomId != other.RoomId) return false;
if (Role != other.Role) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override int GetHashCode() {
int hash = 1;
if (Uid != 0) hash ^= Uid.GetHashCode();
if (ChannelName.Length != 0) hash ^= ChannelName.GetHashCode();
if (ChannelType.Length != 0) hash ^= ChannelType.GetHashCode();
if (RoomId.Length != 0) hash ^= RoomId.GetHashCode();
if (Role.Length != 0) hash ^= Role.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void WriteTo(pb::CodedOutputStream output) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
output.WriteRawMessage(this);
#else
if (Uid != 0) {
output.WriteRawTag(8);
output.WriteUInt32(Uid);
}
if (ChannelName.Length != 0) {
output.WriteRawTag(18);
output.WriteString(ChannelName);
}
if (ChannelType.Length != 0) {
output.WriteRawTag(42);
output.WriteString(ChannelType);
}
if (Role.Length != 0) {
output.WriteRawTag(50);
output.WriteString(Role);
}
if (RoomId.Length != 0) {
output.WriteRawTag(66);
output.WriteString(RoomId);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
if (Uid != 0) {
output.WriteRawTag(8);
output.WriteUInt32(Uid);
}
if (ChannelName.Length != 0) {
output.WriteRawTag(18);
output.WriteString(ChannelName);
}
if (ChannelType.Length != 0) {
output.WriteRawTag(42);
output.WriteString(ChannelType);
}
if (Role.Length != 0) {
output.WriteRawTag(50);
output.WriteString(Role);
}
if (RoomId.Length != 0) {
output.WriteRawTag(66);
output.WriteString(RoomId);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
}
#endif
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
if (Uid != 0) {
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Uid);
}
if (ChannelName.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(ChannelName);
}
if (ChannelType.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(ChannelType);
}
if (RoomId.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(RoomId);
}
if (Role.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Role);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(VoiceRequest other) {
if (other == null) {
return;
}
if (other.Uid != 0) {
Uid = other.Uid;
}
if (other.ChannelName.Length != 0) {
ChannelName = other.ChannelName;
}
if (other.ChannelType.Length != 0) {
ChannelType = other.ChannelType;
}
if (other.RoomId.Length != 0) {
RoomId = other.RoomId;
}
if (other.Role.Length != 0) {
Role = other.Role;
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(pb::CodedInputStream input) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
input.ReadRawMessage(this);
#else
uint tag;
while ((tag = input.ReadTag()) != 0) {
if ((tag & 7) == 4) {
// Abort on any end group tag.
return;
}
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 8: {
Uid = input.ReadUInt32();
break;
}
case 18: {
ChannelName = input.ReadString();
break;
}
case 42: {
ChannelType = input.ReadString();
break;
}
case 50: {
Role = input.ReadString();
break;
}
case 66: {
RoomId = input.ReadString();
break;
}
}
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
if ((tag & 7) == 4) {
// Abort on any end group tag.
return;
}
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
break;
case 8: {
Uid = input.ReadUInt32();
break;
}
case 18: {
ChannelName = input.ReadString();
break;
}
case 42: {
ChannelType = input.ReadString();
break;
}
case 50: {
Role = input.ReadString();
break;
}
case 66: {
RoomId = input.ReadString();
break;
}
}
}
}
#endif
}
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
public sealed partial class VoiceResponse : pb::IMessage<VoiceResponse>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser<VoiceResponse> _parser = new pb::MessageParser<VoiceResponse>(() => new VoiceResponse());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser<VoiceResponse> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
get { return global::VoiceReflection.Descriptor.MessageTypes[1]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public VoiceResponse() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public VoiceResponse(VoiceResponse other) : this() {
uid_ = other.uid_;
channelName_ = other.channelName_;
channelId_ = other.channelId_;
token_ = other.token_;
channelType_ = other.channelType_;
appId_ = other.appId_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public VoiceResponse Clone() {
return new VoiceResponse(this);
}
/// <summary>Field number for the "Uid" field.</summary>
public const int UidFieldNumber = 1;
private uint uid_;
/// <summary>
/// 用户id
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public uint Uid {
get { return uid_; }
set {
uid_ = value;
}
}
/// <summary>Field number for the "ChannelName" field.</summary>
public const int ChannelNameFieldNumber = 2;
private string channelName_ = "";
/// <summary>
/// 频道名称
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string ChannelName {
get { return channelName_; }
set {
channelName_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// <summary>Field number for the "ChannelId" field.</summary>
public const int ChannelIdFieldNumber = 3;
private string channelId_ = "";
/// <summary>
/// 频道id
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string ChannelId {
get { return channelId_; }
set {
channelId_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// <summary>Field number for the "Token" field.</summary>
public const int TokenFieldNumber = 4;
private string token_ = "";
/// <summary>
/// 语音token
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string Token {
get { return token_; }
set {
token_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// <summary>Field number for the "ChannelType" field.</summary>
public const int ChannelTypeFieldNumber = 5;
private string channelType_ = "";
/// <summary>
/// 频道类型
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string ChannelType {
get { return channelType_; }
set {
channelType_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// <summary>Field number for the "appId" field.</summary>
public const int AppIdFieldNumber = 7;
private string appId_ = "";
/// <summary>
/// 需要通知的角色
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string AppId {
get { return appId_; }
set {
appId_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as VoiceResponse);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(VoiceResponse other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (Uid != other.Uid) return false;
if (ChannelName != other.ChannelName) return false;
if (ChannelId != other.ChannelId) return false;
if (Token != other.Token) return false;
if (ChannelType != other.ChannelType) return false;
if (AppId != other.AppId) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override int GetHashCode() {
int hash = 1;
if (Uid != 0) hash ^= Uid.GetHashCode();
if (ChannelName.Length != 0) hash ^= ChannelName.GetHashCode();
if (ChannelId.Length != 0) hash ^= ChannelId.GetHashCode();
if (Token.Length != 0) hash ^= Token.GetHashCode();
if (ChannelType.Length != 0) hash ^= ChannelType.GetHashCode();
if (AppId.Length != 0) hash ^= AppId.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void WriteTo(pb::CodedOutputStream output) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
output.WriteRawMessage(this);
#else
if (Uid != 0) {
output.WriteRawTag(8);
output.WriteUInt32(Uid);
}
if (ChannelName.Length != 0) {
output.WriteRawTag(18);
output.WriteString(ChannelName);
}
if (ChannelId.Length != 0) {
output.WriteRawTag(26);
output.WriteString(ChannelId);
}
if (Token.Length != 0) {
output.WriteRawTag(34);
output.WriteString(Token);
}
if (ChannelType.Length != 0) {
output.WriteRawTag(42);
output.WriteString(ChannelType);
}
if (AppId.Length != 0) {
output.WriteRawTag(58);
output.WriteString(AppId);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
if (Uid != 0) {
output.WriteRawTag(8);
output.WriteUInt32(Uid);
}
if (ChannelName.Length != 0) {
output.WriteRawTag(18);
output.WriteString(ChannelName);
}
if (ChannelId.Length != 0) {
output.WriteRawTag(26);
output.WriteString(ChannelId);
}
if (Token.Length != 0) {
output.WriteRawTag(34);
output.WriteString(Token);
}
if (ChannelType.Length != 0) {
output.WriteRawTag(42);
output.WriteString(ChannelType);
}
if (AppId.Length != 0) {
output.WriteRawTag(58);
output.WriteString(AppId);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
}
#endif
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
if (Uid != 0) {
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Uid);
}
if (ChannelName.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(ChannelName);
}
if (ChannelId.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(ChannelId);
}
if (Token.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Token);
}
if (ChannelType.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(ChannelType);
}
if (AppId.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(AppId);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(VoiceResponse other) {
if (other == null) {
return;
}
if (other.Uid != 0) {
Uid = other.Uid;
}
if (other.ChannelName.Length != 0) {
ChannelName = other.ChannelName;
}
if (other.ChannelId.Length != 0) {
ChannelId = other.ChannelId;
}
if (other.Token.Length != 0) {
Token = other.Token;
}
if (other.ChannelType.Length != 0) {
ChannelType = other.ChannelType;
}
if (other.AppId.Length != 0) {
AppId = other.AppId;
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(pb::CodedInputStream input) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
input.ReadRawMessage(this);
#else
uint tag;
while ((tag = input.ReadTag()) != 0) {
if ((tag & 7) == 4) {
// Abort on any end group tag.
return;
}
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 8: {
Uid = input.ReadUInt32();
break;
}
case 18: {
ChannelName = input.ReadString();
break;
}
case 26: {
ChannelId = input.ReadString();
break;
}
case 34: {
Token = input.ReadString();
break;
}
case 42: {
ChannelType = input.ReadString();
break;
}
case 58: {
AppId = input.ReadString();
break;
}
}
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
if ((tag & 7) == 4) {
// Abort on any end group tag.
return;
}
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
break;
case 8: {
Uid = input.ReadUInt32();
break;
}
case 18: {
ChannelName = input.ReadString();
break;
}
case 26: {
ChannelId = input.ReadString();
break;
}
case 34: {
Token = input.ReadString();
break;
}
case 42: {
ChannelType = input.ReadString();
break;
}
case 58: {
AppId = input.ReadString();
break;
}
}
}
}
#endif
}
#endregion
#endregion Designer generated code

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: cd987ba33a5ad7d4887f53fd0957709a
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant: