Skip to content

Commit

Permalink
update to new BSIPA template, bump version to 1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Hyphen-ated committed Apr 28, 2019
1 parent 2d5cd75 commit f070a65
Show file tree
Hide file tree
Showing 9 changed files with 161 additions and 172 deletions.
85 changes: 0 additions & 85 deletions BeatSaberNoHealthAndSafety/BeatSaberNoHealthAndSafety.csproj

This file was deleted.

61 changes: 0 additions & 61 deletions BeatSaberNoHealthAndSafety/Plugin.cs

This file was deleted.

12 changes: 6 additions & 6 deletions BeatSaberNoHealthAndSafety.sln → NoHealthAndSafety.sln
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,23 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.28307.168
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BeatSaberNoHealthAndSafety", "BeatSaberNoHealthAndSafety\BeatSaberNoHealthAndSafety.csproj", "{7BC4A8D2-92ED-4017-93F6-014F1747AEA2}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NoHealthAndSafety", "NoHealthAndSafety\NoHealthAndSafety.csproj", "{866134A1-8162-471F-9D42-9063732B7515}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{7BC4A8D2-92ED-4017-93F6-014F1747AEA2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{7BC4A8D2-92ED-4017-93F6-014F1747AEA2}.Debug|Any CPU.Build.0 = Debug|Any CPU
{7BC4A8D2-92ED-4017-93F6-014F1747AEA2}.Release|Any CPU.ActiveCfg = Release|Any CPU
{7BC4A8D2-92ED-4017-93F6-014F1747AEA2}.Release|Any CPU.Build.0 = Release|Any CPU
{866134A1-8162-471F-9D42-9063732B7515}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{866134A1-8162-471F-9D42-9063732B7515}.Debug|Any CPU.Build.0 = Debug|Any CPU
{866134A1-8162-471F-9D42-9063732B7515}.Release|Any CPU.ActiveCfg = Release|Any CPU
{866134A1-8162-471F-9D42-9063732B7515}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {76A776E7-432E-410D-BA0F-21A3EC7CB6B8}
SolutionGuid = {C7EC7C65-EBBC-4FBB-891C-71158258A71B}
EndGlobalSection
EndGlobal
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Collections;
using UnityEngine;
using UnityEngine.UI;

namespace BeatSaberNoHealthAndSafety
namespace NoHealthAndSafety
{
class ButtonPresser : MonoBehaviour
{
Expand All @@ -18,7 +13,6 @@ private IEnumerator clickIt()
{
if (button.name == "Continue")
{
Console.WriteLine("[NoHealthAndSafety]: Clicking 'continue' through the safety warning");
button.onClick.Invoke();
}
}
Expand All @@ -29,4 +23,4 @@ void Awake()
StartCoroutine(clickIt());
}
}
}
}
9 changes: 9 additions & 0 deletions NoHealthAndSafety/Logger.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
using IPALogger = IPA.Logging.Logger;

namespace NoHealthAndSafety
{
internal static class Logger
{
public static IPALogger log { get; set; }
}
}
66 changes: 66 additions & 0 deletions NoHealthAndSafety/NoHealthAndSafety.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>8.0.30703</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{866134A1-8162-471F-9D42-9063732B7515}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>NoHealthAndSafety</RootNamespace>
<AssemblyName>NoHealthAndSafety</AssemblyName>
<TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<PathMap>$(SolutionDir)=C:\</PathMap>
<DebugType>portable</DebugType>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="IPA.Loader">
<HintPath>D:\SteamLibrary\SteamApps\common\Beat Saber\Beat Saber_Data\Managed\IPA.Loader.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Xml" />
<Reference Include="UnityEngine, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>D:\SteamLibrary\SteamApps\common\Beat Saber\Beat Saber_Data\Managed\UnityEngine.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.CoreModule">
<HintPath>D:\SteamLibrary\SteamApps\common\Beat Saber\Beat Saber_Data\Managed\UnityEngine.CoreModule.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.UI">
<HintPath>D:\SteamLibrary\SteamApps\common\Beat Saber\Beat Saber_Data\Managed\UnityEngine.UI.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
<Compile Include="ButtonPresser.cs" />
<Compile Include="Plugin.cs" />
<Compile Include="Logger.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="manifest.json" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>
56 changes: 56 additions & 0 deletions NoHealthAndSafety/Plugin.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
using IPA;
using IPA.Config;
using IPA.Utilities;
using UnityEngine;
using UnityEngine.SceneManagement;
using UnityEngine.UI;
using IPALogger = IPA.Logging.Logger;

namespace NoHealthAndSafety
{
public class Plugin : IBeatSaberPlugin
{
public void Init(IPALogger logger, [Config.Prefer("json")] IConfigProvider cfgProvider)
{
Logger.log = logger;
}

public void OnApplicationStart()
{

}

public void OnApplicationQuit()
{

}

public void OnFixedUpdate()
{

}

public void OnUpdate()
{

}

public void OnActiveSceneChanged(Scene prevScene, Scene nextScene)
{
if (nextScene.name == "HealthWarning")
{
new GameObject("ButtonPresser").AddComponent<ButtonPresser>();
}
}

public void OnSceneLoaded(Scene scene, LoadSceneMode sceneMode)
{

}

public void OnSceneUnloaded(Scene scene)
{

}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,35 +2,35 @@
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;

// General Information about an assembly is controlled through the following
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("BeatSaberNoHealthAndSafety")]
[assembly: AssemblyTitle("NoHealthAndSafety")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("BeatSaberNoHealthAndSafety")]
[assembly: AssemblyCopyright("Copyright © 2018")]
[assembly: AssemblyProduct("NoHealthAndSafety")]
[assembly: AssemblyCopyright("Copyright © 2019")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]

// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("7bc4a8d2-92ed-4017-93f6-014f1747aea2")]
[assembly: Guid("866134a1-8162-471f-9d42-9063732b7515")]

// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyVersion("1.0.0")]
[assembly: AssemblyFileVersion("1.0.0")]
Loading

0 comments on commit f070a65

Please sign in to comment.