Class CutsceneHandle
Controls one configured local cutscene and reports its current playback state.
public sealed class CutsceneHandle : IDisposable
- Inheritance
-
CutsceneHandle
- Implements
- Inherited Members
- Extension Methods
Properties
Elapsed
Gets elapsed playback time in seconds.
public float Elapsed { get; }
Property Value
EndReason
Gets the reason the most recent playback ended, or null before it ends.
public CutsceneEndReason? EndReason { get; }
Property Value
Id
Gets the stable, mod-namespaced cutscene identifier.
public string Id { get; }
Property Value
IsPlaying
Gets whether this handle is the currently playing S1API cutscene.
public bool IsPlaying { get; }
Property Value
Name
Gets the descriptive cutscene name.
public string Name { get; }
Property Value
Progress
Gets normalized playback progress in the inclusive range from zero to one.
public float Progress { get; }
Property Value
Methods
Dispose()
Stops active playback and prevents this handle from being played again.
public void Dispose()
Play()
Attempts to start local playback.
public bool Play()
Returns
- bool
true when playback started; otherwise false. Runtime unavailability and overlapping playback are logged and fail safely.
Skip()
Skips this cutscene if it is currently playing.
public bool Skip()
Returns
Stop()
Stops this cutscene if it is currently playing.
public bool Stop()