Exemple #1
0
 private void PracticeModeMusicChangeTrigger(int oldMusicId, int newMusicId)
 {
     if (mainContext.PracticeMode)
     {
         DebugLog("Practice Mode Trigger Music Change " + oldMusicId + " -> " + newMusicId);
     }
     practiceModeContext.SendTrigger(SplitCondition.MusicChange(oldMusicId, newMusicId));
 }
Exemple #2
0
 private void PracticeModeSendTrigger(SplitTrigger trigger)
 {
     if (mainContext.PracticeMode)
     {
         DebugLog("Practice Mode Trigger " + (trigger.ToString()));
     }
     practiceModeContext.SendTrigger(SplitCondition.Trigger(trigger));
 }
 public void SendTrigger(SplitCondition splitCondition)
 {
     if (StartTimerSetting.Matches(splitCondition))
     {
         _sendStart = true;
     }
     if (SplitTimerSetting.Matches(splitCondition))
     {
         _sendSplit = true;
     }
     if (ResetTimerSetting.Matches(splitCondition))
     {
         _sendReset = true;
     }
 }
 public bool Matches(SplitCondition condition)
 {
     if (TriggerType != condition.TriggerType)
     {
         return(false);
     }
     if (TriggerType == SplitTrigger.MapChange)
     {
         if (!(MapTypeFrom.option == ParameterOptions.Any || MapTypeFrom.Equals(condition.MapTypeFrom)))
         {
             return(false);
         }
         if (!(MapTypeTo.option == ParameterOptions.Any || MapTypeTo.Equals(condition.MapTypeTo)))
         {
             return(false);
         }
     }
     if (TriggerType == SplitTrigger.MusicChange)
     {
         if (!(MusicTypeFrom.option == ParameterOptions.Any || MusicTypeFrom.Equals(condition.MusicTypeFrom)))
         {
             return(false);
         }
         if (!(MusicTypeTo.option == ParameterOptions.Any || MusicTypeTo.Equals(condition.MusicTypeTo)))
         {
             return(false);
         }
     }
     if (TriggerType == SplitTrigger.MapTileChange)
     {
         if (!(MapTileFromAny || (MapTileFromX == condition.MapTileFromX && MapTileFromY == condition.MapTileFromY)))
         {
             return(false);
         }
         if (!(MapTileToAny || (MapTileToX == condition.MapTileToX && MapTileToY == condition.MapTileToY)))
         {
             return(false);
         }
     }
     return(true);
 }
Exemple #5
0
 private void PracticeModeMapTileChangeTrigger(MapTileCoordinate oldMapTile, MapTileCoordinate newMapTile)
 {
     //if (mainContext.PracticeMode) DebugLog("Practice Mode Trigger Map Tile Change " + oldMapTile + " -> " + newMapTile);
     practiceModeContext.SendTrigger(SplitCondition.MapTileChange(oldMapTile, newMapTile));
 }