Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
898 changes: 0 additions & 898 deletions AutoEvent-NWApi/Interfaces/Event.cs

This file was deleted.

398 changes: 0 additions & 398 deletions AutoEvent-NWApi/Loader.cs

This file was deleted.

196 changes: 0 additions & 196 deletions AutoEvent-NWApi/Plugin.cs

This file was deleted.

4 changes: 2 additions & 2 deletions AutoEvent/API/Components/SchematicCollisionComponent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
using System.Collections.Generic;
using System.Linq;
using AdminToys;
using AutoEvent.API.Schematic;
using AutoEvent.API.Schematic.Objects;
using MER.Lite;
using MER.Lite.Objects;
using Mirror;
using PlayerStatsSystem;
using PluginAPI.Core;
Expand Down
4 changes: 2 additions & 2 deletions AutoEvent/API/Extensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
using PlayerRoles;
using SCPSLAudioApi.AudioCore;
using VoiceChat;
using AutoEvent.API.Schematic.Objects;
using AutoEvent.API.Schematic;
using MER.Lite.Objects;
using MER.Lite;
using PluginAPI.Core;
using InventorySystem.Items.Pickups;
using PlayerStatsSystem;
Expand Down
23 changes: 23 additions & 0 deletions AutoEvent/AutoEvent.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
<PackageReference Include="Lib.Harmony" Version="2.2.2" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
<PackageReference Include="Northwood.PluginAPI" Version="13.1.1" />
<PackageReference Include="NVorbis" Version="0.10.5" />
<PackageReference Include="YamlDotNet" Version="13.3.1" />
</ItemGroup>
<ItemGroup>
Expand Down Expand Up @@ -77,4 +78,26 @@
<Content Include="FodyWeavers.xml" />
<Content Include="PlantUMLDocuments\*" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Remove="SchematicApi\**" />
<EmbeddedResource Remove="SchematicApi\*" />
<EmbeddedResource Remove="PowerupApi\**" />
<EmbeddedResource Remove="PowerupApi\*" />
</ItemGroup>
<ItemGroup>
<None Remove="SchematicApi\**" />
<None Remove="SchematicApi\*" />
<None Remove="PowerupApi\**" />
<None Remove="PowerupApi\*" />
</ItemGroup>
<ItemGroup>
<Compile Remove="SchematicApi\**" />
<Compile Remove="SchematicApi\*" />
<Compile Remove="PowerupApi\**" />
<Compile Remove="PowerupApi\*" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="PowerupApi\PowerupApi.csproj" />
<ProjectReference Include="SchematicApi\SchematicApi.csproj" />
</ItemGroup>
</Project>
12 changes: 12 additions & 0 deletions AutoEvent/AutoEvent.sln
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ VisualStudioVersion = 17.5.33627.172
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AutoEvent", "AutoEvent.csproj", "{3C3FC008-22E1-4B28-BA50-A241B30CC216}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SchematicApi", "SchematicApi\SchematicApi.csproj", "{580DFED2-B2D7-4B89-B245-D60246BCFB79}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PowerupApi", "PowerupApi\PowerupApi.csproj", "{1B07FE64-A112-499D-8A55-67EE912B1CB7}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Release NWApi|Any CPU = Release NWApi|Any CPU
Expand All @@ -15,6 +19,14 @@ Global
{3C3FC008-22E1-4B28-BA50-A241B30CC216}.Release NWApi|Any CPU.Build.0 = Release NWApi|Any CPU
{3C3FC008-22E1-4B28-BA50-A241B30CC216}.Release Exiled|Any CPU.ActiveCfg = Release EXILED|Any CPU
{3C3FC008-22E1-4B28-BA50-A241B30CC216}.Release Exiled|Any CPU.Build.0 = Release EXILED|Any CPU
{580DFED2-B2D7-4B89-B245-D60246BCFB79}.Release NWApi|Any CPU.ActiveCfg = Debug|Any CPU
{580DFED2-B2D7-4B89-B245-D60246BCFB79}.Release NWApi|Any CPU.Build.0 = Debug|Any CPU
{580DFED2-B2D7-4B89-B245-D60246BCFB79}.Release Exiled|Any CPU.ActiveCfg = Debug|Any CPU
{580DFED2-B2D7-4B89-B245-D60246BCFB79}.Release Exiled|Any CPU.Build.0 = Debug|Any CPU
{1B07FE64-A112-499D-8A55-67EE912B1CB7}.Release NWApi|Any CPU.ActiveCfg = Debug|Any CPU
{1B07FE64-A112-499D-8A55-67EE912B1CB7}.Release NWApi|Any CPU.Build.0 = Debug|Any CPU
{1B07FE64-A112-499D-8A55-67EE912B1CB7}.Release Exiled|Any CPU.ActiveCfg = Debug|Any CPU
{1B07FE64-A112-499D-8A55-67EE912B1CB7}.Release Exiled|Any CPU.Build.0 = Debug|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down
8 changes: 5 additions & 3 deletions AutoEvent/Commands/Debug/PowerupCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
using AutoEvent.Interfaces;
using CommandSystem;
using PluginAPI.Core;
using Powerups;
using Powerups.Api;
using UnityEngine;
using Player = PluginAPI.Core.Player;
#if EXILED
Expand All @@ -28,7 +30,7 @@ namespace AutoEvent.Commands.Debug;

public class PowerupCommand : ICommand, IPermission, IUsageProvider
{
public string Command => nameof(Interfaces.Powerup);
public string Command => "Powerup";
public string[] Aliases => Array.Empty<string>();
public string Description => "Manages powerups.";
public string[] Usage => new []{ "Give / Remove / Spawn / List", "Player / Powerup", "Powerup / Position X", "Position Y", "Position Z" };
Expand All @@ -47,7 +49,7 @@ public bool Execute(ArraySegment<string> arguments, ICommandSender sender, out s
goto usage;
}
Player ply = null!;
Interfaces.Powerup powerup = null!;
Powerup powerup = null!;

switch (arguments.At(0).ToLower())
{
Expand Down Expand Up @@ -142,7 +144,7 @@ public bool Execute(ArraySegment<string> arguments, ICommandSender sender, out s
case 1:
if (arguments.At(i) == "*")
{
foreach (Interfaces.Powerup powerupInstance in PowerupManager.RegisteredPowerups)
foreach (Powerup powerupInstance in PowerupManager.RegisteredPowerups)
{
if (powerupInstance.ActivePlayers.ContainsKey(ply))
{
Expand Down
26 changes: 26 additions & 0 deletions AutoEvent/DebugLogger.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
using System;
using System.Collections.Generic;
using System.IO;
using MEC;
using PluginAPI;
using PluginAPI.Core;
using PluginAPI.Helpers;
using UnityEngine;
Expand Down Expand Up @@ -48,6 +50,30 @@ public DebugLogger(bool writeDirectly)
}

File.Create(_filePath).Close();
/*Timing.CallDelayed(5f, () =>
{

string text = $"Plugin Api Info: \n" +
$" Version: {PluginApiVersion.Version}\n" +
$" VersionStatic: {PluginApiVersion.VersionStatic}\n" +
$" VersionString: {PluginApiVersion.VersionString}\n" +
$"Plugins Present: ";
/*Plugins Present:
* MapEditorReborn.dll (MapEditorReborn vX by Author)
* Assembly Hash: 142wesdvsdfsg
*
*
*//*

foreach (var plugin in PluginAPI.Loader.AssemblyLoader.Plugins)
{
var hashId = plugin.Key.ManifestModule.ModuleVersionId;

//text += $" {plugin.Key.FullName} {plugin.}";
text += $" Assembly Hash: {hashId}";
}
File.AppendAllText(_filePath,);
});*/
}
}
catch (Exception e)
Expand Down
3 changes: 3 additions & 0 deletions AutoEvent/FodyWeavers.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
0Harmony
System.ComponentModel.DataAnnotations
YamlDotNet
NVorbis
PowerupApi
SchematicApi
</IncludeAssemblies>
</Costura>

Expand Down
2 changes: 1 addition & 1 deletion AutoEvent/Games/Battle/Features/RandomClass.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System;
using System.Collections.Generic;
using AutoEvent.API.Schematic.Objects;
using MER.Lite.Objects;
using PluginAPI.Core;
using System.Linq;
using AutoEvent.Games.Example;
Expand Down
2 changes: 1 addition & 1 deletion AutoEvent/Games/Battle/Plugin.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using AutoEvent.API.Schematic.Objects;
using MER.Lite.Objects;
using AutoEvent.Events.Handlers;
using MEC;
using PlayerRoles;
Expand Down
2 changes: 1 addition & 1 deletion AutoEvent/Games/Boss/Features/RandomClass.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using AutoEvent.API.Schematic.Objects;
using MER.Lite.Objects;
using PluginAPI.Core;
using System.Linq;
using UnityEngine;
Expand Down
2 changes: 1 addition & 1 deletion AutoEvent/Games/Boss/Plugin.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using AutoEvent.API.Schematic.Objects;
using MER.Lite.Objects;
using MEC;
using PlayerRoles;
using PluginAPI.Core;
Expand Down
2 changes: 1 addition & 1 deletion AutoEvent/Games/DeathParty/Features/RandomClass.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using AutoEvent.API.Schematic.Objects;
using MER.Lite.Objects;
using System.Linq;
using UnityEngine;

Expand Down
Loading