Skip to content

Commit a3d8156

Browse files
FileSystem namespace renames
1 parent b778fca commit a3d8156

File tree

6 files changed

+7
-9
lines changed

6 files changed

+7
-9
lines changed

Plugin/Commands/ExamplesCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ public class ExamplesCommand : ICommand
77
{
88
public bool Execute(ArraySegment<string> arguments, ICommandSender sender, out string response)
99
{
10-
FileSystem.GenerateExamples();
10+
FileSystem.FileSystem.GenerateExamples();
1111
response = "Examples have been generated!";
1212
return true;
1313
}

Plugin/Commands/HelpSystem/DocsCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public bool Execute(ArraySegment<string> arguments, ICommandSender sender, out s
3636
sb.AppendLine();
3737
}
3838

39-
using (var sw = File.CreateText(Path.Combine(FileSystem.DirPath, "# Documentation #.txt")))
39+
using (var sw = File.CreateText(Path.Combine(FileSystem.FileSystem.MainDirPath, "# Documentation #.txt")))
4040
{
4141
sw.Write(sb.ToString());
4242
sw.Flush();

Plugin/Commands/ReloadCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public bool Execute(ArraySegment<string> arguments, ICommandSender sender, out s
2020
}
2121

2222
ScriptFlagHandler.Clear();
23-
FileSystem.Initialize();
23+
FileSystem.FileSystem.Initialize();
2424

2525
response = "Successfully reloaded scripts. Changes in script flags are now registered.";
2626
return true;

Plugin/MainPlugin.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public class MainPlugin : LabApi.Loader.Features.Plugins.Plugin<Config>
2020
public override string Description => "The scripting language for SCP:SL.";
2121
public override string Author => "Elektryk_Andrzej";
2222
public override Version RequiredApiVersion => LabApiProperties.CurrentVersion;
23-
public override Version Version => new(0, 9, 0);
23+
public override Version Version => new(0, 10, 0);
2424

2525
public static string GitHubLink => "https://github.com/ScriptedEvents/ScriptedEventsReloaded";
2626
public static string HelpCommandName => "serhelp";
@@ -68,7 +68,7 @@ public override void Enable()
6868
Events.ServerEvents.WaitingForPlayers += OnServerFullyInit;
6969
Events.ServerEvents.RoundRestarted += Disable;
7070

71-
Timing.CallDelayed(1.5f, FileSystem.Initialize);
71+
Timing.CallDelayed(1.5f, FileSystem.FileSystem.Initialize);
7272
}
7373

7474
public override void Disable()

ScriptSystem/Script.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
using SER.Helpers.Exceptions;
1111
using SER.Helpers.Extensions;
1212
using SER.Helpers.ResultSystem;
13-
using SER.Plugin;
1413
using SER.ScriptSystem.Structures;
1514
using SER.TokenSystem;
1615
using SER.TokenSystem.Structures;
@@ -90,7 +89,7 @@ public static TryGet<Script> CreateByScriptName(string dirtyName, ScriptExecutor
9089
return new Script
9190
{
9291
Name = scriptName,
93-
Content = File.ReadAllText(FileSystem.GetScriptPath(scriptName)),
92+
Content = File.ReadAllText(FileSystem.FileSystem.GetScriptPath(scriptName)),
9493
Executor = executor ?? ScriptExecutor.Get()
9594
};
9695
}

ScriptSystem/Structures/ScriptName.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
using SER.Helpers.ResultSystem;
2-
using SER.Plugin;
32

43
namespace SER.ScriptSystem.Structures;
54

@@ -25,7 +24,7 @@ public static ScriptName InitUnchecked(string name)
2524

2625
public static TryGet<ScriptName> TryInit(string name)
2726
{
28-
if (FileSystem.DoesScriptExist(name))
27+
if (FileSystem.FileSystem.DoesScriptExist(name))
2928
{
3029
return $"Script '{name}' does not exist in the SER folder or is inaccessible.";
3130
}

0 commit comments

Comments
 (0)