BattleServerMsg_CS_40001.cs 765 B

12345678910111213141516171819202122232425262728293031323334
  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.BattleEventPull)]
  18. [ProtoContract]
  19. public partial class BattleEventPull: ProtoObject, IActorMessage
  20. {
  21. [ProtoMember(1)]
  22. public byte[] data { get; set; }
  23. }
  24. public static class BattleServerMsg
  25. {
  26. public const ushort BattleEventPush = 40002;
  27. public const ushort BattleEventPull = 40003;
  28. }
  29. }