Skip to content

Commit f47b112

Browse files
add CleanupPickupsMethod.cs
1 parent 3b1bc63 commit f47b112

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
using LabApi.Features.Wrappers;
2+
using SER.ArgumentSystem.BaseArguments;
3+
using SER.Helpers.Extensions;
4+
using SER.MethodSystem.BaseMethods;
5+
6+
namespace SER.MethodSystem.Methods.MapMethods;
7+
8+
public class CleanupPickupsMethod : SynchronousMethod
9+
{
10+
public override string? Description => "Cleans pickups (items) from the map.";
11+
12+
public override Argument[] ExpectedArguments { get; } = [];
13+
14+
public override void Execute()
15+
{
16+
Map.Pickups.ForEachItem(p => p.Destroy());
17+
}
18+
}

SER.sln.DotSettings.user

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,7 @@
304304
<s:String x:Key="/Default/CodeInspection/ExcludedFiles/FilesAndFoldersToSkip2/=7020124F_002D9FFC_002D4AC3_002D8F3D_002DAAB8E0240759_002Ff_003AObject_002Ecs_002Fl_003A_002E_002E_003F_002E_002E_003FAppData_003FRoaming_003FJetBrains_003FRider2025_002E2_003Fresharper_002Dhost_003FDecompilerCache_003Fdecompiler_003F3789ee403a53437cbb6b5d9ab6311f51573620_003F28_003Fb85198b6_003FObject_002Ecs/@EntryIndexedValue">ForceIncluded</s:String>
305305
<s:String x:Key="/Default/CodeInspection/ExcludedFiles/FilesAndFoldersToSkip2/=7020124F_002D9FFC_002D4AC3_002D8F3D_002DAAB8E0240759_002Ff_003APermissions_002Ecs_002Fl_003A_002E_002E_003F_002E_002E_003FAppData_003FRoaming_003FJetBrains_003FRider2025_002E1_003Fresharper_002Dhost_003FDecompilerCache_003Fdecompiler_003Fed806c23dc5f4b7abad1513b152279055e00_003F2b_003F1c95d007_003FPermissions_002Ecs/@EntryIndexedValue">ForceIncluded</s:String>
306306
<s:String x:Key="/Default/CodeInspection/ExcludedFiles/FilesAndFoldersToSkip2/=7020124F_002D9FFC_002D4AC3_002D8F3D_002DAAB8E0240759_002Ff_003APickup_002Ecs_002Fl_003A_002E_002E_003F_002E_002E_003FAppData_003FRoaming_003FJetBrains_003FRider2025_002E1_003Fresharper_002Dhost_003FDecompilerCache_003Fdecompiler_003Fbea7f403b90e4786abd99fa819db98538f400_003Fe8_003F4576f6fc_003FPickup_002Ecs/@EntryIndexedValue">ForceIncluded</s:String>
307+
<s:String x:Key="/Default/CodeInspection/ExcludedFiles/FilesAndFoldersToSkip2/=7020124F_002D9FFC_002D4AC3_002D8F3D_002DAAB8E0240759_002Ff_003APickup_002Ecs_002Fl_003A_002E_002E_003F_002E_002E_003FAppData_003FRoaming_003FJetBrains_003FRider2025_002E2_003Fresharper_002Dhost_003FDecompilerCache_003Fdecompiler_003Fd231fdc39b074662bb6a34ea8879e37bc2000_003F0a_003F3e869cbf_003FPickup_002Ecs/@EntryIndexedValue">ForceIncluded</s:String>
307308
<s:String x:Key="/Default/CodeInspection/ExcludedFiles/FilesAndFoldersToSkip2/=7020124F_002D9FFC_002D4AC3_002D8F3D_002DAAB8E0240759_002Ff_003APlayerChangingRoleEventArgs_002Ecs_002Fl_003A_002E_002E_003F_002E_002E_003FAppData_003FRoaming_003FJetBrains_003FRider2025_002E1_003Fresharper_002Dhost_003FDecompilerCache_003Fdecompiler_003Fbea7f403b90e4786abd99fa819db98538f400_003Fe7_003Fafc22ef5_003FPlayerChangingRoleEventArgs_002Ecs/@EntryIndexedValue">ForceIncluded</s:String>
308309
<s:String x:Key="/Default/CodeInspection/ExcludedFiles/FilesAndFoldersToSkip2/=7020124F_002D9FFC_002D4AC3_002D8F3D_002DAAB8E0240759_002Ff_003APlayerCommandSender_002Ecs_002Fl_003A_002E_002E_003F_002E_002E_003FAppData_003FRoaming_003FJetBrains_003FRider2025_002E1_003Fresharper_002Dhost_003FDecompilerCache_003Fdecompiler_003F9b41e261b6f7438da74257a46de8480732e000_003F70_003F36c07d19_003FPlayerCommandSender_002Ecs/@EntryIndexedValue">ForceIncluded</s:String>
309310
<s:String x:Key="/Default/CodeInspection/ExcludedFiles/FilesAndFoldersToSkip2/=7020124F_002D9FFC_002D4AC3_002D8F3D_002DAAB8E0240759_002Ff_003APlayerDeathEventArgs_002Ecs_002Fl_003A_002E_002E_003F_002E_002E_003FAppData_003FRoaming_003FJetBrains_003FRider2025_002E1_003Fresharper_002Dhost_003FDecompilerCache_003Fdecompiler_003Fbea7f403b90e4786abd99fa819db98538f400_003F20_003F1516cc37_003FPlayerDeathEventArgs_002Ecs/@EntryIndexedValue">ForceIncluded</s:String>
@@ -330,6 +331,7 @@
330331
<s:String x:Key="/Default/CodeInspection/ExcludedFiles/FilesAndFoldersToSkip2/=7020124F_002D9FFC_002D4AC3_002D8F3D_002DAAB8E0240759_002Ff_003APluginLoader_002Ecs_002Fl_003A_002E_002E_003F_002E_002E_003FAppData_003FRoaming_003FJetBrains_003FRider2025_002E1_003Fresharper_002Dhost_003FDecompilerCache_003Fdecompiler_003Fbea7f403b90e4786abd99fa819db98538f400_003Fef_003F0886f161_003FPluginLoader_002Ecs/@EntryIndexedValue">ForceIncluded</s:String>
331332
<s:String x:Key="/Default/CodeInspection/ExcludedFiles/FilesAndFoldersToSkip2/=7020124F_002D9FFC_002D4AC3_002D8F3D_002DAAB8E0240759_002Ff_003APluginPriority_002Ecs_002Fl_003A_002E_002E_003F_002E_002E_003FAppData_003FRoaming_003FJetBrains_003FRider2025_002E1_003Fresharper_002Dhost_003FDecompilerCache_003Fdecompiler_003F1b2ec6677cee4d1b82accdd560c54a2583a00_003F35_003Fefa8f5a9_003FPluginPriority_002Ecs/@EntryIndexedValue">ForceIncluded</s:String>
332333
<s:String x:Key="/Default/CodeInspection/ExcludedFiles/FilesAndFoldersToSkip2/=7020124F_002D9FFC_002D4AC3_002D8F3D_002DAAB8E0240759_002Ff_003APlugin_002Ecs_002Fl_003A_002E_002E_003F_002E_002E_003FAppData_003FRoaming_003FJetBrains_003FRider2025_002E1_003Fresharper_002Dhost_003FDecompilerCache_003Fdecompiler_003Fed207da941d64f12942f0c5cc79632fc90800_003F14_003F0c3c92ac_003FPlugin_002Ecs/@EntryIndexedValue">ForceIncluded</s:String>
334+
<s:String x:Key="/Default/CodeInspection/ExcludedFiles/FilesAndFoldersToSkip2/=7020124F_002D9FFC_002D4AC3_002D8F3D_002DAAB8E0240759_002Ff_003APlugin_002Ecs_002Fl_003A_002E_002E_003F_002E_002E_003FAppData_003FRoaming_003FJetBrains_003FRider2025_002E2_003Fresharper_002Dhost_003FDecompilerCache_003Fdecompiler_003Fd231fdc39b074662bb6a34ea8879e37bc2000_003Faa_003Fc4be4645_003FPlugin_002Ecs/@EntryIndexedValue">ForceIncluded</s:String>
333335
<s:String x:Key="/Default/CodeInspection/ExcludedFiles/FilesAndFoldersToSkip2/=7020124F_002D9FFC_002D4AC3_002D8F3D_002DAAB8E0240759_002Ff_003APlugin_00601_002Ecs_002Fl_003A_002E_002E_003F_002E_002E_003FAppData_003FRoaming_003FJetBrains_003FRider2025_002E1_003Fresharper_002Dhost_003FDecompilerCache_003Fdecompiler_003F1b2ec6677cee4d1b82accdd560c54a2583a00_003F02_003F861b6db9_003FPlugin_00601_002Ecs/@EntryIndexedValue">ForceIncluded</s:String>
334336
<s:String x:Key="/Default/CodeInspection/ExcludedFiles/FilesAndFoldersToSkip2/=7020124F_002D9FFC_002D4AC3_002D8F3D_002DAAB8E0240759_002Ff_003APredicate_00601_002Ecs_002Fl_003A_002E_002E_003F_002E_002E_003FAppData_003FRoaming_003FJetBrains_003FRider2024_002E3_003Fresharper_002Dhost_003FDecompilerCache_003Fdecompiler_003Fb18a8b3398e74bca86895881dd02956c573648_003F0c_003Fde596308_003FPredicate_00601_002Ecs/@EntryIndexedValue">ForceIncluded</s:String>
335337
<s:String x:Key="/Default/CodeInspection/ExcludedFiles/FilesAndFoldersToSkip2/=7020124F_002D9FFC_002D4AC3_002D8F3D_002DAAB8E0240759_002Ff_003APureAttribute_002Ecs_002Fl_003A_002E_002E_003F_002E_002E_003FAppData_003FRoaming_003FJetBrains_003FRider2024_002E3_003Fresharper_002Dhost_003FDecompilerCache_003Fdecompiler_003Faff3a905bea14cbeaf316593b3097008136218_003Fbb_003F80965922_003FPureAttribute_002Ecs/@EntryIndexedValue">ForceIncluded</s:String>

0 commit comments

Comments
 (0)