Skip to content

Commit 0c3adcc

Browse files
committed
Update module template
1 parent bd9cf95 commit 0c3adcc

File tree

5 files changed

+12
-18
lines changed

5 files changed

+12
-18
lines changed

Samples/BeatSaberPlus_ModuleTemplate/BeatSaberPlus_ModuleTemplate.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,9 @@
9595
<None Include="BuildTargets.targets" />
9696
</ItemGroup>
9797
<ItemGroup>
98-
<ProjectReference Include="..\..\BeatSaberPlus\BeatSaberPlus.csproj">
98+
<ProjectReference Include="..\..\ChatPlexSDK_BS\ChatPlexSDK_BS.csproj">
9999
<Project>{84972bac-4faf-4da8-92ed-e3a735af0e92}</Project>
100-
<Name>BeatSaberPlus</Name>
100+
<Name>ChatPlexSDK_BS</Name>
101101
</ProjectReference>
102102
</ItemGroup>
103103
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />

Samples/BeatSaberPlus_ModuleTemplate/MTConfig.cs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ internal class MTConfig : CP_SDK.Config.JsonConfig<MTConfig>
1818
/// </summary>
1919
/// <returns></returns>
2020
public override string GetRelativePath()
21-
=> $"{CP_SDK.ChatPlexSDK.ProductName}/ModuleTemplate/Config";
21+
=> $"{CP_SDK.ChatPlexSDK.ProductName}Plus/ModuleTemplate/Config";
2222

2323
////////////////////////////////////////////////////////////////////////////
2424
////////////////////////////////////////////////////////////////////////////
@@ -29,12 +29,7 @@ public override string GetRelativePath()
2929
/// <param name="p_OnCreation">On creation</param>
3030
protected override void OnInit(bool p_OnCreation)
3131
{
32-
if (p_OnCreation)
33-
{
3432

35-
}
36-
37-
Save();
3833
}
3934
}
4035
}

Samples/BeatSaberPlus_ModuleTemplate/ModuleTemplate.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,15 @@ internal class ModuleTemplate : CP_SDK.ModuleBase<ModuleTemplate>
2626
protected override void OnEnable()
2727
{
2828
/// Bind event
29-
BeatSaberPlus.SDK.Game.Logic.OnLevelStarted += Game_OnLevelStarted;
29+
CP_SDK_BS.Game.Logic.OnLevelStarted += Game_OnLevelStarted;
3030
}
3131
/// <summary>
3232
/// Enable the Module
3333
/// </summary>
3434
protected override void OnDisable()
3535
{
3636
/// Unbind event
37-
BeatSaberPlus.SDK.Game.Logic.OnLevelStarted -= Game_OnLevelStarted;
37+
CP_SDK_BS.Game.Logic.OnLevelStarted -= Game_OnLevelStarted;
3838
}
3939

4040
////////////////////////////////////////////////////////////////////////////
@@ -57,7 +57,7 @@ protected override (CP_SDK.UI.IViewController, CP_SDK.UI.IViewController, CP_SDK
5757
/// On level started
5858
/// </summary>
5959
/// <param name="p_LevelData">Level data</param>
60-
private void Game_OnLevelStarted(BeatSaberPlus.SDK.Game.LevelData p_LevelData)
60+
private void Game_OnLevelStarted(CP_SDK_BS.Game.LevelData p_LevelData)
6161
{
6262
var l_MapName = p_LevelData?.Data?.previewBeatmapLevel?.songName ?? "?";
6363
var l_PlatformName = p_LevelData?.Data?.environmentInfo?.serializedName ?? "?";

Samples/BeatSaberPlus_ModuleTemplate/Properties/AssemblyInfo.cs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
using System.Reflection;
2-
using System.Runtime.CompilerServices;
32
using System.Runtime.InteropServices;
43

54
// General Information about an assembly is controlled through the following
@@ -10,7 +9,7 @@
109
[assembly: AssemblyConfiguration("")]
1110
[assembly: AssemblyCompany("HardCPP")]
1211
[assembly: AssemblyProduct("BeatSaberPlus_ModuleTemplate")]
13-
[assembly: AssemblyCopyright("Copyright © HardCPP 2022")]
12+
[assembly: AssemblyCopyright("Copyright © HardCPP 2023")]
1413
[assembly: AssemblyTrademark("")]
1514
[assembly: AssemblyCulture("en")]
1615

@@ -32,5 +31,5 @@
3231
// You can specify all the values or you can default the Build and Revision Numbers
3332
// by using the '*' as shown below:
3433
// [assembly: AssemblyVersion("1.0.*")]
35-
[assembly: AssemblyVersion("6.1.0")]
36-
[assembly: AssemblyFileVersion("6.1.0")]
34+
[assembly: AssemblyVersion("6.2.0")]
35+
[assembly: AssemblyFileVersion("6.2.0")]

Samples/BeatSaberPlus_ModuleTemplate/manifest.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
"$schema": "https://raw.githubusercontent.com/beat-saber-modding-group/BSIPA-MetadataFileSchema/master/Schema.json",
33
"id": "BeatSaberPlus_ModuleTemplate",
44
"name": "BeatSaberPlus_ModuleTemplate",
5-
"author": "HardCPP#1985",
6-
"version": "6.1.0",
5+
"author": "HardCPP",
6+
"version": "6.2.0",
77
"description": "",
88
"gameVersion": "1.31.0",
99
"dependsOn": {
1010
"BSIPA": "^4.3.0",
11-
"BeatSaberPlusCORE": "^6.1.0"
11+
"ChatPlexSDK_BS": "^6.2.0"
1212
},
1313
"links": {
1414
"project-home": "https://discord.chatplex.org",

0 commit comments

Comments
 (0)