Skip to content

Commit da36cb3

Browse files
Add [UsedImplicitly] attribute for all method classes
1 parent 1f7e629 commit da36cb3

File tree

135 files changed

+415
-127
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

135 files changed

+415
-127
lines changed

FlagSystem/Flags/Flag.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ bool IsRequired
2727
public virtual void OnParsingComplete()
2828
{
2929
}
30-
30+
3131
public abstract void Unbind();
3232

3333
public virtual Result OnScriptRunning(Script scr) => true;

MethodSystem/Methods/AudioMethods/CreateGlobalSpeakerMethod.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1-
using SER.ArgumentSystem.Arguments;
1+
using JetBrains.Annotations;
2+
using SER.ArgumentSystem.Arguments;
23
using SER.ArgumentSystem.BaseArguments;
34
using SER.Helpers.Extensions;
45
using SER.MethodSystem.BaseMethods;
56

67
namespace SER.MethodSystem.Methods.AudioMethods;
78

9+
[UsedImplicitly]
810
public class CreateGlobalSpeakerMethod : SynchronousMethod
911
{
1012
public override string Description => "Creates a speaker to play audio through.";

MethodSystem/Methods/AudioMethods/CreatePlayerAttachedSpeakerMethod.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
using SER.ArgumentSystem.Arguments;
1+
using JetBrains.Annotations;
2+
using SER.ArgumentSystem.Arguments;
23
using SER.ArgumentSystem.BaseArguments;
34
using SER.Helpers.Exceptions;
45
using SER.Helpers.Extensions;
@@ -8,6 +9,7 @@
89

910
namespace SER.MethodSystem.Methods.AudioMethods;
1011

12+
[UsedImplicitly]
1113
public class CreatePlayerAttachedSpeakerMethod : SynchronousMethod, ICanError
1214
{
1315
public override string Description => "Creates a speaker attached to the player to play audio through.";

MethodSystem/Methods/AudioMethods/DestroySpeakerMethod.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1-
using SER.ArgumentSystem.Arguments;
1+
using JetBrains.Annotations;
2+
using SER.ArgumentSystem.Arguments;
23
using SER.ArgumentSystem.BaseArguments;
34
using SER.MethodSystem.BaseMethods;
45

56
namespace SER.MethodSystem.Methods.AudioMethods;
67

8+
[UsedImplicitly]
79
public class DestroySpeakerMethod : SynchronousMethod
810
{
911
public override string Description => "Destorys a speaker.";

MethodSystem/Methods/AudioMethods/IsAudioLoadedMethod.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1-
using SER.ArgumentSystem.Arguments;
1+
using JetBrains.Annotations;
2+
using SER.ArgumentSystem.Arguments;
23
using SER.ArgumentSystem.BaseArguments;
34
using SER.MethodSystem.BaseMethods;
45
using SER.ValueSystem;
56

67
namespace SER.MethodSystem.Methods.AudioMethods;
78

9+
[UsedImplicitly]
810
public class IsAudioLoadedMethod : ReturningMethod<BoolValue>
911
{
1012
public override string Description => "Returns true if a given audio clip has been loaded";

MethodSystem/Methods/AudioMethods/LoadAudioMethod.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
1-
using SER.ArgumentSystem.Arguments;
1+
using JetBrains.Annotations;
2+
using SER.ArgumentSystem.Arguments;
23
using SER.ArgumentSystem.BaseArguments;
34
using SER.Helpers.Exceptions;
45
using SER.MethodSystem.BaseMethods;
56
using SER.MethodSystem.MethodDescriptors;
67

78
namespace SER.MethodSystem.Methods.AudioMethods;
89

10+
[UsedImplicitly]
911
public class LoadAudioMethod : SynchronousMethod, IAdditionalDescription, ICanError
1012
{
1113
public override string Description => "Loads an audio file into the audio player.";

MethodSystem/Methods/AudioMethods/PlayAudioMethod.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
1-
using SER.ArgumentSystem.Arguments;
1+
using JetBrains.Annotations;
2+
using SER.ArgumentSystem.Arguments;
23
using SER.ArgumentSystem.BaseArguments;
34
using SER.Helpers.Exceptions;
45
using SER.MethodSystem.BaseMethods;
56
using SER.MethodSystem.MethodDescriptors;
67

78
namespace SER.MethodSystem.Methods.AudioMethods;
89

10+
[UsedImplicitly]
911
public class PlayAudioMethod : SynchronousMethod, ICanError
1012
{
1113
public override string Description => "Plays a loaded audio clip from a created speaker.";

MethodSystem/Methods/BroadcastMethods/BroadcastMethod.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1-
using LabApi.Features.Wrappers;
1+
using JetBrains.Annotations;
2+
using LabApi.Features.Wrappers;
23
using SER.ArgumentSystem.Arguments;
34
using SER.ArgumentSystem.BaseArguments;
45
using SER.MethodSystem.BaseMethods;
56

67
namespace SER.MethodSystem.Methods.BroadcastMethods;
78

9+
[UsedImplicitly]
810
public class BroadcastMethod : SynchronousMethod
911
{
1012
public override string Description => "Sends a broadcast to players.";

MethodSystem/Methods/BroadcastMethods/ClearBroadcastsMethod.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1-
using SER.ArgumentSystem.Arguments;
1+
using JetBrains.Annotations;
2+
using SER.ArgumentSystem.Arguments;
23
using SER.ArgumentSystem.BaseArguments;
34
using SER.MethodSystem.BaseMethods;
45

56
namespace SER.MethodSystem.Methods.BroadcastMethods;
67

8+
[UsedImplicitly]
79
public class ClearBroadcastsMethod : SynchronousMethod
810
{
911
public override string Description => "Clears broadcasts for players.";

MethodSystem/Methods/BroadcastMethods/ClearCountdownMethod.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1-
using SER.ArgumentSystem.Arguments;
1+
using JetBrains.Annotations;
2+
using SER.ArgumentSystem.Arguments;
23
using SER.ArgumentSystem.BaseArguments;
34
using SER.Helpers;
45
using SER.MethodSystem.BaseMethods;
56

67
namespace SER.MethodSystem.Methods.BroadcastMethods;
78

9+
[UsedImplicitly]
810
public class ClearCountdownMethod : SynchronousMethod
911
{
1012
public override string Description => "Removes an active countdown for players if one is active.";

0 commit comments

Comments
 (0)