feat 网关鉴权

This commit is contained in:
2025-12-22 18:04:36 +08:00
parent 69cc960fe5
commit 670140e7d3
68 changed files with 1424 additions and 492 deletions

View File

@@ -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: {