123456789101112131415161718192021222324252627282930313233343536373839404142 |
- using ET;
- using ProtoBuf;
- using System.Collections.Generic;
- namespace ET
- {
- //战斗服发给游戏服后,游戏服推送给客户端
- [Message(BattleServerMsg.BattleEventPush)]
- [ProtoContract]
- public partial class BattleEventPush: ProtoObject, IActorMessage
- {
- [ProtoMember(1)]
- public ushort key { get; set; }
- [ProtoMember(2)]
- public byte[] data { get; set; }
- }
- //客户端发送消息给战斗服,由游戏服转发
- [Message(BattleServerMsg.BattleEventPushToServer)]
- [ProtoContract]
- public partial class BattleEventPushToServer: ProtoObject, IMessage
- {
- [ProtoMember(1)]
- public byte[] data { get; set; }
- }
- //客户端通知战斗服,i'm ready
- [Message(BattleServerMsg.BattleClientReady)]
- [ProtoContract]
- public partial class BattleClientReady: ProtoObject, IMessage
- {
- }
- public static class BattleServerMsg
- {
- public const ushort BattleEventPush = 40002;
- public const ushort BattleEventPushToServer = 40003;
- public const ushort BattleClientReady = 40004;
- }
- }
|