Esempio n. 1
0
        public CommandOperationStatus Drop(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.Drop(selectedObject, selectedCharacter, location));
        }