示例#1
0
 /// <summary>
 /// Start the cutscene.
 /// </summary>
 /// <param name="commands">Commands to start.</param>
 /// <param name="customCommandInterpreter">The interpreter to interpret custom commands.</param>
 /// <param name="customCommandUpdater">The updater to execute the update cycle of custom commands.</param>
 /// <param name="currentCommandIndex">The command index to start with.</param>
 public void StartCutscene(List <CutsceneCommand> commands, InterpretCustomCommand customCommandInterpreter = null, UpdateCustomCommand customCommandUpdater = null, int currentCommandIndex = 0)
 {
     Commands = commands;
     CustomCommandInterpreter = customCommandInterpreter;
     CustomCommandUpdater     = customCommandUpdater;
     RunningCutscene          = true;
     RunningCommand           = false;
     CurrentCommandIndex      = currentCommandIndex;
 }
示例#2
0
 /// <summary>
 /// Start a cutscene from a file.
 /// </summary>
 /// <param name="filePath">Path to the cutscene file.</param>
 /// <param name="customCommandInterpreter">The interpreter to interpret custom commands.</param>
 /// <param name="customCommandUpdater">The updater to execute the update cycle of custom commands.</param>
 /// <param name="currentCommandIndex">The command index to start with.</param>
 public void StartCutscene(string filePath, InterpretCustomCommand customCommandInterpreter = null, UpdateCustomCommand customCommandUpdater = null, int currentCommandIndex = 0)
 {
     StartCutscene(CutsceneFile.RetrieveCommands(filePath), customCommandInterpreter, customCommandUpdater, currentCommandIndex);
 }