FlashLightVisualizer refactor + low power handheld light light radius fix (#11768)
* refactor: Removes FlashLightVisualizer (based on obsolete code) in favor or merging its functionality with HandheldLightComponent fix: Low power lighting radius animations for lanterns, floodlights and flashlights now properly restore the original light radius when going back to full power * refactor: Use the LightBehaviour component to animate HandheldLights refactor: Remove unneeded HandheldLight definitions in some yaml files (already inherited by parents) fix: Properly change the server side PointLightComponent Enabled property when turning HandheldLights on/off feat: ReverseWhenFinished property on Fade light behaviours * Empty commit to rerun CI with the new engine PR * fix: Restore the correct HandheldLight addPrefix property, whoops * refactor: blinkingBehaviourID -> blinkingBehaviourId, radiatingBehaviourID -> radiatingBehaviourId
This commit is contained in:
@@ -45,6 +45,20 @@ namespace Content.Shared.Light
|
||||
|
||||
public const int StatusLevels = 6;
|
||||
|
||||
/// <summary>
|
||||
/// Specify the ID of the light behaviour to use when the state of the light is Dying
|
||||
/// </summary>
|
||||
[ViewVariables]
|
||||
[DataField("blinkingBehaviourId")]
|
||||
public string BlinkingBehaviourId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// Specify the ID of the light behaviour to use when the state of the light is LowPower
|
||||
/// </summary>
|
||||
[ViewVariables]
|
||||
[DataField("radiatingBehaviourId")]
|
||||
public string RadiatingBehaviourId { get; set; } = string.Empty;
|
||||
|
||||
[Serializable, NetSerializable]
|
||||
public sealed class HandheldLightComponentState : ComponentState
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user