From 6724a9e6abbc4b3c3ca5337ef157b41b589156cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Aguilera=20Puerto?= Date: Sun, 6 Sep 2020 17:16:08 +0200 Subject: [PATCH] Fix jenkins build --- .../Components/LightBehaviourComponent.cs | 13 +++++-------- .../Components/LightBehaviourComponent.cs | 5 ++--- 2 files changed, 7 insertions(+), 11 deletions(-) diff --git a/Content.Client/GameObjects/Components/LightBehaviourComponent.cs b/Content.Client/GameObjects/Components/LightBehaviourComponent.cs index 83ff452c0e..4e50dd2905 100644 --- a/Content.Client/GameObjects/Components/LightBehaviourComponent.cs +++ b/Content.Client/GameObjects/Components/LightBehaviourComponent.cs @@ -1,5 +1,4 @@ - -using System; +using System; using System.Collections.Generic; using Robust.Client.GameObjects; using Robust.Shared.Animations; @@ -13,8 +12,6 @@ using Robust.Shared.Log; using Robust.Shared.Maths; using Robust.Shared.Interfaces.Serialization; using Robust.Client.Animations; -using Robust.Shared.Interfaces.GameObjects; -using Microsoft.CodeAnalysis.CSharp.Syntax; using Robust.Client.GameObjects.Components.Animations; using System.Linq; @@ -43,7 +40,7 @@ namespace Content.Client.GameObjects.Components protected IRobustRandom RobustRandom = default; private float _maxTime = default; - + public virtual void ExposeData(ObjectSerializer serializer) { serializer.DataField(this, x => x.ID, "id", string.Empty); @@ -83,7 +80,7 @@ namespace Content.Client.GameObjects.Components MaxTime = MaxDuration; } - owner.Length = TimeSpan.FromSeconds(MaxTime); + owner.Length = TimeSpan.FromSeconds(MaxTime); } public override (int KeyFrameIndex, float FramePlayingTime) InitPlayback() @@ -344,7 +341,7 @@ namespace Content.Client.GameObjects.Components /// A component which applies a specific behaviour to a PointLightComponent on its owner. /// [RegisterComponent] - public class LightBehaviourComponent : SharedLightBehaviourComponent + public class LightBehaviourComponent : SharedLightBehaviourComponent { private const string KeyPrefix = nameof(LightBehaviourComponent); @@ -387,7 +384,7 @@ namespace Content.Client.GameObjects.Components container.LightBehaviour.Initialize(_lightComponent); } - // we need to initialize all behaviours before starting any + // we need to initialize all behaviours before starting any foreach (var container in _animations) { if (container.LightBehaviour.Enabled) diff --git a/Content.Server/GameObjects/Components/LightBehaviourComponent.cs b/Content.Server/GameObjects/Components/LightBehaviourComponent.cs index 0ab3b8951c..d36a4caa79 100644 --- a/Content.Server/GameObjects/Components/LightBehaviourComponent.cs +++ b/Content.Server/GameObjects/Components/LightBehaviourComponent.cs @@ -1,5 +1,4 @@ - -using Robust.Shared.GameObjects; +using Robust.Shared.GameObjects; using Content.Shared.GameObjects.Components; namespace Content.Server.GameObjects.Components @@ -8,7 +7,7 @@ namespace Content.Server.GameObjects.Components /// A component which applies a specific behaviour to a PointLightComponent on its owner. /// [RegisterComponent] - public class LightBehaviourComponent : SharedLightBehaviourComponent + public class LightBehaviourComponent : SharedLightBehaviourComponent { }