chore(git): initial commit
This commit is contained in:
5
.gitignore
vendored
Normal file
5
.gitignore
vendored
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
bin/
|
||||||
|
obj/
|
||||||
|
/packages/
|
||||||
|
riderModule.iml
|
||||||
|
/_ReSharper.Caches/
|
||||||
13
.idea/.idea.WeebSights-Port/.idea/.gitignore
generated
vendored
Normal file
13
.idea/.idea.WeebSights-Port/.idea/.gitignore
generated
vendored
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
# Default ignored files
|
||||||
|
/shelf/
|
||||||
|
/workspace.xml
|
||||||
|
# Rider ignored files
|
||||||
|
/projectSettingsUpdater.xml
|
||||||
|
/.idea.WeebSights-Port.iml
|
||||||
|
/modules.xml
|
||||||
|
/contentModel.xml
|
||||||
|
# Editor-based HTTP Client requests
|
||||||
|
/httpRequests/
|
||||||
|
# Datasource local storage ignored files
|
||||||
|
/dataSources/
|
||||||
|
/dataSources.local.xml
|
||||||
6
.idea/.idea.WeebSights-Port/.idea/copilot.data.migration.agent.xml
generated
Normal file
6
.idea/.idea.WeebSights-Port/.idea/copilot.data.migration.agent.xml
generated
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="AgentMigrationStateService">
|
||||||
|
<option name="migrationStatus" value="COMPLETED" />
|
||||||
|
</component>
|
||||||
|
</project>
|
||||||
4
.idea/.idea.WeebSights-Port/.idea/encodings.xml
generated
Normal file
4
.idea/.idea.WeebSights-Port/.idea/encodings.xml
generated
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="Encoding" addBOMForNewFiles="with BOM under Windows, with no BOM otherwise" />
|
||||||
|
</project>
|
||||||
8
.idea/.idea.WeebSights-Port/.idea/indexLayout.xml
generated
Normal file
8
.idea/.idea.WeebSights-Port/.idea/indexLayout.xml
generated
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="UserContentModel">
|
||||||
|
<attachedFolders />
|
||||||
|
<explicitIncludes />
|
||||||
|
<explicitExcludes />
|
||||||
|
</component>
|
||||||
|
</project>
|
||||||
6
.idea/.idea.WeebSights-Port/.idea/vcs.xml
generated
Normal file
6
.idea/.idea.WeebSights-Port/.idea/vcs.xml
generated
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="VcsDirectoryMappings">
|
||||||
|
<mapping directory="$PROJECT_DIR$" vcs="Git" />
|
||||||
|
</component>
|
||||||
|
</project>
|
||||||
16
WeebSights-Port.sln
Normal file
16
WeebSights-Port.sln
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
|
||||||
|
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||||
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "moe.yuyui.weebsights-port", "moe.yuyui.weebsights-port\moe.yuyui.weebsights-port.csproj", "{D2A6BE7F-0C34-4655-88EF-BC319CD2C069}"
|
||||||
|
EndProject
|
||||||
|
Global
|
||||||
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
|
Debug|Any CPU = Debug|Any CPU
|
||||||
|
Release|Any CPU = Release|Any CPU
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||||
|
{D2A6BE7F-0C34-4655-88EF-BC319CD2C069}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
|
{D2A6BE7F-0C34-4655-88EF-BC319CD2C069}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
|
{D2A6BE7F-0C34-4655-88EF-BC319CD2C069}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
|
{D2A6BE7F-0C34-4655-88EF-BC319CD2C069}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
|
EndGlobalSection
|
||||||
|
EndGlobal
|
||||||
15
moe.yuyui.weebsights-port/Mod.cs
Normal file
15
moe.yuyui.weebsights-port/Mod.cs
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
using SPTarkov.DI.Annotations;
|
||||||
|
using SPTarkov.Server.Core.DI;
|
||||||
|
using SPTarkov.Server.Core.Models.Utils;
|
||||||
|
|
||||||
|
namespace moe.yuyui.weebsights_port;
|
||||||
|
|
||||||
|
[Injectable(TypePriority = OnLoadOrder.PostSptModLoader)]
|
||||||
|
public class Mod(ISptLogger<Mod> logger): IOnLoad
|
||||||
|
{
|
||||||
|
public Task OnLoad()
|
||||||
|
{
|
||||||
|
logger.Success("[Weeb Iron Sights] Items loaded successfully");
|
||||||
|
return Task.CompletedTask;
|
||||||
|
}
|
||||||
|
}
|
||||||
20
moe.yuyui.weebsights-port/ModMetadata.cs
Normal file
20
moe.yuyui.weebsights-port/ModMetadata.cs
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
using SPTarkov.Server.Core.Models.Spt.Mod;
|
||||||
|
|
||||||
|
namespace moe.yuyui.weebsights_port;
|
||||||
|
|
||||||
|
public record ModMetadata : AbstractModMetadata
|
||||||
|
{
|
||||||
|
public override string Name { get; init; } = "Weeb Iron Sights";
|
||||||
|
public override string Author { get; init; } = "yuyui.moe";
|
||||||
|
public override List<string>? Contributors { get; init; } = ["SamSWAT"];
|
||||||
|
public override SemanticVersioning.Version Version { get; init; } = new("1.0.0");
|
||||||
|
public override SemanticVersioning.Range SptVersion { get; init; } = new("~4.0.0");
|
||||||
|
|
||||||
|
|
||||||
|
public override List<string>? Incompatibilities { get; init; }
|
||||||
|
public override Dictionary<string, SemanticVersioning.Range>? ModDependencies { get; init; }
|
||||||
|
public override string? Url { get; init; }
|
||||||
|
public override bool? IsBundleMod { get; init; } = true;
|
||||||
|
public override string? License { get; init; } = "MIT";
|
||||||
|
public override string ModGuid { get; init; } = "moe.yuyui.weebsights-port";
|
||||||
|
}
|
||||||
14
moe.yuyui.weebsights-port/moe.yuyui.weebsights-port.csproj
Normal file
14
moe.yuyui.weebsights-port/moe.yuyui.weebsights-port.csproj
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
|
<PropertyGroup>
|
||||||
|
<TargetFramework>net9.0</TargetFramework>
|
||||||
|
<RootNamespace>moe.yuyui.weebsights_port</RootNamespace>
|
||||||
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
|
<Nullable>enable</Nullable>
|
||||||
|
</PropertyGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<PackageReference Include="SPTarkov.Server.Core" Version="4.0.3" />
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
|
</Project>
|
||||||
Reference in New Issue
Block a user