Exemplo n.º 1
0
        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();
        }
Exemplo n.º 2
0
        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();
        }
Exemplo n.º 3
0
 private void OnHQElementChanging(IElementModel newHQElement) {
     if (_fleet.HQElement != null) { // first time HQElement will be null
         _fleet.HQElement.onDestinationReached -= OnFlagshipReachedDestination;
     }
 }
Exemplo n.º 4
0
        private static ProcedureEngine CreateEngine(IElementModel model)
        {
            var proc = new Procedure(model);

            return(new ProcedureEngine(proc));
        }
Exemplo n.º 5
0
 private void OnHQElementChanged(IElementModel hqElementModel) {
     View.TrackingTarget = hqElementModel.Transform.GetSafeInterface<IWidgetTrackable>();
 }