Skip to content

Commit 3b1bc63

Browse files
added StartRound and EndRound methods
1 parent 4a10285 commit 3b1bc63

File tree

4 files changed

+37
-0
lines changed

4 files changed

+37
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
using LabApi.Features.Wrappers;
2+
using SER.ArgumentSystem.BaseArguments;
3+
using SER.MethodSystem.BaseMethods;
4+
5+
namespace SER.MethodSystem.Methods.RoundMethods;
6+
7+
public class EndRoundMethod : SynchronousMethod
8+
{
9+
public override string? Description => "Ends a round.";
10+
11+
public override Argument[] ExpectedArguments { get; } = [];
12+
13+
public override void Execute()
14+
{
15+
Round.End(true);
16+
}
17+
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
using LabApi.Features.Wrappers;
2+
using SER.ArgumentSystem.BaseArguments;
3+
using SER.MethodSystem.BaseMethods;
4+
5+
namespace SER.MethodSystem.Methods.RoundMethods;
6+
7+
public class StartRoundMethod : SynchronousMethod
8+
{
9+
public override string? Description => "Start a round.";
10+
11+
public override Argument[] ExpectedArguments { get; } = [];
12+
13+
public override void Execute()
14+
{
15+
Round.Start();
16+
}
17+
}

SER.csproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,9 +220,11 @@
220220
<Compile Include="MethodSystem\Methods\RoleMethods\SetRoleMethod.cs" />
221221
<Compile Include="MethodSystem\Methods\RoomMethods\GetRoomByNameMethod.cs" />
222222
<Compile Include="MethodSystem\Methods\RoomMethods\RoomInfoMethod.cs" />
223+
<Compile Include="MethodSystem\Methods\RoundMethods\EndRoundMethod.cs" />
223224
<Compile Include="MethodSystem\Methods\RoundMethods\LobbyLockMethod.cs" />
224225
<Compile Include="MethodSystem\Methods\RoundMethods\RoundInfoMethod.cs" />
225226
<Compile Include="MethodSystem\Methods\RoundMethods\RoundLockMethod.cs" />
227+
<Compile Include="MethodSystem\Methods\RoundMethods\StartRoundMethod.cs" />
226228
<Compile Include="MethodSystem\Methods\ScriptMethods\TransferVariablesMethod.cs" />
227229
<Compile Include="MethodSystem\Methods\ScriptMethods\TriggerMethod.cs" />
228230
<Compile Include="MethodSystem\Methods\ServerMethods\CommandMethod.cs" />

SER.sln.DotSettings.user

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -361,6 +361,7 @@
361361
<s:String x:Key="/Default/CodeInspection/ExcludedFiles/FilesAndFoldersToSkip2/=7020124F_002D9FFC_002D4AC3_002D8F3D_002DAAB8E0240759_002Ff_003ARoomName_002Ecs_002Fl_003A_002E_002E_003F_002E_002E_003FAppData_003FRoaming_003FJetBrains_003FRider2025_002E1_003Fresharper_002Dhost_003FDecompilerCache_003Fdecompiler_003F9b41e261b6f7438da74257a46de8480732e000_003Fed_003F4cd37626_003FRoomName_002Ecs/@EntryIndexedValue">ForceIncluded</s:String>
362362
<s:String x:Key="/Default/CodeInspection/ExcludedFiles/FilesAndFoldersToSkip2/=7020124F_002D9FFC_002D4AC3_002D8F3D_002DAAB8E0240759_002Ff_003ARoom_002Ecs_002Fl_003A_002E_002E_003F_002E_002E_003FAppData_003FRoaming_003FJetBrains_003FRider2025_002E1_003Fresharper_002Dhost_003FDecompilerCache_003Fdecompiler_003Fbea7f403b90e4786abd99fa819db98538f400_003F86_003F180411bc_003FRoom_002Ecs/@EntryIndexedValue">ForceIncluded</s:String>
363363
<s:String x:Key="/Default/CodeInspection/ExcludedFiles/FilesAndFoldersToSkip2/=7020124F_002D9FFC_002D4AC3_002D8F3D_002DAAB8E0240759_002Ff_003ARoom_002Ecs_002Fl_003A_002E_002E_003F_002E_002E_003FAppData_003FRoaming_003FJetBrains_003FRider2025_002E2_003Fresharper_002Dhost_003FDecompilerCache_003Fdecompiler_003Fed207da941d64f12942f0c5cc79632fc90800_003Fcb_003Fd672462a_003FRoom_002Ecs/@EntryIndexedValue">ForceIncluded</s:String>
364+
<s:String x:Key="/Default/CodeInspection/ExcludedFiles/FilesAndFoldersToSkip2/=7020124F_002D9FFC_002D4AC3_002D8F3D_002DAAB8E0240759_002Ff_003ARound_002Ecs_002Fl_003A_002E_002E_003F_002E_002E_003FAppData_003FRoaming_003FJetBrains_003FRider2025_002E2_003Fresharper_002Dhost_003FDecompilerCache_003Fdecompiler_003Fd231fdc39b074662bb6a34ea8879e37bc2000_003Fbb_003Fc3e22e51_003FRound_002Ecs/@EntryIndexedValue">ForceIncluded</s:String>
364365
<s:String x:Key="/Default/CodeInspection/ExcludedFiles/FilesAndFoldersToSkip2/=7020124F_002D9FFC_002D4AC3_002D8F3D_002DAAB8E0240759_002Ff_003ARuntimeHelpers_002Ecs_002Fl_003A_002E_002E_003F_002E_002E_003FAppData_003FRoaming_003FJetBrains_003FRider2024_002E3_003Fresharper_002Dhost_003FDecompilerCache_003Fdecompiler_003Fb18a8b3398e74bca86895881dd02956c573648_003F7e_003Faf537094_003FRuntimeHelpers_002Ecs/@EntryIndexedValue">ForceIncluded</s:String>
365366
<s:String x:Key="/Default/CodeInspection/ExcludedFiles/FilesAndFoldersToSkip2/=7020124F_002D9FFC_002D4AC3_002D8F3D_002DAAB8E0240759_002Ff_003AScp049StartingResurrectionEventArgs_002Ecs_002Fl_003A_002E_002E_003F_002E_002E_003FAppData_003FRoaming_003FJetBrains_003FRider2025_002E1_003Fresharper_002Dhost_003FDecompilerCache_003Fdecompiler_003Fc20488a5a42a492c931d89475bee91cb6ee00_003Ff5_003Fcc8f092a_003FScp049StartingResurrectionEventArgs_002Ecs/@EntryIndexedValue">ForceIncluded</s:String>
366367
<s:String x:Key="/Default/CodeInspection/ExcludedFiles/FilesAndFoldersToSkip2/=7020124F_002D9FFC_002D4AC3_002D8F3D_002DAAB8E0240759_002Ff_003AScp079BlackingOutRoomEventsArgs_002Ecs_002Fl_003A_002E_002E_003F_002E_002E_003FAppData_003FRoaming_003FJetBrains_003FRider2025_002E1_003Fresharper_002Dhost_003FDecompilerCache_003Fdecompiler_003Fc20488a5a42a492c931d89475bee91cb6ee00_003Fc8_003Fd0a2c911_003FScp079BlackingOutRoomEventsArgs_002Ecs/@EntryIndexedValue">ForceIncluded</s:String>

0 commit comments

Comments
 (0)