Class CurveLightStyle
Namespace: ValveResourceFormat.Renderer.SceneEnvironment
Assembly: Renderer.dll
Style from scripts/light_styles.vdata, as named by barn, rect and omni2 lights.
csharp
public sealed class CurveLightStyle : LightStyleInheritance
object ← LightStyle ← CurveLightStyle
Inherited Members
LightStyle.Duration, LightStyle.Events, LightStyle.GetBrightness(float)
Constructors
CurveLightStyle(KVObject)
Initializes a style from its light styles entry.
csharp
public CurveLightStyle(KVObject style)Parameters
style KVObject
Properties
Duration
Gets the length of one loop in seconds.
csharp
public override float Duration { get; }Property Value
float
Events
Gets the events fired along the loop, sorted by time.
csharp
public override IReadOnlyList<LightStyleEvent> Events { get; }Property Value
IReadOnlyList<LightStyleEvent>
Methods
GetBrightness(float)
Gets the brightness multiplier at a time between zero and LightStyle.Duration.
csharp
public override float GetBrightness(float time)Parameters
time float
Returns
float
LoadAll(IFileLoader)
Loads every light style of a game by name.
csharp
public static Dictionary<string, CurveLightStyle> LoadAll(IFileLoader fileLoader)Parameters
fileLoader IFileLoader
Returns
Dictionary<string, CurveLightStyle>

