Пример #1
0
        public void EnumerateItemsHere()
        {
            var itemsHere = _advHelper.GetItemsAtCurrentLocation();

            if (itemsHere.Count > 0)
            {
                _responseBuilder.AddToResponse("", 1);
            }
            foreach (var item in itemsHere)
            {
                var states = _advHelper.GetItemStates(item.ItemEnum);
                if (states == null && item.FoundDescriptions != null)
                {
                    _responseBuilder.AddToResponse(item.FoundDescriptions[0].Item2, 1);
                }
                else
                {
                    var description = _itemProvider.GetItemFoundDescription(item, states);
                    if (description != null)
                    {
                        _responseBuilder.AddToResponse(description, 1);
                    }
                }
            }
        }