public static async Task Run(string configFileName)
        {
            Console.WriteLine("--- App localization util ---");

            Console.WriteLine($"Current directory: {Environment.CurrentDirectory}");

            IConfigurationReader configurationReader = new ConfigurationReader(configFileName);

            Console.WriteLine("[Configuration]");
            var configuration = await configurationReader.ReadAsync();

            Document document;

            ISourceChooser sourceChooser = new SourceChooser();

            Console.WriteLine("[Source]");
            using (ISource source = sourceChooser.Choose(configuration.Source))
            {
                document = await source.LoadAsync();
            }

            IDestinationChooser  destinationChooser = new DestinationChooser(configuration.DestinationPath);
            IList <IDestination> destinations       = destinationChooser.Choose(configuration.Destinations);

            Console.WriteLine("[Destination]");
            foreach (var destination in destinations)
            {
                await destination.WriteAsync(document);
            }
        }
Esempio n. 2
0
 void Awake()
 {
     scoreScript      = GameObject.FindGameObjectWithTag("Manager").GetComponent <Score>();
     destChooser      = GetComponent <DestinationChooser>();
     agent            = GetComponentInChildren <NavMeshAgent>();
     satisfactionText = GameObject.FindGameObjectWithTag("Satisfaction").GetComponent <Text>();
     decayRate        = 5f;
     satisfaction     = 100;
 }
Esempio n. 3
0
 void Awake()                                                                        //displays various objects and text for the selected group
 {
     highlight  = GetComponentsInChildren <HighlightSelected>();
     destChoose = GetComponent <DestinationChooser>();
     satScript  = GetComponent <Satisfaction>();
 }