Пример #1
0
        public CommandOperationStatus Take(string objectName, Guid characterID)
        {
            var location = new LocationRepository().GetCharactersLocation(characterID);

            var selectedCharacter = _objectRepository.GetObjectFromID <GameCharacter>(characterID, location);

            var selectedObject = _objectRepository.GetObjectFromName <GameObject>(objectName, location);

            return(_commandActioner.Take(selectedObject, selectedCharacter));
        }