예제 #1
0
파일: Engine8.cs 프로젝트: egold555/Comet
 private void Initialize(SequenceProgram program)
 {
     if (Mode == EngineMode.Asynchronous)
     {
         InitializeForAsynchronous(program);
     }
     else
     {
         if (program.EventSequences.Count == 0)
         {
             throw new Exception("Cannot execute a program that has no sequences.");
         }
         CurrentObject          = program;
         _useSequencePluginData = CurrentObject.UseSequencePluginData;
     }
 }
예제 #2
0
파일: Engine8.cs 프로젝트: jmcadams/vplus
 private void Initialize(SequenceProgram program)
 {
     if (Mode == EngineMode.Asynchronous) {
         InitializeForAsynchronous(program);
     }
     else {
         if (program.EventSequences.Count == 0) {
             throw new Exception("Cannot execute a program that has no sequences.");
         }
         CurrentObject = program;
         _useSequencePluginData = CurrentObject.UseSequencePluginData;
     }
 }