BattleServerMsg_CS_40001.cs 1006 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. using ET;
  2. using ProtoBuf;
  3. using System.Collections.Generic;
  4. namespace ET
  5. {
  6. //战斗服发给游戏服后,游戏服推送给客户端
  7. [Message(BattleServerMsg.BattleEventPush)]
  8. [ProtoContract]
  9. public partial class BattleEventPush: ProtoObject, IActorMessage
  10. {
  11. [ProtoMember(1)]
  12. public ushort key { get; set; }
  13. [ProtoMember(2)]
  14. public byte[] data { get; set; }
  15. }
  16. //客户端发送消息给战斗服,由游戏服转发
  17. [Message(BattleServerMsg.BattleEventPushToServer)]
  18. [ProtoContract]
  19. public partial class BattleEventPushToServer: ProtoObject, IMessage
  20. {
  21. [ProtoMember(1)]
  22. public byte[] data { get; set; }
  23. }
  24. //客户端通知战斗服,i'm ready
  25. [Message(BattleServerMsg.BattleClientReady)]
  26. [ProtoContract]
  27. public partial class BattleClientReady: ProtoObject, IMessage
  28. {
  29. }
  30. public static class BattleServerMsg
  31. {
  32. public const ushort BattleEventPush = 40002;
  33. public const ushort BattleEventPushToServer = 40003;
  34. public const ushort BattleClientReady = 40004;
  35. }
  36. }