//TODO Кнопка для тестирования текущих наработок private void button1_Click(object sender, EventArgs e) { //int i = 3; //string str = Enum.GetName(typeof(Enums.TypeOfPosition), i); //Enums.TypeOfPosition pos = TypeOfPosition.Multi; //byte monthNumber = (byte)pos; //Debug.WriteLine(pos + " " + monthNumber); string path = @"C:\Users\Aberkromb\Documents\Visual Studio 2015\Projects\StrategyTester\SBER_160101_161001-1.txt"; TxtReader reader = new TxtReader(); var allstats = reader.LoadStats(path); LoadStrategies.Load(); var patterns = LoadStrategies.GetPatterns; var strategies = LoadStrategies.GetStrategies; SimpleBasedHammerStrategy.HammerStrategy testStrategy = new SimpleBasedHammerStrategy.HammerStrategy(); var entryPoints = testStrategy.Logic(allstats); Console.WriteLine(" "); //var test = patterns[0].Logic(allstats); //foreach (var t in test) //{ // rtb_Main.Text = rtb_Main.Text + t + '\n'; //} }
/// <summary> /// Initializes a new instance of the <see cref="LoadGraphAssetCommand"/> class. /// </summary> /// <param name="assetModel">The asset model to load.</param> /// <param name="boundObject">The game object to which the graph should be bound.</param> /// <param name="loadStrategy">The type of loading and how it should affect the stack of loaded assets.</param> public LoadGraphAssetCommand(IGraphAssetModel assetModel, GameObject boundObject = null, LoadStrategies loadStrategy = LoadStrategies.Replace) { AssetPath = null; Asset = assetModel; BoundObject = boundObject; LoadStrategy = loadStrategy; TruncateHistoryIndex = -1; }
/// <summary> /// Initializes a new instance of the <see cref="LoadGraphAssetCommand"/> class. /// </summary> /// <param name="assetPath">The path of the asset to load.</param> /// <param name="assetLocalId">The subasset file id. If 0, the first GraphAssetModel found in the file will be loaded.</param> /// <param name="pluginRepository">The plugin repository.</param> /// <param name="boundObject">The game object to which the graph should be bound.</param> /// <param name="loadStrategy">The type of loading and how it should affect the stack of loaded assets.</param> /// <param name="truncateHistoryIndex">Truncate the stack of loaded assets at this index.</param> public LoadGraphAssetCommand(string assetPath, long assetLocalId, PluginRepository pluginRepository, GameObject boundObject = null, LoadStrategies loadStrategy = LoadStrategies.Replace, int truncateHistoryIndex = -1) { Asset = null; AssetPath = assetPath; BoundObject = boundObject; LoadStrategy = loadStrategy; FileId = assetLocalId; PluginRepository = pluginRepository; TruncateHistoryIndex = truncateHistoryIndex; }