proto文件修改以及npc寻路
This commit is contained in:
parent
0462282d61
commit
d10d3775d8
@ -1,281 +0,0 @@
|
|||||||
// <auto-generated>
|
|
||||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
||||||
// source: common.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 common.proto</summary>
|
|
||||||
public static partial class CommonReflection {
|
|
||||||
|
|
||||||
#region Descriptor
|
|
||||||
/// <summary>File descriptor for common.proto</summary>
|
|
||||||
public static pbr::FileDescriptor Descriptor {
|
|
||||||
get { return descriptor; }
|
|
||||||
}
|
|
||||||
private static pbr::FileDescriptor descriptor;
|
|
||||||
|
|
||||||
static CommonReflection() {
|
|
||||||
byte[] descriptorData = global::System.Convert.FromBase64String(
|
|
||||||
string.Concat(
|
|
||||||
"Cgxjb21tb24ucHJvdG8iLgoNUmVzdWx0TWVzc2FnZRIMCgRjb2RlGAEgASgF",
|
|
||||||
"Eg8KB21lc3NhZ2UYAiABKAlCB1oFLi87cGJiBnByb3RvMw=="));
|
|
||||||
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
|
||||||
new pbr::FileDescriptor[] { },
|
|
||||||
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
|
|
||||||
new pbr::GeneratedClrTypeInfo(typeof(global::ResultMessage), global::ResultMessage.Parser, new[]{ "Code", "Message" }, null, null, null, null)
|
|
||||||
}));
|
|
||||||
}
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
}
|
|
||||||
#region Messages
|
|
||||||
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
|
|
||||||
public sealed partial class ResultMessage : pb::IMessage<ResultMessage>
|
|
||||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
||||||
, pb::IBufferMessage
|
|
||||||
#endif
|
|
||||||
{
|
|
||||||
private static readonly pb::MessageParser<ResultMessage> _parser = new pb::MessageParser<ResultMessage>(() => new ResultMessage());
|
|
||||||
private pb::UnknownFieldSet _unknownFields;
|
|
||||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
||||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
||||||
public static pb::MessageParser<ResultMessage> Parser { get { return _parser; } }
|
|
||||||
|
|
||||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
||||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
||||||
public static pbr::MessageDescriptor Descriptor {
|
|
||||||
get { return global::CommonReflection.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 ResultMessage() {
|
|
||||||
OnConstruction();
|
|
||||||
}
|
|
||||||
|
|
||||||
partial void OnConstruction();
|
|
||||||
|
|
||||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
||||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
||||||
public ResultMessage(ResultMessage other) : this() {
|
|
||||||
code_ = other.code_;
|
|
||||||
message_ = other.message_;
|
|
||||||
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
||||||
}
|
|
||||||
|
|
||||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
||||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
||||||
public ResultMessage Clone() {
|
|
||||||
return new ResultMessage(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>Field number for the "code" field.</summary>
|
|
||||||
public const int CodeFieldNumber = 1;
|
|
||||||
private int code_;
|
|
||||||
/// <summary>
|
|
||||||
/// 错误码
|
|
||||||
/// </summary>
|
|
||||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
||||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
||||||
public int Code {
|
|
||||||
get { return code_; }
|
|
||||||
set {
|
|
||||||
code_ = value;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>Field number for the "message" field.</summary>
|
|
||||||
public const int MessageFieldNumber = 2;
|
|
||||||
private string message_ = "";
|
|
||||||
/// <summary>
|
|
||||||
/// 错误信息
|
|
||||||
/// </summary>
|
|
||||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
||||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
||||||
public string Message {
|
|
||||||
get { return message_; }
|
|
||||||
set {
|
|
||||||
message_ = 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 ResultMessage);
|
|
||||||
}
|
|
||||||
|
|
||||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
||||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
||||||
public bool Equals(ResultMessage other) {
|
|
||||||
if (ReferenceEquals(other, null)) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
if (ReferenceEquals(other, this)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if (Code != other.Code) return false;
|
|
||||||
if (Message != other.Message) 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 (Code != 0) hash ^= Code.GetHashCode();
|
|
||||||
if (Message.Length != 0) hash ^= Message.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 (Code != 0) {
|
|
||||||
output.WriteRawTag(8);
|
|
||||||
output.WriteInt32(Code);
|
|
||||||
}
|
|
||||||
if (Message.Length != 0) {
|
|
||||||
output.WriteRawTag(18);
|
|
||||||
output.WriteString(Message);
|
|
||||||
}
|
|
||||||
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 (Code != 0) {
|
|
||||||
output.WriteRawTag(8);
|
|
||||||
output.WriteInt32(Code);
|
|
||||||
}
|
|
||||||
if (Message.Length != 0) {
|
|
||||||
output.WriteRawTag(18);
|
|
||||||
output.WriteString(Message);
|
|
||||||
}
|
|
||||||
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 (Code != 0) {
|
|
||||||
size += 1 + pb::CodedOutputStream.ComputeInt32Size(Code);
|
|
||||||
}
|
|
||||||
if (Message.Length != 0) {
|
|
||||||
size += 1 + pb::CodedOutputStream.ComputeStringSize(Message);
|
|
||||||
}
|
|
||||||
if (_unknownFields != null) {
|
|
||||||
size += _unknownFields.CalculateSize();
|
|
||||||
}
|
|
||||||
return size;
|
|
||||||
}
|
|
||||||
|
|
||||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
||||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
||||||
public void MergeFrom(ResultMessage other) {
|
|
||||||
if (other == null) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
if (other.Code != 0) {
|
|
||||||
Code = other.Code;
|
|
||||||
}
|
|
||||||
if (other.Message.Length != 0) {
|
|
||||||
Message = other.Message;
|
|
||||||
}
|
|
||||||
_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: {
|
|
||||||
Code = input.ReadInt32();
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
case 18: {
|
|
||||||
Message = 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: {
|
|
||||||
Code = input.ReadInt32();
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
case 18: {
|
|
||||||
Message = input.ReadString();
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
|
|
||||||
#endregion Designer generated code
|
|
@ -1,11 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: 8f08a6ce1ce72944ab924e71bac47c6f
|
|
||||||
MonoImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
serializedVersion: 2
|
|
||||||
defaultReferences: []
|
|
||||||
executionOrder: 0
|
|
||||||
icon: {instanceID: 0}
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
@ -33,7 +33,7 @@ public static partial class HallReflection {
|
|||||||
"YXR1cxgDIAEoBRIQCghSb2xlTmFtZRgEIAEoCRIUCgxJc0xlYWRpbmdOUEMY",
|
"YXR1cxgDIAEoBRIQCghSb2xlTmFtZRgEIAEoCRIUCgxJc0xlYWRpbmdOUEMY",
|
||||||
"BSABKAUSDgoGT25saW5lGAYgASgIEg4KBlJvbGVJZBgHIAEoBRITCgtHcm91",
|
"BSABKAUSDgoGT25saW5lGAYgASgIEg4KBlJvbGVJZBgHIAEoBRITCgtHcm91",
|
||||||
"cExlYWRlchgIIAEoBRISCgpBY3Rpb25Nb2RlGAkgASgFEg0KBUdyb3VwGAog",
|
"cExlYWRlchgIIAEoBRISCgpBY3Rpb25Nb2RlGAkgASgFEg0KBUdyb3VwGAog",
|
||||||
"ASgFEgkKAVgYCyABKAISCQoBWRgMIAEoAhIJCgFaGA0gASgCEhMKC092ZXJz",
|
"ASgFEgkKAVgYCyABKAESCQoBWRgMIAEoARIJCgFaGA0gASgBEhMKC092ZXJz",
|
||||||
"ZWVDb25kGA4gASgJEhYKDlNlbmRGcmFtZUNvdW50GA8gASgFEhYKDk1vdmVT",
|
"ZWVDb25kGA4gASgJEhYKDlNlbmRGcmFtZUNvdW50GA8gASgFEhYKDk1vdmVT",
|
||||||
"cGVlZEZpcnN0GBAgASgFEhcKD01vdmVTcGVlZFNlY29uZBgRIAEoBRIWCg5N",
|
"cGVlZEZpcnN0GBAgASgFEhcKD01vdmVTcGVlZFNlY29uZBgRIAEoBRIWCg5N",
|
||||||
"b3ZlU3BlZWRUaGlyZBgSIAEoBRIQCghCZWFyTG9hZBgTIAEoBRISCgpQcm90",
|
"b3ZlU3BlZWRUaGlyZBgSIAEoBRIQCghCZWFyTG9hZBgTIAEoBRISCgpQcm90",
|
||||||
@ -1646,13 +1646,13 @@ public sealed partial class PlayerJoinResponse : pb::IMessage<PlayerJoinResponse
|
|||||||
|
|
||||||
/// <summary>Field number for the "X" field.</summary>
|
/// <summary>Field number for the "X" field.</summary>
|
||||||
public const int XFieldNumber = 11;
|
public const int XFieldNumber = 11;
|
||||||
private float x_;
|
private double x_;
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 坐标x
|
/// 坐标x
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||||
public float X {
|
public double X {
|
||||||
get { return x_; }
|
get { return x_; }
|
||||||
set {
|
set {
|
||||||
x_ = value;
|
x_ = value;
|
||||||
@ -1661,13 +1661,13 @@ public sealed partial class PlayerJoinResponse : pb::IMessage<PlayerJoinResponse
|
|||||||
|
|
||||||
/// <summary>Field number for the "Y" field.</summary>
|
/// <summary>Field number for the "Y" field.</summary>
|
||||||
public const int YFieldNumber = 12;
|
public const int YFieldNumber = 12;
|
||||||
private float y_;
|
private double y_;
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 坐标y
|
/// 坐标y
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||||
public float Y {
|
public double Y {
|
||||||
get { return y_; }
|
get { return y_; }
|
||||||
set {
|
set {
|
||||||
y_ = value;
|
y_ = value;
|
||||||
@ -1676,13 +1676,13 @@ public sealed partial class PlayerJoinResponse : pb::IMessage<PlayerJoinResponse
|
|||||||
|
|
||||||
/// <summary>Field number for the "Z" field.</summary>
|
/// <summary>Field number for the "Z" field.</summary>
|
||||||
public const int ZFieldNumber = 13;
|
public const int ZFieldNumber = 13;
|
||||||
private float z_;
|
private double z_;
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 坐标z
|
/// 坐标z
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||||
public float Z {
|
public double Z {
|
||||||
get { return z_; }
|
get { return z_; }
|
||||||
set {
|
set {
|
||||||
z_ = value;
|
z_ = value;
|
||||||
@ -1864,9 +1864,9 @@ public sealed partial class PlayerJoinResponse : pb::IMessage<PlayerJoinResponse
|
|||||||
if (GroupLeader != other.GroupLeader) return false;
|
if (GroupLeader != other.GroupLeader) return false;
|
||||||
if (ActionMode != other.ActionMode) return false;
|
if (ActionMode != other.ActionMode) return false;
|
||||||
if (Group != other.Group) return false;
|
if (Group != other.Group) return false;
|
||||||
if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(X, other.X)) return false;
|
if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(X, other.X)) return false;
|
||||||
if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Y, other.Y)) return false;
|
if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Y, other.Y)) return false;
|
||||||
if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Z, other.Z)) return false;
|
if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Z, other.Z)) return false;
|
||||||
if (OverseeCond != other.OverseeCond) return false;
|
if (OverseeCond != other.OverseeCond) return false;
|
||||||
if (SendFrameCount != other.SendFrameCount) return false;
|
if (SendFrameCount != other.SendFrameCount) return false;
|
||||||
if (MoveSpeedFirst != other.MoveSpeedFirst) return false;
|
if (MoveSpeedFirst != other.MoveSpeedFirst) return false;
|
||||||
@ -1894,9 +1894,9 @@ public sealed partial class PlayerJoinResponse : pb::IMessage<PlayerJoinResponse
|
|||||||
if (GroupLeader != 0) hash ^= GroupLeader.GetHashCode();
|
if (GroupLeader != 0) hash ^= GroupLeader.GetHashCode();
|
||||||
if (ActionMode != 0) hash ^= ActionMode.GetHashCode();
|
if (ActionMode != 0) hash ^= ActionMode.GetHashCode();
|
||||||
if (Group != 0) hash ^= Group.GetHashCode();
|
if (Group != 0) hash ^= Group.GetHashCode();
|
||||||
if (X != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(X);
|
if (X != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(X);
|
||||||
if (Y != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Y);
|
if (Y != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Y);
|
||||||
if (Z != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Z);
|
if (Z != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Z);
|
||||||
if (OverseeCond.Length != 0) hash ^= OverseeCond.GetHashCode();
|
if (OverseeCond.Length != 0) hash ^= OverseeCond.GetHashCode();
|
||||||
if (SendFrameCount != 0) hash ^= SendFrameCount.GetHashCode();
|
if (SendFrameCount != 0) hash ^= SendFrameCount.GetHashCode();
|
||||||
if (MoveSpeedFirst != 0) hash ^= MoveSpeedFirst.GetHashCode();
|
if (MoveSpeedFirst != 0) hash ^= MoveSpeedFirst.GetHashCode();
|
||||||
@ -1965,17 +1965,17 @@ public sealed partial class PlayerJoinResponse : pb::IMessage<PlayerJoinResponse
|
|||||||
output.WriteRawTag(80);
|
output.WriteRawTag(80);
|
||||||
output.WriteInt32(Group);
|
output.WriteInt32(Group);
|
||||||
}
|
}
|
||||||
if (X != 0F) {
|
if (X != 0D) {
|
||||||
output.WriteRawTag(93);
|
output.WriteRawTag(89);
|
||||||
output.WriteFloat(X);
|
output.WriteDouble(X);
|
||||||
}
|
}
|
||||||
if (Y != 0F) {
|
if (Y != 0D) {
|
||||||
output.WriteRawTag(101);
|
output.WriteRawTag(97);
|
||||||
output.WriteFloat(Y);
|
output.WriteDouble(Y);
|
||||||
}
|
}
|
||||||
if (Z != 0F) {
|
if (Z != 0D) {
|
||||||
output.WriteRawTag(109);
|
output.WriteRawTag(105);
|
||||||
output.WriteFloat(Z);
|
output.WriteDouble(Z);
|
||||||
}
|
}
|
||||||
if (OverseeCond.Length != 0) {
|
if (OverseeCond.Length != 0) {
|
||||||
output.WriteRawTag(114);
|
output.WriteRawTag(114);
|
||||||
@ -2067,17 +2067,17 @@ public sealed partial class PlayerJoinResponse : pb::IMessage<PlayerJoinResponse
|
|||||||
output.WriteRawTag(80);
|
output.WriteRawTag(80);
|
||||||
output.WriteInt32(Group);
|
output.WriteInt32(Group);
|
||||||
}
|
}
|
||||||
if (X != 0F) {
|
if (X != 0D) {
|
||||||
output.WriteRawTag(93);
|
output.WriteRawTag(89);
|
||||||
output.WriteFloat(X);
|
output.WriteDouble(X);
|
||||||
}
|
}
|
||||||
if (Y != 0F) {
|
if (Y != 0D) {
|
||||||
output.WriteRawTag(101);
|
output.WriteRawTag(97);
|
||||||
output.WriteFloat(Y);
|
output.WriteDouble(Y);
|
||||||
}
|
}
|
||||||
if (Z != 0F) {
|
if (Z != 0D) {
|
||||||
output.WriteRawTag(109);
|
output.WriteRawTag(105);
|
||||||
output.WriteFloat(Z);
|
output.WriteDouble(Z);
|
||||||
}
|
}
|
||||||
if (OverseeCond.Length != 0) {
|
if (OverseeCond.Length != 0) {
|
||||||
output.WriteRawTag(114);
|
output.WriteRawTag(114);
|
||||||
@ -2159,14 +2159,14 @@ public sealed partial class PlayerJoinResponse : pb::IMessage<PlayerJoinResponse
|
|||||||
if (Group != 0) {
|
if (Group != 0) {
|
||||||
size += 1 + pb::CodedOutputStream.ComputeInt32Size(Group);
|
size += 1 + pb::CodedOutputStream.ComputeInt32Size(Group);
|
||||||
}
|
}
|
||||||
if (X != 0F) {
|
if (X != 0D) {
|
||||||
size += 1 + 4;
|
size += 1 + 8;
|
||||||
}
|
}
|
||||||
if (Y != 0F) {
|
if (Y != 0D) {
|
||||||
size += 1 + 4;
|
size += 1 + 8;
|
||||||
}
|
}
|
||||||
if (Z != 0F) {
|
if (Z != 0D) {
|
||||||
size += 1 + 4;
|
size += 1 + 8;
|
||||||
}
|
}
|
||||||
if (OverseeCond.Length != 0) {
|
if (OverseeCond.Length != 0) {
|
||||||
size += 1 + pb::CodedOutputStream.ComputeStringSize(OverseeCond);
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(OverseeCond);
|
||||||
@ -2240,13 +2240,13 @@ public sealed partial class PlayerJoinResponse : pb::IMessage<PlayerJoinResponse
|
|||||||
if (other.Group != 0) {
|
if (other.Group != 0) {
|
||||||
Group = other.Group;
|
Group = other.Group;
|
||||||
}
|
}
|
||||||
if (other.X != 0F) {
|
if (other.X != 0D) {
|
||||||
X = other.X;
|
X = other.X;
|
||||||
}
|
}
|
||||||
if (other.Y != 0F) {
|
if (other.Y != 0D) {
|
||||||
Y = other.Y;
|
Y = other.Y;
|
||||||
}
|
}
|
||||||
if (other.Z != 0F) {
|
if (other.Z != 0D) {
|
||||||
Z = other.Z;
|
Z = other.Z;
|
||||||
}
|
}
|
||||||
if (other.OverseeCond.Length != 0) {
|
if (other.OverseeCond.Length != 0) {
|
||||||
@ -2338,16 +2338,16 @@ public sealed partial class PlayerJoinResponse : pb::IMessage<PlayerJoinResponse
|
|||||||
Group = input.ReadInt32();
|
Group = input.ReadInt32();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case 93: {
|
case 89: {
|
||||||
X = input.ReadFloat();
|
X = input.ReadDouble();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case 101: {
|
case 97: {
|
||||||
Y = input.ReadFloat();
|
Y = input.ReadDouble();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case 109: {
|
case 105: {
|
||||||
Z = input.ReadFloat();
|
Z = input.ReadDouble();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case 114: {
|
case 114: {
|
||||||
@ -2449,16 +2449,16 @@ public sealed partial class PlayerJoinResponse : pb::IMessage<PlayerJoinResponse
|
|||||||
Group = input.ReadInt32();
|
Group = input.ReadInt32();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case 93: {
|
case 89: {
|
||||||
X = input.ReadFloat();
|
X = input.ReadDouble();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case 101: {
|
case 97: {
|
||||||
Y = input.ReadFloat();
|
Y = input.ReadDouble();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case 109: {
|
case 105: {
|
||||||
Z = input.ReadFloat();
|
Z = input.ReadDouble();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case 114: {
|
case 114: {
|
||||||
|
@ -24,21 +24,22 @@ public static partial class MoveReflection {
|
|||||||
string.Concat(
|
string.Concat(
|
||||||
"Cgptb3ZlLnByb3RvIkcKEE5wY0NyZWF0ZVJlcXVlc3QSDgoGcm9vbUlkGAEg",
|
"Cgptb3ZlLnByb3RvIkcKEE5wY0NyZWF0ZVJlcXVlc3QSDgoGcm9vbUlkGAEg",
|
||||||
"ASgJEhIKCnRlbXBsYXRlSWQYAiABKAMSDwoHc2NlbmVJZBgDIAEoCSITChFO",
|
"ASgJEhIKCnRlbXBsYXRlSWQYAiABKAMSDwoHc2NlbmVJZBgDIAEoCSITChFO",
|
||||||
"cGNDcmVhdGVSZXNwb25zZSIvCgtNb3ZlUmVxdWVzdBIOCgZyb29tSWQYASAB",
|
"cGNDcmVhdGVSZXNwb25zZSJBCgtNb3ZlUmVxdWVzdBIOCgZyb29tSWQYASAB",
|
||||||
"KAkSEAoIbW92ZVR5cGUYAiABKAUiSgoMTW92ZVJlc3BvbnNlEg4KBnVzZXJJ",
|
"KAkSEAoIbW92ZVR5cGUYAiABKAUSEAoIc2VsZWN0SWQYAyABKAUiSgoMTW92",
|
||||||
"ZBgCIAEoCRIOCgZyb29tSWQYAyABKAkSGgoIbW92ZURhdGEYASADKAsyCC5O",
|
"ZVJlc3BvbnNlEg4KBnVzZXJJZBgCIAEoCRIOCgZyb29tSWQYAyABKAkSGgoI",
|
||||||
"cGNEYXRhInwKB05wY0RhdGESCQoBeBgBIAEoAhIJCgF5GAIgASgCEgkKAXoY",
|
"bW92ZURhdGEYASADKAsyCC5OcGNEYXRhInwKB05wY0RhdGESCQoBeBgBIAEo",
|
||||||
"AyABKAISDgoGdXNlcklkGAQgASgJEhAKCG5pY2tOYW1lGAggASgJEgwKBHR5",
|
"ARIJCgF5GAIgASgBEgkKAXoYAyABKAESDgoGdXNlcklkGAQgASgJEhAKCG5p",
|
||||||
"cGUYBSABKAUSEQoJZm9ybWF0aW9uGAYgASgFEg0KBWV2ZW50GAcgASgFIlUK",
|
"Y2tOYW1lGAggASgJEgwKBHR5cGUYBSABKAUSEQoJZm9ybWF0aW9uGAYgASgF",
|
||||||
"Ek1vdmVSb29tQW9pUmVxdWVzdBIOCgZyb29tSWQYASABKAkSDgoGdXNlcklk",
|
"Eg0KBWV2ZW50GAcgASgFIlUKEk1vdmVSb29tQW9pUmVxdWVzdBIOCgZyb29t",
|
||||||
"GAIgASgDEgkKAXgYAyABKAISCQoBeRgEIAEoAhIJCgF6GAUgASgCIhUKE01v",
|
"SWQYASABKAkSDgoGdXNlcklkGAIgASgDEgkKAXgYAyABKAISCQoBeRgEIAEo",
|
||||||
"dmVSb29tQW9pUmVzcG9uc2VCB1oFLi87cGJiBnByb3RvMw=="));
|
"AhIJCgF6GAUgASgCIhUKE01vdmVSb29tQW9pUmVzcG9uc2VCB1oFLi87cGJi",
|
||||||
|
"BnByb3RvMw=="));
|
||||||
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
||||||
new pbr::FileDescriptor[] { },
|
new pbr::FileDescriptor[] { },
|
||||||
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
|
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" }, null, null, null, null),
|
||||||
new pbr::GeneratedClrTypeInfo(typeof(global::NpcCreateResponse), global::NpcCreateResponse.Parser, null, 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" }, 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::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::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::MoveRoomAoiRequest), global::MoveRoomAoiRequest.Parser, new[]{ "RoomId", "UserId", "X", "Y", "Z" }, null, null, null, null),
|
||||||
@ -528,6 +529,7 @@ public sealed partial class MoveRequest : pb::IMessage<MoveRequest>
|
|||||||
public MoveRequest(MoveRequest other) : this() {
|
public MoveRequest(MoveRequest other) : this() {
|
||||||
roomId_ = other.roomId_;
|
roomId_ = other.roomId_;
|
||||||
moveType_ = other.moveType_;
|
moveType_ = other.moveType_;
|
||||||
|
selectId_ = other.selectId_;
|
||||||
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -567,6 +569,21 @@ public sealed partial class MoveRequest : pb::IMessage<MoveRequest>
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>Field number for the "selectId" field.</summary>
|
||||||
|
public const int SelectIdFieldNumber = 3;
|
||||||
|
private int selectId_;
|
||||||
|
/// <summary>
|
||||||
|
/// 选项的ID
|
||||||
|
/// </summary>
|
||||||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||||
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||||
|
public int SelectId {
|
||||||
|
get { return selectId_; }
|
||||||
|
set {
|
||||||
|
selectId_ = value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||||
public override bool Equals(object other) {
|
public override bool Equals(object other) {
|
||||||
@ -584,6 +601,7 @@ public sealed partial class MoveRequest : pb::IMessage<MoveRequest>
|
|||||||
}
|
}
|
||||||
if (RoomId != other.RoomId) return false;
|
if (RoomId != other.RoomId) return false;
|
||||||
if (MoveType != other.MoveType) return false;
|
if (MoveType != other.MoveType) return false;
|
||||||
|
if (SelectId != other.SelectId) return false;
|
||||||
return Equals(_unknownFields, other._unknownFields);
|
return Equals(_unknownFields, other._unknownFields);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -593,6 +611,7 @@ public sealed partial class MoveRequest : pb::IMessage<MoveRequest>
|
|||||||
int hash = 1;
|
int hash = 1;
|
||||||
if (RoomId.Length != 0) hash ^= RoomId.GetHashCode();
|
if (RoomId.Length != 0) hash ^= RoomId.GetHashCode();
|
||||||
if (MoveType != 0) hash ^= MoveType.GetHashCode();
|
if (MoveType != 0) hash ^= MoveType.GetHashCode();
|
||||||
|
if (SelectId != 0) hash ^= SelectId.GetHashCode();
|
||||||
if (_unknownFields != null) {
|
if (_unknownFields != null) {
|
||||||
hash ^= _unknownFields.GetHashCode();
|
hash ^= _unknownFields.GetHashCode();
|
||||||
}
|
}
|
||||||
@ -619,6 +638,10 @@ public sealed partial class MoveRequest : pb::IMessage<MoveRequest>
|
|||||||
output.WriteRawTag(16);
|
output.WriteRawTag(16);
|
||||||
output.WriteInt32(MoveType);
|
output.WriteInt32(MoveType);
|
||||||
}
|
}
|
||||||
|
if (SelectId != 0) {
|
||||||
|
output.WriteRawTag(24);
|
||||||
|
output.WriteInt32(SelectId);
|
||||||
|
}
|
||||||
if (_unknownFields != null) {
|
if (_unknownFields != null) {
|
||||||
_unknownFields.WriteTo(output);
|
_unknownFields.WriteTo(output);
|
||||||
}
|
}
|
||||||
@ -637,6 +660,10 @@ public sealed partial class MoveRequest : pb::IMessage<MoveRequest>
|
|||||||
output.WriteRawTag(16);
|
output.WriteRawTag(16);
|
||||||
output.WriteInt32(MoveType);
|
output.WriteInt32(MoveType);
|
||||||
}
|
}
|
||||||
|
if (SelectId != 0) {
|
||||||
|
output.WriteRawTag(24);
|
||||||
|
output.WriteInt32(SelectId);
|
||||||
|
}
|
||||||
if (_unknownFields != null) {
|
if (_unknownFields != null) {
|
||||||
_unknownFields.WriteTo(ref output);
|
_unknownFields.WriteTo(ref output);
|
||||||
}
|
}
|
||||||
@ -653,6 +680,9 @@ public sealed partial class MoveRequest : pb::IMessage<MoveRequest>
|
|||||||
if (MoveType != 0) {
|
if (MoveType != 0) {
|
||||||
size += 1 + pb::CodedOutputStream.ComputeInt32Size(MoveType);
|
size += 1 + pb::CodedOutputStream.ComputeInt32Size(MoveType);
|
||||||
}
|
}
|
||||||
|
if (SelectId != 0) {
|
||||||
|
size += 1 + pb::CodedOutputStream.ComputeInt32Size(SelectId);
|
||||||
|
}
|
||||||
if (_unknownFields != null) {
|
if (_unknownFields != null) {
|
||||||
size += _unknownFields.CalculateSize();
|
size += _unknownFields.CalculateSize();
|
||||||
}
|
}
|
||||||
@ -671,6 +701,9 @@ public sealed partial class MoveRequest : pb::IMessage<MoveRequest>
|
|||||||
if (other.MoveType != 0) {
|
if (other.MoveType != 0) {
|
||||||
MoveType = other.MoveType;
|
MoveType = other.MoveType;
|
||||||
}
|
}
|
||||||
|
if (other.SelectId != 0) {
|
||||||
|
SelectId = other.SelectId;
|
||||||
|
}
|
||||||
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
|
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -698,6 +731,10 @@ public sealed partial class MoveRequest : pb::IMessage<MoveRequest>
|
|||||||
MoveType = input.ReadInt32();
|
MoveType = input.ReadInt32();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case 24: {
|
||||||
|
SelectId = input.ReadInt32();
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
@ -725,6 +762,10 @@ public sealed partial class MoveRequest : pb::IMessage<MoveRequest>
|
|||||||
MoveType = input.ReadInt32();
|
MoveType = input.ReadInt32();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case 24: {
|
||||||
|
SelectId = input.ReadInt32();
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1056,12 +1097,10 @@ public sealed partial class NpcData : pb::IMessage<NpcData>
|
|||||||
|
|
||||||
/// <summary>Field number for the "x" field.</summary>
|
/// <summary>Field number for the "x" field.</summary>
|
||||||
public const int XFieldNumber = 1;
|
public const int XFieldNumber = 1;
|
||||||
private float x_;
|
private double x_;
|
||||||
/// <summary>
|
|
||||||
/// </summary>
|
|
||||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||||
public float X {
|
public double X {
|
||||||
get { return x_; }
|
get { return x_; }
|
||||||
set {
|
set {
|
||||||
x_ = value;
|
x_ = value;
|
||||||
@ -1070,12 +1109,10 @@ public sealed partial class NpcData : pb::IMessage<NpcData>
|
|||||||
|
|
||||||
/// <summary>Field number for the "y" field.</summary>
|
/// <summary>Field number for the "y" field.</summary>
|
||||||
public const int YFieldNumber = 2;
|
public const int YFieldNumber = 2;
|
||||||
private float y_;
|
private double y_;
|
||||||
/// <summary>
|
|
||||||
/// </summary>
|
|
||||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||||
public float Y {
|
public double Y {
|
||||||
get { return y_; }
|
get { return y_; }
|
||||||
set {
|
set {
|
||||||
y_ = value;
|
y_ = value;
|
||||||
@ -1084,12 +1121,10 @@ public sealed partial class NpcData : pb::IMessage<NpcData>
|
|||||||
|
|
||||||
/// <summary>Field number for the "z" field.</summary>
|
/// <summary>Field number for the "z" field.</summary>
|
||||||
public const int ZFieldNumber = 3;
|
public const int ZFieldNumber = 3;
|
||||||
private float z_;
|
private double z_;
|
||||||
/// <summary>
|
|
||||||
/// </summary>
|
|
||||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||||
public float Z {
|
public double Z {
|
||||||
get { return z_; }
|
get { return z_; }
|
||||||
set {
|
set {
|
||||||
z_ = value;
|
z_ = value;
|
||||||
@ -1186,9 +1221,9 @@ public sealed partial class NpcData : pb::IMessage<NpcData>
|
|||||||
if (ReferenceEquals(other, this)) {
|
if (ReferenceEquals(other, this)) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(X, other.X)) return false;
|
if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(X, other.X)) return false;
|
||||||
if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Y, other.Y)) return false;
|
if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Y, other.Y)) return false;
|
||||||
if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Z, other.Z)) return false;
|
if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Z, other.Z)) return false;
|
||||||
if (UserId != other.UserId) return false;
|
if (UserId != other.UserId) return false;
|
||||||
if (NickName != other.NickName) return false;
|
if (NickName != other.NickName) return false;
|
||||||
if (Type != other.Type) return false;
|
if (Type != other.Type) return false;
|
||||||
@ -1201,9 +1236,9 @@ public sealed partial class NpcData : pb::IMessage<NpcData>
|
|||||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||||
public override int GetHashCode() {
|
public override int GetHashCode() {
|
||||||
int hash = 1;
|
int hash = 1;
|
||||||
if (X != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(X);
|
if (X != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(X);
|
||||||
if (Y != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Y);
|
if (Y != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Y);
|
||||||
if (Z != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Z);
|
if (Z != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Z);
|
||||||
if (UserId.Length != 0) hash ^= UserId.GetHashCode();
|
if (UserId.Length != 0) hash ^= UserId.GetHashCode();
|
||||||
if (NickName.Length != 0) hash ^= NickName.GetHashCode();
|
if (NickName.Length != 0) hash ^= NickName.GetHashCode();
|
||||||
if (Type != 0) hash ^= Type.GetHashCode();
|
if (Type != 0) hash ^= Type.GetHashCode();
|
||||||
@ -1227,17 +1262,17 @@ public sealed partial class NpcData : pb::IMessage<NpcData>
|
|||||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||||
output.WriteRawMessage(this);
|
output.WriteRawMessage(this);
|
||||||
#else
|
#else
|
||||||
if (X != 0F) {
|
if (X != 0D) {
|
||||||
output.WriteRawTag(13);
|
output.WriteRawTag(9);
|
||||||
output.WriteFloat(X);
|
output.WriteDouble(X);
|
||||||
}
|
}
|
||||||
if (Y != 0F) {
|
if (Y != 0D) {
|
||||||
output.WriteRawTag(21);
|
output.WriteRawTag(17);
|
||||||
output.WriteFloat(Y);
|
output.WriteDouble(Y);
|
||||||
}
|
}
|
||||||
if (Z != 0F) {
|
if (Z != 0D) {
|
||||||
output.WriteRawTag(29);
|
output.WriteRawTag(25);
|
||||||
output.WriteFloat(Z);
|
output.WriteDouble(Z);
|
||||||
}
|
}
|
||||||
if (UserId.Length != 0) {
|
if (UserId.Length != 0) {
|
||||||
output.WriteRawTag(34);
|
output.WriteRawTag(34);
|
||||||
@ -1269,17 +1304,17 @@ public sealed partial class NpcData : pb::IMessage<NpcData>
|
|||||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||||
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
|
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
|
||||||
if (X != 0F) {
|
if (X != 0D) {
|
||||||
output.WriteRawTag(13);
|
output.WriteRawTag(9);
|
||||||
output.WriteFloat(X);
|
output.WriteDouble(X);
|
||||||
}
|
}
|
||||||
if (Y != 0F) {
|
if (Y != 0D) {
|
||||||
output.WriteRawTag(21);
|
output.WriteRawTag(17);
|
||||||
output.WriteFloat(Y);
|
output.WriteDouble(Y);
|
||||||
}
|
}
|
||||||
if (Z != 0F) {
|
if (Z != 0D) {
|
||||||
output.WriteRawTag(29);
|
output.WriteRawTag(25);
|
||||||
output.WriteFloat(Z);
|
output.WriteDouble(Z);
|
||||||
}
|
}
|
||||||
if (UserId.Length != 0) {
|
if (UserId.Length != 0) {
|
||||||
output.WriteRawTag(34);
|
output.WriteRawTag(34);
|
||||||
@ -1311,14 +1346,14 @@ public sealed partial class NpcData : pb::IMessage<NpcData>
|
|||||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||||
public int CalculateSize() {
|
public int CalculateSize() {
|
||||||
int size = 0;
|
int size = 0;
|
||||||
if (X != 0F) {
|
if (X != 0D) {
|
||||||
size += 1 + 4;
|
size += 1 + 8;
|
||||||
}
|
}
|
||||||
if (Y != 0F) {
|
if (Y != 0D) {
|
||||||
size += 1 + 4;
|
size += 1 + 8;
|
||||||
}
|
}
|
||||||
if (Z != 0F) {
|
if (Z != 0D) {
|
||||||
size += 1 + 4;
|
size += 1 + 8;
|
||||||
}
|
}
|
||||||
if (UserId.Length != 0) {
|
if (UserId.Length != 0) {
|
||||||
size += 1 + pb::CodedOutputStream.ComputeStringSize(UserId);
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(UserId);
|
||||||
@ -1347,13 +1382,13 @@ public sealed partial class NpcData : pb::IMessage<NpcData>
|
|||||||
if (other == null) {
|
if (other == null) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (other.X != 0F) {
|
if (other.X != 0D) {
|
||||||
X = other.X;
|
X = other.X;
|
||||||
}
|
}
|
||||||
if (other.Y != 0F) {
|
if (other.Y != 0D) {
|
||||||
Y = other.Y;
|
Y = other.Y;
|
||||||
}
|
}
|
||||||
if (other.Z != 0F) {
|
if (other.Z != 0D) {
|
||||||
Z = other.Z;
|
Z = other.Z;
|
||||||
}
|
}
|
||||||
if (other.UserId.Length != 0) {
|
if (other.UserId.Length != 0) {
|
||||||
@ -1390,16 +1425,16 @@ public sealed partial class NpcData : pb::IMessage<NpcData>
|
|||||||
default:
|
default:
|
||||||
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
||||||
break;
|
break;
|
||||||
case 13: {
|
case 9: {
|
||||||
X = input.ReadFloat();
|
X = input.ReadDouble();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case 21: {
|
case 17: {
|
||||||
Y = input.ReadFloat();
|
Y = input.ReadDouble();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case 29: {
|
case 25: {
|
||||||
Z = input.ReadFloat();
|
Z = input.ReadDouble();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case 34: {
|
case 34: {
|
||||||
@ -1441,16 +1476,16 @@ public sealed partial class NpcData : pb::IMessage<NpcData>
|
|||||||
default:
|
default:
|
||||||
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
|
||||||
break;
|
break;
|
||||||
case 13: {
|
case 9: {
|
||||||
X = input.ReadFloat();
|
X = input.ReadDouble();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case 21: {
|
case 17: {
|
||||||
Y = input.ReadFloat();
|
Y = input.ReadDouble();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case 29: {
|
case 25: {
|
||||||
Z = input.ReadFloat();
|
Z = input.ReadDouble();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case 34: {
|
case 34: {
|
||||||
|
@ -481,14 +481,24 @@ public class test : MonoBehaviour
|
|||||||
Debug.Log("move.Location接受到了");
|
Debug.Log("move.Location接受到了");
|
||||||
NpcData npcData = ProtoBufffer.DeSerialize<NpcData>(bytes);
|
NpcData npcData = ProtoBufffer.DeSerialize<NpcData>(bytes);
|
||||||
Debug.Log(npcData);
|
Debug.Log(npcData);
|
||||||
float x = npcData.X;
|
if(npcData.Type == 1)//npc´´½¨
|
||||||
float y = npcData.Y;
|
{
|
||||||
float z = npcData.Z;
|
float x = float.Parse(npcData.X.ToString());
|
||||||
GameObject npc = GameObject.CreatePrimitive(PrimitiveType.Cube);
|
float y = float.Parse(npcData.Y.ToString());
|
||||||
npc.transform.name = npcData.UserId;
|
float z = float.Parse(npcData.Z.ToString());
|
||||||
npc.transform.localScale = new Vector3(0.5f, 0.5f, 0.5f);
|
GameObject npc = GameObject.CreatePrimitive(PrimitiveType.Cube);
|
||||||
npc.transform.position = new Vector3(x, y + 0.25f, z);
|
}
|
||||||
npc.transform.parent = GameObject.Find("schoo103").transform;
|
if(npcData.Type == 2)//npcÒƶ¯
|
||||||
|
{
|
||||||
|
Vector3 v = new Vector3(float.Parse(npcData.X.ToString()), float.Parse(npcData.Y.ToString()), float.Parse(npcData.Z.ToString()));
|
||||||
|
RecuseNpc.instance.SetNpcDes(v);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
//npc.transform.name = npcData.UserId;
|
||||||
|
//npc.transform.localScale = new Vector3(0.5f, 0.5f, 0.5f);
|
||||||
|
//npc.transform.position = new Vector3(x, y + 0.25f, z);
|
||||||
|
//npc.transform.parent = GameObject.Find("schoo103").transform;
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
@ -54,9 +54,9 @@ public class RecuseNpc : MonoBehaviour
|
|||||||
Debug.Log("Setnpcstate调用");
|
Debug.Log("Setnpcstate调用");
|
||||||
}
|
}
|
||||||
|
|
||||||
public void SetNpcDes(Transform tar)
|
public void SetNpcDes(Vector3 tar)
|
||||||
{
|
{
|
||||||
target = tar;
|
target.position = tar;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void Update()
|
private void Update()
|
||||||
|
Loading…
Reference in New Issue
Block a user