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
7 changes: 0 additions & 7 deletions CustomAudioHub/Config.cs

This file was deleted.

18 changes: 1 addition & 17 deletions CustomAudioHub/CustomAudioHub.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<ImplicitUsings>enable</ImplicitUsings>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<Version>0.0.1</Version>
<Version>0.0.2</Version>
<RepositoryType>git</RepositoryType>
<RepositoryUrl>https://github.com/KadavasKingdom/CustomAudioHub</RepositoryUrl>
<PackageProjectUrl>https://github.com/KadavasKingdom/CustomAudioHub</PackageProjectUrl>
Expand All @@ -29,24 +29,8 @@
<PackageReference Include="BepInEx.AssemblyPublicizer.MSBuild" Version="0.4.3" PrivateAssets="all" ExcludeAssets="runtime" ReferenceOutputAssembly="false" Private="true" />
<PackageReference Include="Northwood.LabAPI" Version="1.1.1" Publicize="true" PrivateAssets="all" ExcludeAssets="runtime" ReferenceOutputAssembly="false" Private="true" />
</ItemGroup>
<!-- DLL References -->
<ItemGroup>
<Reference Include="Assembly-CSharp" Publicize="true" Private="false" />
<Reference Include="Assembly-CSharp-firstpass" Private="false" />
<Reference Include="CommandSystem.Core" Publicize="true" Private="false" />
<Reference Include="Mirror" Publicize="true" Private="false" />
<Reference Include="Mirror.Components" Private="false" />
<Reference Include="Pooling" Private="false" />
<Reference Include="Unity.TextMeshPro" Private="false" />
<Reference Include="UnityEngine" Private="false" />
<Reference Include="UnityEngine.CoreModule" Private="false" />
<Reference Include="UnityEngine.ParticleSystemModule" Private="false" />
<Reference Include="UnityEngine.PhysicsModule" Private="false" />
</ItemGroup>
<!-- Usings globals -->
<ItemGroup>
<Using Include="UnityEngine.Random" Alias="URandom" />
<Using Include="LabApi.Features.Wrappers" />
<Using Include="LabApi.Features.Console.Logger" Alias="CL" />
</ItemGroup>

Expand Down
15 changes: 15 additions & 0 deletions CustomAudioHub/Hub.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
using LabApi.Loader.Features.Paths;

namespace CustomAudioHub;

public static class Hub
{
public static readonly DirectoryInfo AudioHubDir = PathManager.Configs.CreateSubdirectory("global").CreateSubdirectory("AudioHub");
/// <summary>
/// Combines the file name with the file path, your file name doesn't need to contain .ogg, if it doesn't it'll be added for you.
/// </summary>
public static string MakeFilePath(string audioName = "ExampleAudio", string audioType = ".ogg")
{
return Path.Combine(AudioHubDir.FullName, audioName.Contains(audioType) ? audioName : $"{audioName}{audioType}");
}
}
46 changes: 0 additions & 46 deletions CustomAudioHub/Main.cs

This file was deleted.

Loading