Ejemplo n.º 1
0
        public async UniTask <CharacterResp> UpdateCharacterAsync(UpdateCharacterReq request)
        {
            var result = await Client.SendRequestAsync <UpdateCharacterReq, CharacterResp>(DatabaseRequestTypes.RequestUpdateCharacter, request);

            if (result.ResponseCode != AckResponseCode.Success)
            {
                return(new CharacterResp());
            }
            return(result.Response);
        }
        public async UniTask <AsyncResponseData <CharacterResp> > UpdateCharacterAsync(UpdateCharacterReq request)
        {
            var resp = await Client.SendRequestAsync <UpdateCharacterReq, CharacterResp>(DatabaseRequestTypes.RequestUpdateCharacter, request);

            if (!resp.IsSuccess)
            {
                Logging.LogError(nameof(DatabaseNetworkManager), $"Cannot {nameof(UpdateCharacterAsync)} status: {resp.ResponseCode}");
            }
            return(resp);
        }