BCCommand.cs 489 B

12345678910111213141516171819202122
  1. using System.Threading.Tasks;
  2. using BossBase;
  3. namespace BossCommand
  4. {
  5. public class BCCommand : ABossCommand
  6. {
  7. public string Command { get; set; }
  8. public BCCommand(IMessageChannel iMessageChannel) : base(iMessageChannel)
  9. {
  10. }
  11. public override async Task<object> DoAsync()
  12. {
  13. this.SendMessage(new CMSG_Boss_Gm { Message = this.Command });
  14. var smsgBossCommandResponse = await this.RecvMessage<SMSG_Boss_Command_Response>();
  15. return smsgBossCommandResponse;
  16. }
  17. }
  18. }