refactor
This commit is contained in:
@@ -11,14 +11,13 @@ namespace CustomItemSpawn;
|
||||
|
||||
public class CustomItemSpawn : Plugin<ItemConfig>
|
||||
{
|
||||
private static CustomItemSpawn _singleton;
|
||||
public override string Name => "CustomItemSpawn";
|
||||
public override string Author => "Code002Lover";
|
||||
public override Version Version { get; } = new(1, 0, 0);
|
||||
public override string Description => "Spawns items in a custom location.";
|
||||
public override Version RequiredApiVersion { get; } = new(LabApiProperties.CompiledVersion);
|
||||
|
||||
private static CustomItemSpawn _singleton;
|
||||
|
||||
public override void Enable()
|
||||
{
|
||||
_singleton = this;
|
||||
@@ -33,7 +32,7 @@ public class CustomItemSpawn : Plugin<ItemConfig>
|
||||
|
||||
private static void OnRoundStart()
|
||||
{
|
||||
Timing.CallDelayed(10,SpawnItems);
|
||||
Timing.CallDelayed(10, SpawnItems);
|
||||
}
|
||||
|
||||
private static void SpawnItems()
|
||||
|
||||
@@ -24,20 +24,17 @@
|
||||
<HintPath>..\dependencies\Assembly-CSharp.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Assembly-CSharp-firstpass">
|
||||
<HintPath>..\dependencies\Assembly-CSharp-firstpass.dll</HintPath>
|
||||
<HintPath>..\dependencies\Assembly-CSharp-firstpass.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Mirror">
|
||||
<HintPath>..\dependencies\Mirror.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Pooling">
|
||||
<HintPath>..\dependencies\Pooling.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="UnityEngine.CoreModule">
|
||||
<HintPath>..\dependencies\UnityEngine.CoreModule.dll</HintPath>
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Northwood.LabAPI" Version="1.0.2" />
|
||||
<PackageReference Include="Northwood.LabAPI" Version="1.0.2"/>
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
|
||||
Reference in New Issue
Block a user