Пример #1
0
        public void Save(Stream stream)
        {
            var collection = new SimulationBotCollection();

            collection.AddRange(ByElo());
            collection.Save(stream);
        }
		public void Save_OneBot_ToFile()
		{
			var collection = new SimulationBotCollection()
			{
				new BotData()
				{
					Id = 17,
					Locked = true,
					DefPars = EvaluatorParameters.GetDefault(),
				},
			};

			var file = new FileInfo("collection.xml");
			collection.Save(file);
		}
        public void Save_OneBot_ToFile()
        {
            var collection = new SimulationBotCollection()
            {
                new BotData()
                {
                    Id      = 17,
                    Locked  = true,
                    DefPars = EvaluatorParameters.GetDefault(),
                },
            };

            var file = new FileInfo("collection.xml");

            collection.Save(file);
        }