归档!
This commit is contained in:
@@ -29,9 +29,10 @@ public static partial class ActionReflection {
|
||||
"aW9uGAMgASgOMgkuQWN0aW9uSUQSDAoERGlyWBgEIAEoERIMCgREaXJZGAUg",
|
||||
"ASgREg8KB1NraWxsSUQYBiABKAUiMQoMUG9zaXRpb25JbmZvEgsKA1VTThgB",
|
||||
"IAEoAxIJCgFYGAIgASgREgkKAVkYAyABKBEiKwoMUzJDX1Bvc2l0aW9uEhsK",
|
||||
"BEluZm8YASADKAsyDS5Qb3NpdGlvbkluZm8qNAoIQWN0aW9uSUQSEgoOQUNU",
|
||||
"SU9OX0lEX01PVkUQABIUChBBQ1RJT05fSURfQVRUQUNLEAFCF1oVY29tbW9u",
|
||||
"L3Byb3RvL3NjL3NjX3BiYgZwcm90bzM="));
|
||||
"BEluZm8YASADKAsyDS5Qb3NpdGlvbkluZm8qSwoIQWN0aW9uSUQSFQoRQUNU",
|
||||
"SU9OX0lEX0lOVkFMSUQQABISCg5BQ1RJT05fSURfTU9WRRABEhQKEEFDVElP",
|
||||
"Tl9JRF9BVFRBQ0sQAkIXWhVjb21tb24vcHJvdG8vc2Mvc2NfcGJiBnByb3Rv",
|
||||
"Mw=="));
|
||||
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
||||
new pbr::FileDescriptor[] { global::ScCommonReflection.Descriptor, },
|
||||
new pbr::GeneratedClrTypeInfo(new[] {typeof(global::ActionID), }, null, new pbr::GeneratedClrTypeInfo[] {
|
||||
@@ -50,14 +51,15 @@ public static partial class ActionReflection {
|
||||
/// MESSAGE_ID_ACTION
|
||||
/// </summary>
|
||||
public enum ActionID {
|
||||
[pbr::OriginalName("ACTION_ID_INVALID")] Invalid = 0,
|
||||
/// <summary>
|
||||
/// 移动
|
||||
/// </summary>
|
||||
[pbr::OriginalName("ACTION_ID_MOVE")] Move = 0,
|
||||
[pbr::OriginalName("ACTION_ID_MOVE")] Move = 1,
|
||||
/// <summary>
|
||||
/// 攻击
|
||||
/// </summary>
|
||||
[pbr::OriginalName("ACTION_ID_ATTACK")] Attack = 1,
|
||||
[pbr::OriginalName("ACTION_ID_ATTACK")] Attack = 2,
|
||||
}
|
||||
|
||||
#endregion
|
||||
@@ -537,7 +539,7 @@ public sealed partial class C2S_Action : pb::IMessage<C2S_Action>
|
||||
|
||||
/// <summary>Field number for the "Action" field.</summary>
|
||||
public const int ActionFieldNumber = 3;
|
||||
private global::ActionID action_ = global::ActionID.Move;
|
||||
private global::ActionID action_ = global::ActionID.Invalid;
|
||||
/// <summary>
|
||||
/// 指令ID
|
||||
/// </summary>
|
||||
@@ -625,7 +627,7 @@ public sealed partial class C2S_Action : pb::IMessage<C2S_Action>
|
||||
int hash = 1;
|
||||
if (Sequence != 0) hash ^= Sequence.GetHashCode();
|
||||
if (Timestamp != 0L) hash ^= Timestamp.GetHashCode();
|
||||
if (Action != global::ActionID.Move) hash ^= Action.GetHashCode();
|
||||
if (Action != global::ActionID.Invalid) hash ^= Action.GetHashCode();
|
||||
if (DirX != 0) hash ^= DirX.GetHashCode();
|
||||
if (DirY != 0) hash ^= DirY.GetHashCode();
|
||||
if (SkillID != 0) hash ^= SkillID.GetHashCode();
|
||||
@@ -655,7 +657,7 @@ public sealed partial class C2S_Action : pb::IMessage<C2S_Action>
|
||||
output.WriteRawTag(16);
|
||||
output.WriteInt64(Timestamp);
|
||||
}
|
||||
if (Action != global::ActionID.Move) {
|
||||
if (Action != global::ActionID.Invalid) {
|
||||
output.WriteRawTag(24);
|
||||
output.WriteEnum((int) Action);
|
||||
}
|
||||
@@ -689,7 +691,7 @@ public sealed partial class C2S_Action : pb::IMessage<C2S_Action>
|
||||
output.WriteRawTag(16);
|
||||
output.WriteInt64(Timestamp);
|
||||
}
|
||||
if (Action != global::ActionID.Move) {
|
||||
if (Action != global::ActionID.Invalid) {
|
||||
output.WriteRawTag(24);
|
||||
output.WriteEnum((int) Action);
|
||||
}
|
||||
@@ -721,7 +723,7 @@ public sealed partial class C2S_Action : pb::IMessage<C2S_Action>
|
||||
if (Timestamp != 0L) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeInt64Size(Timestamp);
|
||||
}
|
||||
if (Action != global::ActionID.Move) {
|
||||
if (Action != global::ActionID.Invalid) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Action);
|
||||
}
|
||||
if (DirX != 0) {
|
||||
@@ -751,7 +753,7 @@ public sealed partial class C2S_Action : pb::IMessage<C2S_Action>
|
||||
if (other.Timestamp != 0L) {
|
||||
Timestamp = other.Timestamp;
|
||||
}
|
||||
if (other.Action != global::ActionID.Move) {
|
||||
if (other.Action != global::ActionID.Invalid) {
|
||||
Action = other.Action;
|
||||
}
|
||||
if (other.DirX != 0) {
|
||||
|
||||
Reference in New Issue
Block a user