feat 网关鉴权
This commit is contained in:
@@ -27,8 +27,8 @@ public static partial class ActionReflection {
|
||||
"bmNlEhsKBEluZm8YASABKAsyDS5Qb3NpdGlvbkluZm8ieQoKQzJTX0FjdGlv",
|
||||
"bhIQCghTZXF1ZW5jZRgBIAEoDRIRCglUaW1lc3RhbXAYAiABKAMSGQoGQWN0",
|
||||
"aW9uGAMgASgOMgkuQWN0aW9uSUQSDAoERGlyWBgEIAEoERIMCgREaXJZGAUg",
|
||||
"ASgREg8KB1NraWxsSUQYBiABKAUiMQoMUG9zaXRpb25JbmZvEgsKA1VJRBgB",
|
||||
"IAEoBRIJCgFYGAIgASgREgkKAVkYAyABKBEiKwoMUzJDX1Bvc2l0aW9uEhsK",
|
||||
"ASgREg8KB1NraWxsSUQYBiABKAUiMQoMUG9zaXRpb25JbmZvEgsKA1VTThgB",
|
||||
"IAEoAxIJCgFYGAIgASgREgkKAVkYAyABKBEiKwoMUzJDX1Bvc2l0aW9uEhsK",
|
||||
"BEluZm8YASADKAsyDS5Qb3NpdGlvbkluZm8qNAoIQWN0aW9uSUQSEgoOQUNU",
|
||||
"SU9OX0lEX01PVkUQABIUChBBQ1RJT05fSURfQVRUQUNLEAFCF1oVY29tbW9u",
|
||||
"L3Byb3RvL3NjL3NjX3BiYgZwcm90bzM="));
|
||||
@@ -38,7 +38,7 @@ public static partial class ActionReflection {
|
||||
new pbr::GeneratedClrTypeInfo(typeof(global::C2S_EnterInstance), global::C2S_EnterInstance.Parser, new[]{ "InstanceID" }, null, null, null, null),
|
||||
new pbr::GeneratedClrTypeInfo(typeof(global::S2C_EnterInstance), global::S2C_EnterInstance.Parser, new[]{ "Info" }, null, null, null, null),
|
||||
new pbr::GeneratedClrTypeInfo(typeof(global::C2S_Action), global::C2S_Action.Parser, new[]{ "Sequence", "Timestamp", "Action", "DirX", "DirY", "SkillID" }, null, null, null, null),
|
||||
new pbr::GeneratedClrTypeInfo(typeof(global::PositionInfo), global::PositionInfo.Parser, new[]{ "UID", "X", "Y" }, null, null, null, null),
|
||||
new pbr::GeneratedClrTypeInfo(typeof(global::PositionInfo), global::PositionInfo.Parser, new[]{ "USN", "X", "Y" }, null, null, null, null),
|
||||
new pbr::GeneratedClrTypeInfo(typeof(global::S2C_Position), global::S2C_Position.Parser, new[]{ "Info" }, null, null, null, null)
|
||||
}));
|
||||
}
|
||||
@@ -886,7 +886,7 @@ public sealed partial class PositionInfo : pb::IMessage<PositionInfo>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public PositionInfo(PositionInfo other) : this() {
|
||||
uID_ = other.uID_;
|
||||
uSN_ = other.uSN_;
|
||||
x_ = other.x_;
|
||||
y_ = other.y_;
|
||||
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
||||
@@ -898,15 +898,15 @@ public sealed partial class PositionInfo : pb::IMessage<PositionInfo>
|
||||
return new PositionInfo(this);
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "UID" field.</summary>
|
||||
public const int UIDFieldNumber = 1;
|
||||
private int uID_;
|
||||
/// <summary>Field number for the "USN" field.</summary>
|
||||
public const int USNFieldNumber = 1;
|
||||
private long uSN_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public int UID {
|
||||
get { return uID_; }
|
||||
public long USN {
|
||||
get { return uSN_; }
|
||||
set {
|
||||
uID_ = value;
|
||||
uSN_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -949,7 +949,7 @@ public sealed partial class PositionInfo : pb::IMessage<PositionInfo>
|
||||
if (ReferenceEquals(other, this)) {
|
||||
return true;
|
||||
}
|
||||
if (UID != other.UID) return false;
|
||||
if (USN != other.USN) return false;
|
||||
if (X != other.X) return false;
|
||||
if (Y != other.Y) return false;
|
||||
return Equals(_unknownFields, other._unknownFields);
|
||||
@@ -959,7 +959,7 @@ public sealed partial class PositionInfo : pb::IMessage<PositionInfo>
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override int GetHashCode() {
|
||||
int hash = 1;
|
||||
if (UID != 0) hash ^= UID.GetHashCode();
|
||||
if (USN != 0L) hash ^= USN.GetHashCode();
|
||||
if (X != 0) hash ^= X.GetHashCode();
|
||||
if (Y != 0) hash ^= Y.GetHashCode();
|
||||
if (_unknownFields != null) {
|
||||
@@ -980,9 +980,9 @@ public sealed partial class PositionInfo : pb::IMessage<PositionInfo>
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
output.WriteRawMessage(this);
|
||||
#else
|
||||
if (UID != 0) {
|
||||
if (USN != 0L) {
|
||||
output.WriteRawTag(8);
|
||||
output.WriteInt32(UID);
|
||||
output.WriteInt64(USN);
|
||||
}
|
||||
if (X != 0) {
|
||||
output.WriteRawTag(16);
|
||||
@@ -1002,9 +1002,9 @@ public sealed partial class PositionInfo : pb::IMessage<PositionInfo>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
|
||||
if (UID != 0) {
|
||||
if (USN != 0L) {
|
||||
output.WriteRawTag(8);
|
||||
output.WriteInt32(UID);
|
||||
output.WriteInt64(USN);
|
||||
}
|
||||
if (X != 0) {
|
||||
output.WriteRawTag(16);
|
||||
@@ -1024,8 +1024,8 @@ public sealed partial class PositionInfo : pb::IMessage<PositionInfo>
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public int CalculateSize() {
|
||||
int size = 0;
|
||||
if (UID != 0) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeInt32Size(UID);
|
||||
if (USN != 0L) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeInt64Size(USN);
|
||||
}
|
||||
if (X != 0) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeSInt32Size(X);
|
||||
@@ -1045,8 +1045,8 @@ public sealed partial class PositionInfo : pb::IMessage<PositionInfo>
|
||||
if (other == null) {
|
||||
return;
|
||||
}
|
||||
if (other.UID != 0) {
|
||||
UID = other.UID;
|
||||
if (other.USN != 0L) {
|
||||
USN = other.USN;
|
||||
}
|
||||
if (other.X != 0) {
|
||||
X = other.X;
|
||||
@@ -1070,7 +1070,7 @@ public sealed partial class PositionInfo : pb::IMessage<PositionInfo>
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
||||
break;
|
||||
case 8: {
|
||||
UID = input.ReadInt32();
|
||||
USN = input.ReadInt64();
|
||||
break;
|
||||
}
|
||||
case 16: {
|
||||
@@ -1097,7 +1097,7 @@ public sealed partial class PositionInfo : pb::IMessage<PositionInfo>
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
|
||||
break;
|
||||
case 8: {
|
||||
UID = input.ReadInt32();
|
||||
USN = input.ReadInt64();
|
||||
break;
|
||||
}
|
||||
case 16: {
|
||||
|
||||
@@ -256,7 +256,7 @@ type PositionInfo struct {
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
UID int32 `protobuf:"varint,1,opt,name=UID,proto3" json:"UID,omitempty"`
|
||||
USN int64 `protobuf:"varint,1,opt,name=USN,proto3" json:"USN,omitempty"`
|
||||
X int32 `protobuf:"zigzag32,2,opt,name=X,proto3" json:"X,omitempty"`
|
||||
Y int32 `protobuf:"zigzag32,3,opt,name=Y,proto3" json:"Y,omitempty"`
|
||||
}
|
||||
@@ -293,9 +293,9 @@ func (*PositionInfo) Descriptor() ([]byte, []int) {
|
||||
return file_action_proto_rawDescGZIP(), []int{3}
|
||||
}
|
||||
|
||||
func (x *PositionInfo) GetUID() int32 {
|
||||
func (x *PositionInfo) GetUSN() int64 {
|
||||
if x != nil {
|
||||
return x.UID
|
||||
return x.USN
|
||||
}
|
||||
return 0
|
||||
}
|
||||
@@ -384,8 +384,8 @@ var file_action_proto_rawDesc = []byte{
|
||||
0x44, 0x69, 0x72, 0x59, 0x18, 0x05, 0x20, 0x01, 0x28, 0x11, 0x52, 0x04, 0x44, 0x69, 0x72, 0x59,
|
||||
0x12, 0x18, 0x0a, 0x07, 0x53, 0x6b, 0x69, 0x6c, 0x6c, 0x49, 0x44, 0x18, 0x06, 0x20, 0x01, 0x28,
|
||||
0x05, 0x52, 0x07, 0x53, 0x6b, 0x69, 0x6c, 0x6c, 0x49, 0x44, 0x22, 0x3c, 0x0a, 0x0c, 0x50, 0x6f,
|
||||
0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x10, 0x0a, 0x03, 0x55, 0x49,
|
||||
0x44, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x55, 0x49, 0x44, 0x12, 0x0c, 0x0a, 0x01,
|
||||
0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x10, 0x0a, 0x03, 0x55, 0x53,
|
||||
0x4e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x03, 0x55, 0x53, 0x4e, 0x12, 0x0c, 0x0a, 0x01,
|
||||
0x58, 0x18, 0x02, 0x20, 0x01, 0x28, 0x11, 0x52, 0x01, 0x58, 0x12, 0x0c, 0x0a, 0x01, 0x59, 0x18,
|
||||
0x03, 0x20, 0x01, 0x28, 0x11, 0x52, 0x01, 0x59, 0x22, 0x31, 0x0a, 0x0c, 0x53, 0x32, 0x43, 0x5f,
|
||||
0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x21, 0x0a, 0x04, 0x49, 0x6e, 0x66, 0x6f,
|
||||
|
||||
@@ -27,7 +27,7 @@ message C2S_Action {
|
||||
|
||||
// MESSAGE_ID_POSITION
|
||||
message PositionInfo {
|
||||
int32 UID = 1;
|
||||
int64 USN = 1;
|
||||
sint32 X = 2;
|
||||
sint32 Y = 3;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user