Compare commits
No commits in common. "9072256301c8eabbfe8154cb9c0edd855aab366d" and "811a4c35122fec133b65d7b9894cc25afc8faa70" have entirely different histories.
9072256301
...
811a4c3512
@ -1,34 +1,6 @@
|
|||||||
%YAML 1.1
|
%YAML 1.1
|
||||||
%TAG !u! tag:unity3d.com,2011:
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
--- !u!1102 &-7494286096945644898
|
--- !u!1101 &-5083329074022439226
|
||||||
AnimatorState:
|
|
||||||
serializedVersion: 6
|
|
||||||
m_ObjectHideFlags: 1
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_Name: idle
|
|
||||||
m_Speed: 1
|
|
||||||
m_CycleOffset: 0
|
|
||||||
m_Transitions:
|
|
||||||
- {fileID: 3074207396828194077}
|
|
||||||
- {fileID: -3798024589101560023}
|
|
||||||
m_StateMachineBehaviours: []
|
|
||||||
m_Position: {x: 50, y: 50, z: 0}
|
|
||||||
m_IKOnFeet: 0
|
|
||||||
m_WriteDefaultValues: 1
|
|
||||||
m_Mirror: 0
|
|
||||||
m_SpeedParameterActive: 0
|
|
||||||
m_MirrorParameterActive: 0
|
|
||||||
m_CycleOffsetParameterActive: 0
|
|
||||||
m_TimeParameterActive: 0
|
|
||||||
m_Motion: {fileID: 7400000, guid: 471152417041a2940a4295d01794f152, type: 2}
|
|
||||||
m_Tag:
|
|
||||||
m_SpeedParameter:
|
|
||||||
m_MirrorParameter:
|
|
||||||
m_CycleOffsetParameter:
|
|
||||||
m_TimeParameter:
|
|
||||||
--- !u!1101 &-7478834394725811032
|
|
||||||
AnimatorStateTransition:
|
AnimatorStateTransition:
|
||||||
m_ObjectHideFlags: 1
|
m_ObjectHideFlags: 1
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
@ -36,11 +8,11 @@ AnimatorStateTransition:
|
|||||||
m_PrefabAsset: {fileID: 0}
|
m_PrefabAsset: {fileID: 0}
|
||||||
m_Name:
|
m_Name:
|
||||||
m_Conditions:
|
m_Conditions:
|
||||||
- m_ConditionMode: 6
|
- m_ConditionMode: 2
|
||||||
m_ConditionEvent: state
|
m_ConditionEvent: Recuse
|
||||||
m_EventTreshold: 0
|
m_EventTreshold: 0
|
||||||
m_DstStateMachine: {fileID: 0}
|
m_DstStateMachine: {fileID: 0}
|
||||||
m_DstState: {fileID: -963242654641360267}
|
m_DstState: {fileID: -1085241712214742412}
|
||||||
m_Solo: 0
|
m_Solo: 0
|
||||||
m_Mute: 0
|
m_Mute: 0
|
||||||
m_IsExit: 0
|
m_IsExit: 0
|
||||||
@ -53,31 +25,6 @@ AnimatorStateTransition:
|
|||||||
m_InterruptionSource: 0
|
m_InterruptionSource: 0
|
||||||
m_OrderedInterruption: 1
|
m_OrderedInterruption: 1
|
||||||
m_CanTransitionToSelf: 1
|
m_CanTransitionToSelf: 1
|
||||||
--- !u!1101 &-3798024589101560023
|
|
||||||
AnimatorStateTransition:
|
|
||||||
m_ObjectHideFlags: 1
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_Name:
|
|
||||||
m_Conditions:
|
|
||||||
- m_ConditionMode: 6
|
|
||||||
m_ConditionEvent: state
|
|
||||||
m_EventTreshold: 0
|
|
||||||
m_DstStateMachine: {fileID: 0}
|
|
||||||
m_DstState: {fileID: -963242654641360267}
|
|
||||||
m_Solo: 0
|
|
||||||
m_Mute: 0
|
|
||||||
m_IsExit: 0
|
|
||||||
serializedVersion: 3
|
|
||||||
m_TransitionDuration: 0.25
|
|
||||||
m_TransitionOffset: 0
|
|
||||||
m_ExitTime: 0.9390244
|
|
||||||
m_HasExitTime: 1
|
|
||||||
m_HasFixedDuration: 1
|
|
||||||
m_InterruptionSource: 0
|
|
||||||
m_OrderedInterruption: 1
|
|
||||||
m_CanTransitionToSelf: 1
|
|
||||||
--- !u!1101 &-2928487774769089836
|
--- !u!1101 &-2928487774769089836
|
||||||
AnimatorStateTransition:
|
AnimatorStateTransition:
|
||||||
m_ObjectHideFlags: 1
|
m_ObjectHideFlags: 1
|
||||||
@ -86,9 +33,9 @@ AnimatorStateTransition:
|
|||||||
m_PrefabAsset: {fileID: 0}
|
m_PrefabAsset: {fileID: 0}
|
||||||
m_Name:
|
m_Name:
|
||||||
m_Conditions:
|
m_Conditions:
|
||||||
- m_ConditionMode: 6
|
- m_ConditionMode: 1
|
||||||
m_ConditionEvent: state
|
m_ConditionEvent: Recuse
|
||||||
m_EventTreshold: 1
|
m_EventTreshold: 0
|
||||||
m_DstStateMachine: {fileID: 0}
|
m_DstStateMachine: {fileID: 0}
|
||||||
m_DstState: {fileID: 5494399718017335990}
|
m_DstState: {fileID: 5494399718017335990}
|
||||||
m_Solo: 0
|
m_Solo: 0
|
||||||
@ -119,8 +66,8 @@ AnimatorStateMachine:
|
|||||||
m_State: {fileID: 5494399718017335990}
|
m_State: {fileID: 5494399718017335990}
|
||||||
m_Position: {x: 310, y: 120, z: 0}
|
m_Position: {x: 310, y: 120, z: 0}
|
||||||
- serializedVersion: 1
|
- serializedVersion: 1
|
||||||
m_State: {fileID: -7494286096945644898}
|
m_State: {fileID: -1085241712214742412}
|
||||||
m_Position: {x: 300, y: 250, z: 0}
|
m_Position: {x: 310, y: 220, z: 0}
|
||||||
m_ChildStateMachines: []
|
m_ChildStateMachines: []
|
||||||
m_AnyStateTransitions: []
|
m_AnyStateTransitions: []
|
||||||
m_EntryTransitions: []
|
m_EntryTransitions: []
|
||||||
@ -131,44 +78,17 @@ AnimatorStateMachine:
|
|||||||
m_ExitPosition: {x: 800, y: 120, z: 0}
|
m_ExitPosition: {x: 800, y: 120, z: 0}
|
||||||
m_ParentStateMachinePosition: {x: 800, y: 20, z: 0}
|
m_ParentStateMachinePosition: {x: 800, y: 20, z: 0}
|
||||||
m_DefaultState: {fileID: -963242654641360267}
|
m_DefaultState: {fileID: -963242654641360267}
|
||||||
--- !u!1101 &-1024762781344007907
|
--- !u!1102 &-1085241712214742412
|
||||||
AnimatorStateTransition:
|
|
||||||
m_ObjectHideFlags: 1
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_Name:
|
|
||||||
m_Conditions:
|
|
||||||
- m_ConditionMode: 6
|
|
||||||
m_ConditionEvent: state
|
|
||||||
m_EventTreshold: 2
|
|
||||||
m_DstStateMachine: {fileID: 0}
|
|
||||||
m_DstState: {fileID: -7494286096945644898}
|
|
||||||
m_Solo: 0
|
|
||||||
m_Mute: 0
|
|
||||||
m_IsExit: 0
|
|
||||||
serializedVersion: 3
|
|
||||||
m_TransitionDuration: 0.25
|
|
||||||
m_TransitionOffset: 0
|
|
||||||
m_ExitTime: 0.57865167
|
|
||||||
m_HasExitTime: 1
|
|
||||||
m_HasFixedDuration: 1
|
|
||||||
m_InterruptionSource: 0
|
|
||||||
m_OrderedInterruption: 1
|
|
||||||
m_CanTransitionToSelf: 1
|
|
||||||
--- !u!1102 &-963242654641360267
|
|
||||||
AnimatorState:
|
AnimatorState:
|
||||||
serializedVersion: 6
|
serializedVersion: 6
|
||||||
m_ObjectHideFlags: 1
|
m_ObjectHideFlags: 1
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
m_PrefabInstance: {fileID: 0}
|
m_PrefabInstance: {fileID: 0}
|
||||||
m_PrefabAsset: {fileID: 0}
|
m_PrefabAsset: {fileID: 0}
|
||||||
m_Name: dead
|
m_Name: New State
|
||||||
m_Speed: 1
|
m_Speed: 1
|
||||||
m_CycleOffset: 0
|
m_CycleOffset: 0
|
||||||
m_Transitions:
|
m_Transitions: []
|
||||||
- {fileID: -2928487774769089836}
|
|
||||||
- {fileID: -931227757920040213}
|
|
||||||
m_StateMachineBehaviours: []
|
m_StateMachineBehaviours: []
|
||||||
m_Position: {x: 50, y: 50, z: 0}
|
m_Position: {x: 50, y: 50, z: 0}
|
||||||
m_IKOnFeet: 0
|
m_IKOnFeet: 0
|
||||||
@ -184,31 +104,33 @@ AnimatorState:
|
|||||||
m_MirrorParameter:
|
m_MirrorParameter:
|
||||||
m_CycleOffsetParameter:
|
m_CycleOffsetParameter:
|
||||||
m_TimeParameter:
|
m_TimeParameter:
|
||||||
--- !u!1101 &-931227757920040213
|
--- !u!1102 &-963242654641360267
|
||||||
AnimatorStateTransition:
|
AnimatorState:
|
||||||
|
serializedVersion: 6
|
||||||
m_ObjectHideFlags: 1
|
m_ObjectHideFlags: 1
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
m_PrefabInstance: {fileID: 0}
|
m_PrefabInstance: {fileID: 0}
|
||||||
m_PrefabAsset: {fileID: 0}
|
m_PrefabAsset: {fileID: 0}
|
||||||
m_Name:
|
m_Name: dead
|
||||||
m_Conditions:
|
m_Speed: 1
|
||||||
- m_ConditionMode: 6
|
m_CycleOffset: 0
|
||||||
m_ConditionEvent: state
|
m_Transitions:
|
||||||
m_EventTreshold: 2
|
- {fileID: -2928487774769089836}
|
||||||
m_DstStateMachine: {fileID: 0}
|
m_StateMachineBehaviours: []
|
||||||
m_DstState: {fileID: -7494286096945644898}
|
m_Position: {x: 50, y: 50, z: 0}
|
||||||
m_Solo: 0
|
m_IKOnFeet: 0
|
||||||
m_Mute: 0
|
m_WriteDefaultValues: 1
|
||||||
m_IsExit: 0
|
m_Mirror: 0
|
||||||
serializedVersion: 3
|
m_SpeedParameterActive: 0
|
||||||
m_TransitionDuration: 0.25
|
m_MirrorParameterActive: 0
|
||||||
m_TransitionOffset: 0
|
m_CycleOffsetParameterActive: 0
|
||||||
m_ExitTime: 0.9292453
|
m_TimeParameterActive: 0
|
||||||
m_HasExitTime: 1
|
m_Motion: {fileID: -203655887218126122, guid: 4f5096cf35822b94cacebf7fb5d86d34, type: 3}
|
||||||
m_HasFixedDuration: 1
|
m_Tag:
|
||||||
m_InterruptionSource: 0
|
m_SpeedParameter:
|
||||||
m_OrderedInterruption: 1
|
m_MirrorParameter:
|
||||||
m_CanTransitionToSelf: 1
|
m_CycleOffsetParameter:
|
||||||
|
m_TimeParameter:
|
||||||
--- !u!91 &9100000
|
--- !u!91 &9100000
|
||||||
AnimatorController:
|
AnimatorController:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
@ -224,12 +146,6 @@ AnimatorController:
|
|||||||
m_DefaultInt: 0
|
m_DefaultInt: 0
|
||||||
m_DefaultBool: 0
|
m_DefaultBool: 0
|
||||||
m_Controller: {fileID: 9100000}
|
m_Controller: {fileID: 9100000}
|
||||||
- m_Name: state
|
|
||||||
m_Type: 3
|
|
||||||
m_DefaultFloat: 0
|
|
||||||
m_DefaultInt: 0
|
|
||||||
m_DefaultBool: 0
|
|
||||||
m_Controller: {fileID: 9100000}
|
|
||||||
m_AnimatorLayers:
|
m_AnimatorLayers:
|
||||||
- serializedVersion: 5
|
- serializedVersion: 5
|
||||||
m_Name: Base Layer
|
m_Name: Base Layer
|
||||||
@ -243,31 +159,6 @@ AnimatorController:
|
|||||||
m_IKPass: 0
|
m_IKPass: 0
|
||||||
m_SyncedLayerAffectsTiming: 0
|
m_SyncedLayerAffectsTiming: 0
|
||||||
m_Controller: {fileID: 9100000}
|
m_Controller: {fileID: 9100000}
|
||||||
--- !u!1101 &3074207396828194077
|
|
||||||
AnimatorStateTransition:
|
|
||||||
m_ObjectHideFlags: 1
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_Name:
|
|
||||||
m_Conditions:
|
|
||||||
- m_ConditionMode: 6
|
|
||||||
m_ConditionEvent: state
|
|
||||||
m_EventTreshold: 1
|
|
||||||
m_DstStateMachine: {fileID: 0}
|
|
||||||
m_DstState: {fileID: 5494399718017335990}
|
|
||||||
m_Solo: 0
|
|
||||||
m_Mute: 0
|
|
||||||
m_IsExit: 0
|
|
||||||
serializedVersion: 3
|
|
||||||
m_TransitionDuration: 0.25
|
|
||||||
m_TransitionOffset: 0
|
|
||||||
m_ExitTime: 0.9390244
|
|
||||||
m_HasExitTime: 1
|
|
||||||
m_HasFixedDuration: 1
|
|
||||||
m_InterruptionSource: 0
|
|
||||||
m_OrderedInterruption: 1
|
|
||||||
m_CanTransitionToSelf: 1
|
|
||||||
--- !u!1102 &5494399718017335990
|
--- !u!1102 &5494399718017335990
|
||||||
AnimatorState:
|
AnimatorState:
|
||||||
serializedVersion: 6
|
serializedVersion: 6
|
||||||
@ -279,8 +170,7 @@ AnimatorState:
|
|||||||
m_Speed: 1
|
m_Speed: 1
|
||||||
m_CycleOffset: 0
|
m_CycleOffset: 0
|
||||||
m_Transitions:
|
m_Transitions:
|
||||||
- {fileID: -1024762781344007907}
|
- {fileID: -5083329074022439226}
|
||||||
- {fileID: -7478834394725811032}
|
|
||||||
m_StateMachineBehaviours: []
|
m_StateMachineBehaviours: []
|
||||||
m_Position: {x: 50, y: 50, z: 0}
|
m_Position: {x: 50, y: 50, z: 0}
|
||||||
m_IKOnFeet: 0
|
m_IKOnFeet: 0
|
||||||
|
@ -7,7 +7,7 @@ public enum Npcstate
|
|||||||
{
|
{
|
||||||
idle,
|
idle,
|
||||||
dead,
|
dead,
|
||||||
run
|
healthy
|
||||||
}
|
}
|
||||||
|
|
||||||
public class RecuseNpc : MonoBehaviour
|
public class RecuseNpc : MonoBehaviour
|
||||||
@ -18,7 +18,7 @@ public class RecuseNpc : MonoBehaviour
|
|||||||
|
|
||||||
private Animator anim;
|
private Animator anim;
|
||||||
|
|
||||||
public Npcstate nstate = Npcstate.dead;
|
private Npcstate nstate = Npcstate.dead;
|
||||||
|
|
||||||
private bool movebool = false;
|
private bool movebool = false;
|
||||||
private Transform target;
|
private Transform target;
|
||||||
@ -44,9 +44,8 @@ public class RecuseNpc : MonoBehaviour
|
|||||||
|
|
||||||
public void Setnpcstate()//点击救援按钮执行完动作后对按钮进行隐藏
|
public void Setnpcstate()//点击救援按钮执行完动作后对按钮进行隐藏
|
||||||
{
|
{
|
||||||
|
|
||||||
movebool = true;
|
movebool = true;
|
||||||
nstate = Npcstate.run;
|
nstate = Npcstate.healthy;
|
||||||
recusebtn.gameObject.SetActive(false);
|
recusebtn.gameObject.SetActive(false);
|
||||||
Debug.Log("Setnpcstate调用");
|
Debug.Log("Setnpcstate调用");
|
||||||
}
|
}
|
||||||
@ -64,33 +63,19 @@ public class RecuseNpc : MonoBehaviour
|
|||||||
switch (nstate)//通过枚举状态实现人物是否被救援,以及动作的改变
|
switch (nstate)//通过枚举状态实现人物是否被救援,以及动作的改变
|
||||||
{
|
{
|
||||||
case Npcstate.idle:
|
case Npcstate.idle:
|
||||||
SetAni(2);
|
anim.SetBool("Recuse", false);
|
||||||
break;
|
break;
|
||||||
case Npcstate.run:
|
case Npcstate.healthy:
|
||||||
movebool = true;
|
anim.SetBool("Recuse", true);
|
||||||
Run();
|
transform.LookAt(target);
|
||||||
|
transform.position = Vector3.Lerp(transform.position, target.position, 0.3f * Time.deltaTime);
|
||||||
break;
|
break;
|
||||||
case Npcstate.dead:
|
case Npcstate.dead:
|
||||||
SetAni(0);
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
//Åܲ½Âß¼
|
|
||||||
public void Run()
|
|
||||||
{
|
|
||||||
if (movebool)
|
|
||||||
{
|
|
||||||
SetAni(1);
|
|
||||||
transform.LookAt(target);
|
|
||||||
transform.position = Vector3.Lerp(transform.position, target.position, 0.3f * Time.deltaTime);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public void SetAni(int x)
|
|
||||||
{
|
|
||||||
anim.SetInteger("state", x);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -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:
|
|
@ -27,7 +27,7 @@ public static partial class FpsReflection {
|
|||||||
"B2ZyYW1lSUQYASABKA1IAIgBARIZCgVpbnB1dBgCIAMoCzIKLklucHV0RGF0",
|
"B2ZyYW1lSUQYASABKA1IAIgBARIZCgVpbnB1dBgCIAMoCzIKLklucHV0RGF0",
|
||||||
"YUIKCghfZnJhbWVJRCJpCglJbnB1dERhdGESCgoCaWQYASABKAkSCwoDc0lk",
|
"YUIKCghfZnJhbWVJRCJpCglJbnB1dERhdGESCgoCaWQYASABKAkSCwoDc0lk",
|
||||||
"GAIgASgJEgkKAXgYAyABKAISCQoBeRgEIAEoAhISCgpyb29tU2VhdElkGAUg",
|
"GAIgASgJEgkKAXgYAyABKAISCQoBeRgEIAEoAhISCgpyb29tU2VhdElkGAUg",
|
||||||
"ASgFEgkKAXoYBiABKAISDgoGcm9vbUlkGAggASgJIg8KDUVtcHR5UmVzcG9u",
|
"ASgFEgkKAXoYBiABKAISDgoGcm9vbUlkGAcgASgJIg8KDUVtcHR5UmVzcG9u",
|
||||||
"c2VCB1oFLi87cGJiBnByb3RvMw=="));
|
"c2VCB1oFLi87cGJiBnByb3RvMw=="));
|
||||||
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
||||||
new pbr::FileDescriptor[] { },
|
new pbr::FileDescriptor[] { },
|
||||||
@ -630,7 +630,7 @@ public sealed partial class InputData : pb::IMessage<InputData>
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>Field number for the "roomId" field.</summary>
|
/// <summary>Field number for the "roomId" field.</summary>
|
||||||
public const int RoomIdFieldNumber = 8;
|
public const int RoomIdFieldNumber = 7;
|
||||||
private string roomId_ = "";
|
private string roomId_ = "";
|
||||||
/// <summary>
|
/// <summary>
|
||||||
///房间id
|
///房间id
|
||||||
@ -723,7 +723,7 @@ public sealed partial class InputData : pb::IMessage<InputData>
|
|||||||
output.WriteFloat(Z);
|
output.WriteFloat(Z);
|
||||||
}
|
}
|
||||||
if (RoomId.Length != 0) {
|
if (RoomId.Length != 0) {
|
||||||
output.WriteRawTag(66);
|
output.WriteRawTag(58);
|
||||||
output.WriteString(RoomId);
|
output.WriteString(RoomId);
|
||||||
}
|
}
|
||||||
if (_unknownFields != null) {
|
if (_unknownFields != null) {
|
||||||
@ -761,7 +761,7 @@ public sealed partial class InputData : pb::IMessage<InputData>
|
|||||||
output.WriteFloat(Z);
|
output.WriteFloat(Z);
|
||||||
}
|
}
|
||||||
if (RoomId.Length != 0) {
|
if (RoomId.Length != 0) {
|
||||||
output.WriteRawTag(66);
|
output.WriteRawTag(58);
|
||||||
output.WriteString(RoomId);
|
output.WriteString(RoomId);
|
||||||
}
|
}
|
||||||
if (_unknownFields != null) {
|
if (_unknownFields != null) {
|
||||||
@ -871,7 +871,7 @@ public sealed partial class InputData : pb::IMessage<InputData>
|
|||||||
Z = input.ReadFloat();
|
Z = input.ReadFloat();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case 66: {
|
case 58: {
|
||||||
RoomId = input.ReadString();
|
RoomId = input.ReadString();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@ -918,7 +918,7 @@ public sealed partial class InputData : pb::IMessage<InputData>
|
|||||||
Z = input.ReadFloat();
|
Z = input.ReadFloat();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case 66: {
|
case 58: {
|
||||||
RoomId = input.ReadString();
|
RoomId = input.ReadString();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -1217,9 +1217,6 @@ public sealed partial class JoinRoomResponse : pb::IMessage<JoinRoomResponse>
|
|||||||
/// <summary>Field number for the "data" field.</summary>
|
/// <summary>Field number for the "data" field.</summary>
|
||||||
public const int DataFieldNumber = 3;
|
public const int DataFieldNumber = 3;
|
||||||
private global::PlayerJoinResponse data_;
|
private global::PlayerJoinResponse data_;
|
||||||
/// <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 global::PlayerJoinResponse Data {
|
public global::PlayerJoinResponse Data {
|
||||||
@ -1497,9 +1494,6 @@ public sealed partial class PlayerJoinResponse : pb::IMessage<PlayerJoinResponse
|
|||||||
/// <summary>Field number for the "UserName" field.</summary>
|
/// <summary>Field number for the "UserName" field.</summary>
|
||||||
public const int UserNameFieldNumber = 1;
|
public const int UserNameFieldNumber = 1;
|
||||||
private string userName_ = "";
|
private string userName_ = "";
|
||||||
/// <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 string UserName {
|
public string UserName {
|
||||||
@ -1512,9 +1506,6 @@ public sealed partial class PlayerJoinResponse : pb::IMessage<PlayerJoinResponse
|
|||||||
/// <summary>Field number for the "RoomId" field.</summary>
|
/// <summary>Field number for the "RoomId" field.</summary>
|
||||||
public const int RoomIdFieldNumber = 2;
|
public const int RoomIdFieldNumber = 2;
|
||||||
private string roomId_ = "";
|
private string roomId_ = "";
|
||||||
/// <summary>
|
|
||||||
/// 房间Id
|
|
||||||
/// </summary>
|
|
||||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||||
public string RoomId {
|
public string RoomId {
|
||||||
@ -1527,9 +1518,6 @@ public sealed partial class PlayerJoinResponse : pb::IMessage<PlayerJoinResponse
|
|||||||
/// <summary>Field number for the "Status" field.</summary>
|
/// <summary>Field number for the "Status" field.</summary>
|
||||||
public const int StatusFieldNumber = 3;
|
public const int StatusFieldNumber = 3;
|
||||||
private int status_;
|
private int status_;
|
||||||
/// <summary>
|
|
||||||
/// 状态 0 待加入 1进行中 2已结束
|
|
||||||
/// </summary>
|
|
||||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||||
public int Status {
|
public int Status {
|
||||||
@ -1542,9 +1530,6 @@ public sealed partial class PlayerJoinResponse : pb::IMessage<PlayerJoinResponse
|
|||||||
/// <summary>Field number for the "RoleName" field.</summary>
|
/// <summary>Field number for the "RoleName" field.</summary>
|
||||||
public const int RoleNameFieldNumber = 4;
|
public const int RoleNameFieldNumber = 4;
|
||||||
private string roleName_ = "";
|
private string roleName_ = "";
|
||||||
/// <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 string RoleName {
|
public string RoleName {
|
||||||
@ -1557,9 +1542,6 @@ public sealed partial class PlayerJoinResponse : pb::IMessage<PlayerJoinResponse
|
|||||||
/// <summary>Field number for the "IsLeadingNPC" field.</summary>
|
/// <summary>Field number for the "IsLeadingNPC" field.</summary>
|
||||||
public const int IsLeadingNPCFieldNumber = 5;
|
public const int IsLeadingNPCFieldNumber = 5;
|
||||||
private int isLeadingNPC_;
|
private int isLeadingNPC_;
|
||||||
/// <summary>
|
|
||||||
/// 1=此职业有分管NPC的功能
|
|
||||||
/// </summary>
|
|
||||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||||
public int IsLeadingNPC {
|
public int IsLeadingNPC {
|
||||||
@ -1572,9 +1554,6 @@ public sealed partial class PlayerJoinResponse : pb::IMessage<PlayerJoinResponse
|
|||||||
/// <summary>Field number for the "Online" field.</summary>
|
/// <summary>Field number for the "Online" field.</summary>
|
||||||
public const int OnlineFieldNumber = 6;
|
public const int OnlineFieldNumber = 6;
|
||||||
private bool online_;
|
private bool online_;
|
||||||
/// <summary>
|
|
||||||
/// 判断是否在线 true 在线 false 离线
|
|
||||||
/// </summary>
|
|
||||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||||
public bool Online {
|
public bool Online {
|
||||||
@ -1587,9 +1566,6 @@ public sealed partial class PlayerJoinResponse : pb::IMessage<PlayerJoinResponse
|
|||||||
/// <summary>Field number for the "RoleId" field.</summary>
|
/// <summary>Field number for the "RoleId" field.</summary>
|
||||||
public const int RoleIdFieldNumber = 7;
|
public const int RoleIdFieldNumber = 7;
|
||||||
private int roleId_;
|
private int roleId_;
|
||||||
/// <summary>
|
|
||||||
/// 角色id
|
|
||||||
/// </summary>
|
|
||||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||||
public int RoleId {
|
public int RoleId {
|
||||||
@ -1602,9 +1578,6 @@ public sealed partial class PlayerJoinResponse : pb::IMessage<PlayerJoinResponse
|
|||||||
/// <summary>Field number for the "GroupLeader" field.</summary>
|
/// <summary>Field number for the "GroupLeader" field.</summary>
|
||||||
public const int GroupLeaderFieldNumber = 8;
|
public const int GroupLeaderFieldNumber = 8;
|
||||||
private int groupLeader_;
|
private int groupLeader_;
|
||||||
/// <summary>
|
|
||||||
/// 是否是组长 0 组员 1 组长 2 总指挥 3 主持人
|
|
||||||
/// </summary>
|
|
||||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||||
public int GroupLeader {
|
public int GroupLeader {
|
||||||
@ -1617,9 +1590,6 @@ public sealed partial class PlayerJoinResponse : pb::IMessage<PlayerJoinResponse
|
|||||||
/// <summary>Field number for the "ActionMode" field.</summary>
|
/// <summary>Field number for the "ActionMode" field.</summary>
|
||||||
public const int ActionModeFieldNumber = 9;
|
public const int ActionModeFieldNumber = 9;
|
||||||
private int actionMode_;
|
private int actionMode_;
|
||||||
/// <summary>
|
|
||||||
/// 0=主持人 1=指令式行动 2=自由行动
|
|
||||||
/// </summary>
|
|
||||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||||
public int ActionMode {
|
public int ActionMode {
|
||||||
@ -1632,9 +1602,6 @@ public sealed partial class PlayerJoinResponse : pb::IMessage<PlayerJoinResponse
|
|||||||
/// <summary>Field number for the "Group" field.</summary>
|
/// <summary>Field number for the "Group" field.</summary>
|
||||||
public const int GroupFieldNumber = 10;
|
public const int GroupFieldNumber = 10;
|
||||||
private int group_;
|
private int group_;
|
||||||
/// <summary>
|
|
||||||
/// 小组归属 -1 无归属 有值有归属
|
|
||||||
/// </summary>
|
|
||||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||||
public int Group {
|
public int Group {
|
||||||
@ -1647,9 +1614,6 @@ 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 float x_;
|
||||||
/// <summary>
|
|
||||||
/// 坐标x
|
|
||||||
/// </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 float X {
|
||||||
@ -1662,9 +1626,6 @@ 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 float y_;
|
||||||
/// <summary>
|
|
||||||
/// 坐标y
|
|
||||||
/// </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 float Y {
|
||||||
@ -1677,9 +1638,6 @@ 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 float z_;
|
||||||
/// <summary>
|
|
||||||
/// 坐标z
|
|
||||||
/// </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 float Z {
|
||||||
@ -1692,9 +1650,6 @@ public sealed partial class PlayerJoinResponse : pb::IMessage<PlayerJoinResponse
|
|||||||
/// <summary>Field number for the "OverseeCond" field.</summary>
|
/// <summary>Field number for the "OverseeCond" field.</summary>
|
||||||
public const int OverseeCondFieldNumber = 14;
|
public const int OverseeCondFieldNumber = 14;
|
||||||
private string overseeCond_ = "";
|
private string overseeCond_ = "";
|
||||||
/// <summary>
|
|
||||||
/// 分管区域Id
|
|
||||||
/// </summary>
|
|
||||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||||
public string OverseeCond {
|
public string OverseeCond {
|
||||||
@ -1707,9 +1662,6 @@ public sealed partial class PlayerJoinResponse : pb::IMessage<PlayerJoinResponse
|
|||||||
/// <summary>Field number for the "SendFrameCount" field.</summary>
|
/// <summary>Field number for the "SendFrameCount" field.</summary>
|
||||||
public const int SendFrameCountFieldNumber = 15;
|
public const int SendFrameCountFieldNumber = 15;
|
||||||
private int sendFrameCount_;
|
private int sendFrameCount_;
|
||||||
/// <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 int SendFrameCount {
|
public int SendFrameCount {
|
||||||
@ -1722,9 +1674,6 @@ public sealed partial class PlayerJoinResponse : pb::IMessage<PlayerJoinResponse
|
|||||||
/// <summary>Field number for the "MoveSpeedFirst" field.</summary>
|
/// <summary>Field number for the "MoveSpeedFirst" field.</summary>
|
||||||
public const int MoveSpeedFirstFieldNumber = 16;
|
public const int MoveSpeedFirstFieldNumber = 16;
|
||||||
private int moveSpeedFirst_;
|
private int moveSpeedFirst_;
|
||||||
/// <summary>
|
|
||||||
/// 移动速度1
|
|
||||||
/// </summary>
|
|
||||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||||
public int MoveSpeedFirst {
|
public int MoveSpeedFirst {
|
||||||
@ -1737,9 +1686,6 @@ public sealed partial class PlayerJoinResponse : pb::IMessage<PlayerJoinResponse
|
|||||||
/// <summary>Field number for the "MoveSpeedSecond" field.</summary>
|
/// <summary>Field number for the "MoveSpeedSecond" field.</summary>
|
||||||
public const int MoveSpeedSecondFieldNumber = 17;
|
public const int MoveSpeedSecondFieldNumber = 17;
|
||||||
private int moveSpeedSecond_;
|
private int moveSpeedSecond_;
|
||||||
/// <summary>
|
|
||||||
/// 移动速度2
|
|
||||||
/// </summary>
|
|
||||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||||
public int MoveSpeedSecond {
|
public int MoveSpeedSecond {
|
||||||
@ -1752,9 +1698,6 @@ public sealed partial class PlayerJoinResponse : pb::IMessage<PlayerJoinResponse
|
|||||||
/// <summary>Field number for the "MoveSpeedThird" field.</summary>
|
/// <summary>Field number for the "MoveSpeedThird" field.</summary>
|
||||||
public const int MoveSpeedThirdFieldNumber = 18;
|
public const int MoveSpeedThirdFieldNumber = 18;
|
||||||
private int moveSpeedThird_;
|
private int moveSpeedThird_;
|
||||||
/// <summary>
|
|
||||||
/// 移动速度3
|
|
||||||
/// </summary>
|
|
||||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||||
public int MoveSpeedThird {
|
public int MoveSpeedThird {
|
||||||
@ -1767,9 +1710,6 @@ public sealed partial class PlayerJoinResponse : pb::IMessage<PlayerJoinResponse
|
|||||||
/// <summary>Field number for the "BearLoad" field.</summary>
|
/// <summary>Field number for the "BearLoad" field.</summary>
|
||||||
public const int BearLoadFieldNumber = 19;
|
public const int BearLoadFieldNumber = 19;
|
||||||
private int bearLoad_;
|
private int bearLoad_;
|
||||||
/// <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 int BearLoad {
|
public int BearLoad {
|
||||||
@ -1782,9 +1722,6 @@ public sealed partial class PlayerJoinResponse : pb::IMessage<PlayerJoinResponse
|
|||||||
/// <summary>Field number for the "Protection" field.</summary>
|
/// <summary>Field number for the "Protection" field.</summary>
|
||||||
public const int ProtectionFieldNumber = 20;
|
public const int ProtectionFieldNumber = 20;
|
||||||
private int protection_;
|
private int protection_;
|
||||||
/// <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 int Protection {
|
public int Protection {
|
||||||
@ -1797,9 +1734,6 @@ public sealed partial class PlayerJoinResponse : pb::IMessage<PlayerJoinResponse
|
|||||||
/// <summary>Field number for the "Health" field.</summary>
|
/// <summary>Field number for the "Health" field.</summary>
|
||||||
public const int HealthFieldNumber = 21;
|
public const int HealthFieldNumber = 21;
|
||||||
private int health_;
|
private int health_;
|
||||||
/// <summary>
|
|
||||||
/// 健康值 100
|
|
||||||
/// </summary>
|
|
||||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||||
public int Health {
|
public int Health {
|
||||||
@ -1812,9 +1746,6 @@ public sealed partial class PlayerJoinResponse : pb::IMessage<PlayerJoinResponse
|
|||||||
/// <summary>Field number for the "RoleStatus" field.</summary>
|
/// <summary>Field number for the "RoleStatus" field.</summary>
|
||||||
public const int RoleStatusFieldNumber = 22;
|
public const int RoleStatusFieldNumber = 22;
|
||||||
private int roleStatus_;
|
private int roleStatus_;
|
||||||
/// <summary>
|
|
||||||
/// 角色状态 0正常 1行动受限 2负伤 3昏迷 4手受伤
|
|
||||||
/// </summary>
|
|
||||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||||
public int RoleStatus {
|
public int RoleStatus {
|
||||||
@ -1827,9 +1758,6 @@ public sealed partial class PlayerJoinResponse : pb::IMessage<PlayerJoinResponse
|
|||||||
/// <summary>Field number for the "UserId" field.</summary>
|
/// <summary>Field number for the "UserId" field.</summary>
|
||||||
public const int UserIdFieldNumber = 23;
|
public const int UserIdFieldNumber = 23;
|
||||||
private long userId_;
|
private long userId_;
|
||||||
/// <summary>
|
|
||||||
/// 用户id
|
|
||||||
/// </summary>
|
|
||||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||||
public long UserId {
|
public long UserId {
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -22,21 +22,20 @@ public static partial class MoveReflection {
|
|||||||
static MoveReflection() {
|
static MoveReflection() {
|
||||||
byte[] descriptorData = global::System.Convert.FromBase64String(
|
byte[] descriptorData = global::System.Convert.FromBase64String(
|
||||||
string.Concat(
|
string.Concat(
|
||||||
"Cgptb3ZlLnByb3RvIkcKEE5wY0NyZWF0ZVJlcXVlc3QSDgoGcm9vbUlkGAEg",
|
"Cgptb3ZlLnByb3RvIiIKEE5wY0NyZWF0ZVJlcXVlc3QSDgoGcm9vbUlkGAEg",
|
||||||
"ASgJEhIKCnRlbXBsYXRlSWQYAiABKAMSDwoHc2NlbmVJZBgDIAEoCSITChFO",
|
"ASgJIhMKEU5wY0NyZWF0ZVJlc3BvbnNlIi8KC01vdmVSZXF1ZXN0Eg4KBnJv",
|
||||||
"cGNDcmVhdGVSZXNwb25zZSIvCgtNb3ZlUmVxdWVzdBIOCgZyb29tSWQYASAB",
|
"b21JZBgBIAEoCRIQCghtb3ZlVHlwZRgCIAEoBSJKCgxNb3ZlUmVzcG9uc2US",
|
||||||
"KAkSEAoIbW92ZVR5cGUYAiABKAUiSgoMTW92ZVJlc3BvbnNlEg4KBnVzZXJJ",
|
"DgoGdXNlcklkGAIgASgJEg4KBnJvb21JZBgDIAEoCRIaCghtb3ZlRGF0YRgB",
|
||||||
"ZBgCIAEoCRIOCgZyb29tSWQYAyABKAkSGgoIbW92ZURhdGEYASADKAsyCC5O",
|
"IAMoCzIILk5wY0RhdGEifAoHTnBjRGF0YRIJCgF4GAEgASgCEgkKAXkYAiAB",
|
||||||
"cGNEYXRhInwKB05wY0RhdGESCQoBeBgBIAEoAhIJCgF5GAIgASgCEgkKAXoY",
|
"KAISCQoBehgDIAEoAhIOCgZ1c2VySWQYBCABKAkSEAoIbmlja05hbWUYCCAB",
|
||||||
"AyABKAISDgoGdXNlcklkGAQgASgJEhAKCG5pY2tOYW1lGAggASgJEgwKBHR5",
|
"KAkSDAoEdHlwZRgFIAEoBRIRCglmb3JtYXRpb24YBiABKAUSDQoFZXZlbnQY",
|
||||||
"cGUYBSABKAUSEQoJZm9ybWF0aW9uGAYgASgFEg0KBWV2ZW50GAcgASgFIlUK",
|
"ByABKAUiVQoSTW92ZVJvb21Bb2lSZXF1ZXN0Eg4KBnJvb21JZBgBIAEoCRIO",
|
||||||
"Ek1vdmVSb29tQW9pUmVxdWVzdBIOCgZyb29tSWQYASABKAkSDgoGdXNlcklk",
|
"CgZ1c2VySWQYAiABKAMSCQoBeBgDIAEoAhIJCgF5GAQgASgCEgkKAXoYBSAB",
|
||||||
"GAIgASgDEgkKAXgYAyABKAISCQoBeRgEIAEoAhIJCgF6GAUgASgCIhUKE01v",
|
"KAIiFQoTTW92ZVJvb21Bb2lSZXNwb25zZUIHWgUuLztwYmIGcHJvdG8z"));
|
||||||
"dmVSb29tQW9pUmVzcG9uc2VCB1oFLi87cGJiBnByb3RvMw=="));
|
|
||||||
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" }, 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" }, 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),
|
||||||
@ -85,8 +84,6 @@ public sealed partial class NpcCreateRequest : pb::IMessage<NpcCreateRequest>
|
|||||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||||
public NpcCreateRequest(NpcCreateRequest other) : this() {
|
public NpcCreateRequest(NpcCreateRequest other) : this() {
|
||||||
roomId_ = other.roomId_;
|
roomId_ = other.roomId_;
|
||||||
templateId_ = other.templateId_;
|
|
||||||
sceneId_ = other.sceneId_;
|
|
||||||
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -111,36 +108,6 @@ public sealed partial class NpcCreateRequest : pb::IMessage<NpcCreateRequest>
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>Field number for the "templateId" field.</summary>
|
|
||||||
public const int TemplateIdFieldNumber = 2;
|
|
||||||
private long templateId_;
|
|
||||||
/// <summary>
|
|
||||||
/// 演练模板id
|
|
||||||
/// </summary>
|
|
||||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
||||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
||||||
public long TemplateId {
|
|
||||||
get { return templateId_; }
|
|
||||||
set {
|
|
||||||
templateId_ = value;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>Field number for the "sceneId" field.</summary>
|
|
||||||
public const int SceneIdFieldNumber = 3;
|
|
||||||
private string sceneId_ = "";
|
|
||||||
/// <summary>
|
|
||||||
/// 场景Id
|
|
||||||
/// </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.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) {
|
||||||
@ -157,8 +124,6 @@ public sealed partial class NpcCreateRequest : pb::IMessage<NpcCreateRequest>
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
if (RoomId != other.RoomId) return false;
|
if (RoomId != other.RoomId) return false;
|
||||||
if (TemplateId != other.TemplateId) return false;
|
|
||||||
if (SceneId != other.SceneId) return false;
|
|
||||||
return Equals(_unknownFields, other._unknownFields);
|
return Equals(_unknownFields, other._unknownFields);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -167,8 +132,6 @@ public sealed partial class NpcCreateRequest : pb::IMessage<NpcCreateRequest>
|
|||||||
public override int GetHashCode() {
|
public override int GetHashCode() {
|
||||||
int hash = 1;
|
int hash = 1;
|
||||||
if (RoomId.Length != 0) hash ^= RoomId.GetHashCode();
|
if (RoomId.Length != 0) hash ^= RoomId.GetHashCode();
|
||||||
if (TemplateId != 0L) hash ^= TemplateId.GetHashCode();
|
|
||||||
if (SceneId.Length != 0) hash ^= SceneId.GetHashCode();
|
|
||||||
if (_unknownFields != null) {
|
if (_unknownFields != null) {
|
||||||
hash ^= _unknownFields.GetHashCode();
|
hash ^= _unknownFields.GetHashCode();
|
||||||
}
|
}
|
||||||
@ -191,14 +154,6 @@ public sealed partial class NpcCreateRequest : pb::IMessage<NpcCreateRequest>
|
|||||||
output.WriteRawTag(10);
|
output.WriteRawTag(10);
|
||||||
output.WriteString(RoomId);
|
output.WriteString(RoomId);
|
||||||
}
|
}
|
||||||
if (TemplateId != 0L) {
|
|
||||||
output.WriteRawTag(16);
|
|
||||||
output.WriteInt64(TemplateId);
|
|
||||||
}
|
|
||||||
if (SceneId.Length != 0) {
|
|
||||||
output.WriteRawTag(26);
|
|
||||||
output.WriteString(SceneId);
|
|
||||||
}
|
|
||||||
if (_unknownFields != null) {
|
if (_unknownFields != null) {
|
||||||
_unknownFields.WriteTo(output);
|
_unknownFields.WriteTo(output);
|
||||||
}
|
}
|
||||||
@ -213,14 +168,6 @@ public sealed partial class NpcCreateRequest : pb::IMessage<NpcCreateRequest>
|
|||||||
output.WriteRawTag(10);
|
output.WriteRawTag(10);
|
||||||
output.WriteString(RoomId);
|
output.WriteString(RoomId);
|
||||||
}
|
}
|
||||||
if (TemplateId != 0L) {
|
|
||||||
output.WriteRawTag(16);
|
|
||||||
output.WriteInt64(TemplateId);
|
|
||||||
}
|
|
||||||
if (SceneId.Length != 0) {
|
|
||||||
output.WriteRawTag(26);
|
|
||||||
output.WriteString(SceneId);
|
|
||||||
}
|
|
||||||
if (_unknownFields != null) {
|
if (_unknownFields != null) {
|
||||||
_unknownFields.WriteTo(ref output);
|
_unknownFields.WriteTo(ref output);
|
||||||
}
|
}
|
||||||
@ -234,12 +181,6 @@ public sealed partial class NpcCreateRequest : pb::IMessage<NpcCreateRequest>
|
|||||||
if (RoomId.Length != 0) {
|
if (RoomId.Length != 0) {
|
||||||
size += 1 + pb::CodedOutputStream.ComputeStringSize(RoomId);
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(RoomId);
|
||||||
}
|
}
|
||||||
if (TemplateId != 0L) {
|
|
||||||
size += 1 + pb::CodedOutputStream.ComputeInt64Size(TemplateId);
|
|
||||||
}
|
|
||||||
if (SceneId.Length != 0) {
|
|
||||||
size += 1 + pb::CodedOutputStream.ComputeStringSize(SceneId);
|
|
||||||
}
|
|
||||||
if (_unknownFields != null) {
|
if (_unknownFields != null) {
|
||||||
size += _unknownFields.CalculateSize();
|
size += _unknownFields.CalculateSize();
|
||||||
}
|
}
|
||||||
@ -255,12 +196,6 @@ public sealed partial class NpcCreateRequest : pb::IMessage<NpcCreateRequest>
|
|||||||
if (other.RoomId.Length != 0) {
|
if (other.RoomId.Length != 0) {
|
||||||
RoomId = other.RoomId;
|
RoomId = other.RoomId;
|
||||||
}
|
}
|
||||||
if (other.TemplateId != 0L) {
|
|
||||||
TemplateId = other.TemplateId;
|
|
||||||
}
|
|
||||||
if (other.SceneId.Length != 0) {
|
|
||||||
SceneId = other.SceneId;
|
|
||||||
}
|
|
||||||
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
|
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -284,14 +219,6 @@ public sealed partial class NpcCreateRequest : pb::IMessage<NpcCreateRequest>
|
|||||||
RoomId = input.ReadString();
|
RoomId = input.ReadString();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case 16: {
|
|
||||||
TemplateId = input.ReadInt64();
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
case 26: {
|
|
||||||
SceneId = input.ReadString();
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
@ -315,14 +242,6 @@ public sealed partial class NpcCreateRequest : pb::IMessage<NpcCreateRequest>
|
|||||||
RoomId = input.ReadString();
|
RoomId = input.ReadString();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case 16: {
|
|
||||||
TemplateId = input.ReadInt64();
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
case 26: {
|
|
||||||
SceneId = input.ReadString();
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -1,11 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: 7a2dfd72791480141a3dca377b5196d1
|
|
||||||
MonoImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
serializedVersion: 2
|
|
||||||
defaultReferences: []
|
|
||||||
executionOrder: 0
|
|
||||||
icon: {instanceID: 0}
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
@ -419,9 +419,6 @@ public sealed partial class PropResponse : pb::IMessage<PropResponse>
|
|||||||
/// <summary>Field number for the "propId" field.</summary>
|
/// <summary>Field number for the "propId" field.</summary>
|
||||||
public const int PropIdFieldNumber = 1;
|
public const int PropIdFieldNumber = 1;
|
||||||
private int propId_;
|
private int propId_;
|
||||||
/// <summary>
|
|
||||||
/// 道具ID
|
|
||||||
/// </summary>
|
|
||||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||||
public int PropId {
|
public int PropId {
|
||||||
@ -434,9 +431,6 @@ public sealed partial class PropResponse : pb::IMessage<PropResponse>
|
|||||||
/// <summary>Field number for the "propServerId" field.</summary>
|
/// <summary>Field number for the "propServerId" field.</summary>
|
||||||
public const int PropServerIdFieldNumber = 5;
|
public const int PropServerIdFieldNumber = 5;
|
||||||
private string propServerId_ = "";
|
private string propServerId_ = "";
|
||||||
/// <summary>
|
|
||||||
/// 服务端ID
|
|
||||||
/// </summary>
|
|
||||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||||
public string PropServerId {
|
public string PropServerId {
|
||||||
@ -449,9 +443,6 @@ public sealed partial class PropResponse : pb::IMessage<PropResponse>
|
|||||||
/// <summary>Field number for the "name" field.</summary>
|
/// <summary>Field number for the "name" field.</summary>
|
||||||
public const int NameFieldNumber = 2;
|
public const int NameFieldNumber = 2;
|
||||||
private string name_ = "";
|
private string name_ = "";
|
||||||
/// <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 string Name {
|
public string Name {
|
||||||
@ -464,9 +455,6 @@ public sealed partial class PropResponse : pb::IMessage<PropResponse>
|
|||||||
/// <summary>Field number for the "code" field.</summary>
|
/// <summary>Field number for the "code" field.</summary>
|
||||||
public const int CodeFieldNumber = 3;
|
public const int CodeFieldNumber = 3;
|
||||||
private int code_;
|
private int code_;
|
||||||
/// <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 int Code {
|
public int Code {
|
||||||
@ -479,9 +467,6 @@ public sealed partial class PropResponse : pb::IMessage<PropResponse>
|
|||||||
/// <summary>Field number for the "message" field.</summary>
|
/// <summary>Field number for the "message" field.</summary>
|
||||||
public const int MessageFieldNumber = 4;
|
public const int MessageFieldNumber = 4;
|
||||||
private string message_ = "";
|
private string message_ = "";
|
||||||
/// <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 string Message {
|
public string Message {
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
fileFormatVersion: 2
|
fileFormatVersion: 2
|
||||||
guid: cbf21bdbee5a320489df7092ce24d9a7
|
guid: 09a7d1a0777441d489f8b7ffae5077c9
|
||||||
MonoImporter:
|
MonoImporter:
|
||||||
externalObjects: {}
|
externalObjects: {}
|
||||||
serializedVersion: 2
|
serializedVersion: 2
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -300,7 +300,6 @@ public class test : MonoBehaviour
|
|||||||
case "hall.BroadcastMessage":
|
case "hall.BroadcastMessage":
|
||||||
UserJoinResponse userJoinResponse = ProtoBufffer.DeSerialize<UserJoinResponse>(bytes);
|
UserJoinResponse userJoinResponse = ProtoBufffer.DeSerialize<UserJoinResponse>(bytes);
|
||||||
Debug.Log("玩家昵称:" + userJoinResponse.NickName + ",房间:" + userJoinResponse.RoomId.ToString() + ",用户角色"+ userJoinResponse.RoleName);
|
Debug.Log("玩家昵称:" + userJoinResponse.NickName + ",房间:" + userJoinResponse.RoomId.ToString() + ",用户角色"+ userJoinResponse.RoleName);
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
//
|
//
|
||||||
|
Loading…
Reference in New Issue
Block a user