static void Main(string[] args) { FlexRule.License.UserLicense.Initialize(); IElementModel model = ReadRule("Rules/Module/InlineModule.xml"); ProcedureEngine engine = CreateEngine(model); engine.Run(); Console.WriteLine("Press enter to end..."); Console.ReadLine(); }
static void Main(string[] args) { FlexRule.License.UserLicense.Initialize(); IElementModel model = ReadRule("Rules/Module/ExternalModule.xml"); ProcedureEngine engine = CreateEngine(model); string src1, src2; src1 = File.ReadAllText("Rules/Module/module1.xml"); src2 = File.ReadAllText("Rules/Module/module2.xml"); engine.Run(src1, src2); Console.WriteLine("Press enter to end..."); Console.ReadLine(); }
private void OnHQElementChanging(IElementModel newHQElement) { if (_fleet.HQElement != null) { // first time HQElement will be null _fleet.HQElement.onDestinationReached -= OnFlagshipReachedDestination; } }
private static ProcedureEngine CreateEngine(IElementModel model) { var proc = new Procedure(model); return(new ProcedureEngine(proc)); }
private void OnHQElementChanged(IElementModel hqElementModel) { View.TrackingTarget = hqElementModel.Transform.GetSafeInterface<IWidgetTrackable>(); }