예제 #1
0
 public elias_event_play_stinger CreatePlayerStingerEvent(EliasHelper elias)
 {
     return(new elias_event_play_stinger(
                (uint)flags,
                preWaitTimeMs,
                transitionPresetName == "" ? 0 : elias.GetTransitionPresetIndex(transitionPresetName),
                name,
                level));
 }
예제 #2
0
 public elias_event_set_level CreateSetLevelEvent(EliasHelper elias)
 {
     return(new elias_event_set_level(
                (uint)flags,
                (uint)preWaitTimeMs,
                transitionPresetName == "" ? 0 : elias.GetTransitionPresetIndex(transitionPresetName),
                elias.GetThemeIndex(themeName),
                level,
                elias.GetGroupIndex(trackGroupName),
                jumpToBar,
                (uint)suggestedMaxTimeMs,
                elias.GetStingerIndex("", stingerName)));
     //Note: By not passing in a theme name, we are getting the stinger index of the currently playing theme.
     //This is required when changing themes, as the stinger that plays is from the theme that is transitioned away from.
 }