|
@@ -86,170 +86,6 @@ namespace ET
|
|
|
|
|
|
}
|
|
|
|
|
|
- [ResponseType(nameof(G2C_EnterMap))]
|
|
|
- [Message(OuterMessage.C2G_EnterMap)]
|
|
|
- [ProtoContract]
|
|
|
- public partial class C2G_EnterMap: ProtoObject, IRequest
|
|
|
- {
|
|
|
- [ProtoMember(1)]
|
|
|
- public int RpcId { get; set; }
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- [Message(OuterMessage.G2C_EnterMap)]
|
|
|
- [ProtoContract]
|
|
|
- public partial class G2C_EnterMap: ProtoObject, IResponse
|
|
|
- {
|
|
|
- [ProtoMember(1)]
|
|
|
- public int RpcId { get; set; }
|
|
|
-
|
|
|
- [ProtoMember(2)]
|
|
|
- public int Error { get; set; }
|
|
|
-
|
|
|
- [ProtoMember(3)]
|
|
|
- public string Message { get; set; }
|
|
|
-
|
|
|
-// 自己unitId
|
|
|
- [ProtoMember(4)]
|
|
|
- public long MyId { get; set; }
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- [Message(OuterMessage.MoveInfo)]
|
|
|
- [ProtoContract]
|
|
|
- public partial class MoveInfo: ProtoObject
|
|
|
- {
|
|
|
- [ProtoMember(1)]
|
|
|
- public List<Unity.Mathematics.float3> Points { get; set; }
|
|
|
-
|
|
|
- [ProtoMember(2)]
|
|
|
- public Unity.Mathematics.quaternion Rotation { get; set; }
|
|
|
-
|
|
|
- [ProtoMember(3)]
|
|
|
- public int TurnSpeed { get; set; }
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- [Message(OuterMessage.UnitInfo)]
|
|
|
- [ProtoContract]
|
|
|
- public partial class UnitInfo: ProtoObject
|
|
|
- {
|
|
|
- [ProtoMember(1)]
|
|
|
- public long UnitId { get; set; }
|
|
|
-
|
|
|
- [ProtoMember(2)]
|
|
|
- public int ConfigId { get; set; }
|
|
|
-
|
|
|
- [ProtoMember(3)]
|
|
|
- public int Type { get; set; }
|
|
|
-
|
|
|
- [ProtoMember(4)]
|
|
|
- public Unity.Mathematics.float3 Position { get; set; }
|
|
|
-
|
|
|
- [ProtoMember(5)]
|
|
|
- public Unity.Mathematics.float3 Forward { get; set; }
|
|
|
-
|
|
|
- [MongoDB.Bson.Serialization.Attributes.BsonDictionaryOptions(MongoDB.Bson.Serialization.Options.DictionaryRepresentation.ArrayOfArrays)]
|
|
|
- [ProtoMember(6)]
|
|
|
- public Dictionary<int, long> KV { get; set; }
|
|
|
- [ProtoMember(7)]
|
|
|
- public MoveInfo MoveInfo { get; set; }
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- [Message(OuterMessage.M2C_CreateUnits)]
|
|
|
- [ProtoContract]
|
|
|
- public partial class M2C_CreateUnits: ProtoObject, IActorMessage
|
|
|
- {
|
|
|
- [ProtoMember(1)]
|
|
|
- public List<UnitInfo> Units { get; set; }
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- [Message(OuterMessage.M2C_CreateMyUnit)]
|
|
|
- [ProtoContract]
|
|
|
- public partial class M2C_CreateMyUnit: ProtoObject, IActorMessage
|
|
|
- {
|
|
|
- [ProtoMember(1)]
|
|
|
- public UnitInfo Unit { get; set; }
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- [Message(OuterMessage.M2C_StartSceneChange)]
|
|
|
- [ProtoContract]
|
|
|
- public partial class M2C_StartSceneChange: ProtoObject, IActorMessage
|
|
|
- {
|
|
|
- [ProtoMember(1)]
|
|
|
- public long SceneInstanceId { get; set; }
|
|
|
-
|
|
|
- [ProtoMember(2)]
|
|
|
- public string SceneName { get; set; }
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- [Message(OuterMessage.M2C_RemoveUnits)]
|
|
|
- [ProtoContract]
|
|
|
- public partial class M2C_RemoveUnits: ProtoObject, IActorMessage
|
|
|
- {
|
|
|
- [ProtoMember(2)]
|
|
|
- public List<long> Units { get; set; }
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- [Message(OuterMessage.C2M_PathfindingResult)]
|
|
|
- [ProtoContract]
|
|
|
- public partial class C2M_PathfindingResult: ProtoObject, IActorLocationMessage
|
|
|
- {
|
|
|
- [ProtoMember(1)]
|
|
|
- public int RpcId { get; set; }
|
|
|
-
|
|
|
- [ProtoMember(2)]
|
|
|
- public Unity.Mathematics.float3 Position { get; set; }
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- [Message(OuterMessage.C2M_Stop)]
|
|
|
- [ProtoContract]
|
|
|
- public partial class C2M_Stop: ProtoObject, IActorLocationMessage
|
|
|
- {
|
|
|
- [ProtoMember(1)]
|
|
|
- public int RpcId { get; set; }
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- [Message(OuterMessage.M2C_PathfindingResult)]
|
|
|
- [ProtoContract]
|
|
|
- public partial class M2C_PathfindingResult: ProtoObject, IActorMessage
|
|
|
- {
|
|
|
- [ProtoMember(1)]
|
|
|
- public long Id { get; set; }
|
|
|
-
|
|
|
- [ProtoMember(2)]
|
|
|
- public Unity.Mathematics.float3 Position { get; set; }
|
|
|
-
|
|
|
- [ProtoMember(3)]
|
|
|
- public List<Unity.Mathematics.float3> Points { get; set; }
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- [Message(OuterMessage.M2C_Stop)]
|
|
|
- [ProtoContract]
|
|
|
- public partial class M2C_Stop: ProtoObject, IActorMessage
|
|
|
- {
|
|
|
- [ProtoMember(1)]
|
|
|
- public int Error { get; set; }
|
|
|
-
|
|
|
- [ProtoMember(2)]
|
|
|
- public long Id { get; set; }
|
|
|
-
|
|
|
- [ProtoMember(3)]
|
|
|
- public Unity.Mathematics.float3 Position { get; set; }
|
|
|
-
|
|
|
- [ProtoMember(4)]
|
|
|
- public Unity.Mathematics.quaternion Rotation { get; set; }
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
[ResponseType(nameof(G2C_Ping))]
|
|
|
[Message(OuterMessage.C2G_Ping)]
|
|
|
[ProtoContract]
|
|
@@ -387,6 +223,9 @@ namespace ET
|
|
|
[ProtoMember(4)]
|
|
|
public Player Player { get; set; }
|
|
|
|
|
|
+ [ProtoMember(5)]
|
|
|
+ public bool IsInRoom { get; set; }
|
|
|
+
|
|
|
}
|
|
|
|
|
|
[Message(OuterMessage.G2C_TestHotfixMessage)]
|
|
@@ -398,62 +237,6 @@ namespace ET
|
|
|
|
|
|
}
|
|
|
|
|
|
- [ResponseType(nameof(M2C_TestRobotCase))]
|
|
|
- [Message(OuterMessage.C2M_TestRobotCase)]
|
|
|
- [ProtoContract]
|
|
|
- public partial class C2M_TestRobotCase: ProtoObject, IActorLocationRequest
|
|
|
- {
|
|
|
- [ProtoMember(1)]
|
|
|
- public int RpcId { get; set; }
|
|
|
-
|
|
|
- [ProtoMember(2)]
|
|
|
- public int N { get; set; }
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- [Message(OuterMessage.M2C_TestRobotCase)]
|
|
|
- [ProtoContract]
|
|
|
- public partial class M2C_TestRobotCase: ProtoObject, IActorLocationResponse
|
|
|
- {
|
|
|
- [ProtoMember(1)]
|
|
|
- public int RpcId { get; set; }
|
|
|
-
|
|
|
- [ProtoMember(2)]
|
|
|
- public int Error { get; set; }
|
|
|
-
|
|
|
- [ProtoMember(3)]
|
|
|
- public string Message { get; set; }
|
|
|
-
|
|
|
- [ProtoMember(4)]
|
|
|
- public int N { get; set; }
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- [ResponseType(nameof(M2C_TransferMap))]
|
|
|
- [Message(OuterMessage.C2M_TransferMap)]
|
|
|
- [ProtoContract]
|
|
|
- public partial class C2M_TransferMap: ProtoObject, IActorLocationRequest
|
|
|
- {
|
|
|
- [ProtoMember(1)]
|
|
|
- public int RpcId { get; set; }
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- [Message(OuterMessage.M2C_TransferMap)]
|
|
|
- [ProtoContract]
|
|
|
- public partial class M2C_TransferMap: ProtoObject, IActorLocationResponse
|
|
|
- {
|
|
|
- [ProtoMember(1)]
|
|
|
- public int RpcId { get; set; }
|
|
|
-
|
|
|
- [ProtoMember(2)]
|
|
|
- public int Error { get; set; }
|
|
|
-
|
|
|
- [ProtoMember(3)]
|
|
|
- public string Message { get; set; }
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
[ResponseType(nameof(G2C_Benchmark))]
|
|
|
[Message(OuterMessage.C2G_Benchmark)]
|
|
|
[ProtoContract]
|
|
@@ -487,33 +270,17 @@ namespace ET
|
|
|
public const ushort M2C_TestResponse = 30005;
|
|
|
public const ushort Actor_TransferRequest = 30006;
|
|
|
public const ushort Actor_TransferResponse = 30007;
|
|
|
- public const ushort C2G_EnterMap = 30008;
|
|
|
- public const ushort G2C_EnterMap = 30009;
|
|
|
- public const ushort MoveInfo = 30010;
|
|
|
- public const ushort UnitInfo = 30011;
|
|
|
- public const ushort M2C_CreateUnits = 30012;
|
|
|
- public const ushort M2C_CreateMyUnit = 30013;
|
|
|
- public const ushort M2C_StartSceneChange = 30014;
|
|
|
- public const ushort M2C_RemoveUnits = 30015;
|
|
|
- public const ushort C2M_PathfindingResult = 30016;
|
|
|
- public const ushort C2M_Stop = 30017;
|
|
|
- public const ushort M2C_PathfindingResult = 30018;
|
|
|
- public const ushort M2C_Stop = 30019;
|
|
|
- public const ushort C2G_Ping = 30020;
|
|
|
- public const ushort G2C_Ping = 30021;
|
|
|
- public const ushort G2C_Test = 30022;
|
|
|
- public const ushort C2M_Reload = 30023;
|
|
|
- public const ushort M2C_Reload = 30024;
|
|
|
- public const ushort C2R_Login = 30025;
|
|
|
- public const ushort R2C_Login = 30026;
|
|
|
- public const ushort C2G_LoginGame = 30027;
|
|
|
- public const ushort G2C_LoginGame = 30028;
|
|
|
- public const ushort G2C_TestHotfixMessage = 30029;
|
|
|
- public const ushort C2M_TestRobotCase = 30030;
|
|
|
- public const ushort M2C_TestRobotCase = 30031;
|
|
|
- public const ushort C2M_TransferMap = 30032;
|
|
|
- public const ushort M2C_TransferMap = 30033;
|
|
|
- public const ushort C2G_Benchmark = 30034;
|
|
|
- public const ushort G2C_Benchmark = 30035;
|
|
|
+ public const ushort C2G_Ping = 30008;
|
|
|
+ public const ushort G2C_Ping = 30009;
|
|
|
+ public const ushort G2C_Test = 30010;
|
|
|
+ public const ushort C2M_Reload = 30011;
|
|
|
+ public const ushort M2C_Reload = 30012;
|
|
|
+ public const ushort C2R_Login = 30013;
|
|
|
+ public const ushort R2C_Login = 30014;
|
|
|
+ public const ushort C2G_LoginGame = 30015;
|
|
|
+ public const ushort G2C_LoginGame = 30016;
|
|
|
+ public const ushort G2C_TestHotfixMessage = 30017;
|
|
|
+ public const ushort C2G_Benchmark = 30018;
|
|
|
+ public const ushort G2C_Benchmark = 30019;
|
|
|
}
|
|
|
}
|