コード例 #1
0
ファイル: PlayerCommandHandler.cs プロジェクト: xuebai5/emud
        public async Task <Unit> Handle(ShowMyStatusCommand command, CancellationToken cancellationToken)
        {
            var playerId = command.PlayerId;
            var player   = await _playerDomainService.Get(playerId);

            if (player == null)
            {
                return(Unit.Value);
            }
            var myInfo = _mapper.Map <MyInfo>(player);

            await _mudProvider.ShowMyStatus(playerId, myInfo);

            return(Unit.Value);
        }