static void Main(string[] args) { var elementTypes = new[] { new MockElementType() }; using (var engine = EngineFactory.Create(elementTypes, EngineProvider.Cpu)) { engine.LoadTable(null, 1); engine.EvaluateFrame(TimePrec.EncodeTime(10)); } }
public void Integration() { using (var engine = new ManagedEngine()) { // load types //engine.Types.Add(MockElementType.FirstWinsType); //engine.Types.Add(MockElementType.MultipleType); //// load grids //engine.LoadTable(new ElementTable //{ // Elements = new[] { MockElement.FirstWins } //}, 0); //engine.LoadTable(new ElementTable //{ // Elements = new[] { MockElement.FirstWins } //}, 1); // evaluate frame engine.EvaluateFrame(TimePrec.EncodeTime(10)); } }