Beispiel #1
0
        public void Abort(AbortMethod abortMethod)
        {
            if (Tween == null || !Tween.IsPlaying())
            {
                return;
            }

            if (abortMethod == AbortMethod.JustKill)
            {
                Tween.Kill();
            }
            else if (abortMethod == AbortMethod.ForceCompleteWithKillCallback)
            {
                Tween.OnComplete(null);
                Tween.Complete();
            }
            else if (abortMethod == AbortMethod.ForceCompleteWithOnCompleteCallback)
            {
                Tween.OnKill(null);
                Tween.Complete();
            }
            else if (abortMethod == AbortMethod.ForceCompleteWithOnCompleteAndOnKill)
            {
                Tween.Kill(true);
            }

            Tween = null;
        }
Beispiel #2
0
 public static void ErrorsMethod(Utils.ModuleAction action, out String moduleName) {
   //-----------------------------------|----------------------------------------
   moduleName = MODULENAME;
   switch (action) {
     case Utils.ModuleAction.getModuleName:
       return;
     case Utils.ModuleAction.initModule:
       aps = new AbortMethod[MAXABORTPROCS];
       sp = 0;
       PushAbortMethod(DefaultAbort);
       stopParsing = null;
       eowCnt = new int[4];
       curEoW = new ErrorWarn[4];
       break;
     case Utils.ModuleAction.resetModule:
       break;
     case Utils.ModuleAction.cleanupModule:
       eowl = null;
       eowCnt = null;
       curEoW = null;
       return;
   } // switch
   // --- for initModule and resetModule ---
   eowl = null;
   numOfErrs = 0;
   numOfWarns = 0;
   for (int i = 0; i < 4; i++)
     eowCnt[i] = 0;
 } // ErrorsMethod
Beispiel #3
0
    } // InstallStopParsingMethod

    public static void PushAbortMethod(AbortMethod ap)
    {
        //-----------------------------------|----------------------------------------
        if (sp == MAXABORTPROCS)
        {
            Restriction(MODULENAME, "PushAbortFunc", "too many abort functions");
        }
        aps[sp++] = ap;
    } // PushAbortMethod
Beispiel #4
0
    public static void ErrorsMethod(Utils.ModuleAction action, out String moduleName)
    {
        //-----------------------------------|----------------------------------------
        moduleName = MODULENAME;
        switch (action)
        {
        case Utils.ModuleAction.getModuleName:
            return;

        case Utils.ModuleAction.initModule:
            aps = new AbortMethod[MAXABORTPROCS];
            sp  = 0;
            PushAbortMethod(DefaultAbort);
            stopParsing = null;
            eowCnt      = new int[4];
            curEoW      = new ErrorWarn[4];
            break;

        case Utils.ModuleAction.resetModule:
            break;

        case Utils.ModuleAction.cleanupModule:
            eowl   = null;
            eowCnt = null;
            curEoW = null;
            return;
        } // switch
        // --- for initModule and resetModule ---
        eowl       = null;
        numOfErrs  = 0;
        numOfWarns = 0;
        for (int i = 0; i < 4; i++)
        {
            eowCnt[i] = 0;
        }
    } // ErrorsMethod
Beispiel #5
0
  } // InstallStopParsingMethod

  public static void PushAbortMethod(AbortMethod ap) {
    //-----------------------------------|----------------------------------------
    if (sp == MAXABORTPROCS)
      Restriction(MODULENAME, "PushAbortFunc", "too many abort functions");
    aps[sp++] = ap;
  } // PushAbortMethod