generated from AriasCreations/vsmodtemplate
Copy build chain from Vintage Storage
This commit is contained in:
parent
c416e6e5e1
commit
f2a23552af
14 changed files with 125 additions and 51 deletions
50
AriasServerUtils/ASUModSystem.cs
Normal file
50
AriasServerUtils/ASUModSystem.cs
Normal file
|
@ -0,0 +1,50 @@
|
|||
using Vintagestory.API.Client;
|
||||
using Vintagestory.API.Common;
|
||||
using Vintagestory.API.Config;
|
||||
using Vintagestory.API.Server;
|
||||
|
||||
namespace ServerUtilities
|
||||
{
|
||||
public class ServerUtilities : ModSystem
|
||||
{
|
||||
public static string MOD_ID = "ariasserverutils";
|
||||
|
||||
/// <summary>
|
||||
/// Method to register all mod blocks
|
||||
/// </summary>
|
||||
/// <param name="api"></param>
|
||||
private void RegisterBlocks(ICoreAPI api)
|
||||
{
|
||||
api.Logger.Notification("Begin registering block classes for Aria's Server Utils...");
|
||||
|
||||
|
||||
|
||||
|
||||
api.Logger.Notification("Block Classes have been registered for Aria's Server Utils!");
|
||||
}
|
||||
|
||||
private void RegisterBlockEntities(ICoreAPI api)
|
||||
{
|
||||
}
|
||||
|
||||
// Called on server and client
|
||||
public override void Start(ICoreAPI api)
|
||||
{
|
||||
api.Logger.Notification(Lang.Get($"{MOD_ID}:start"));
|
||||
|
||||
RegisterBlocks(api);
|
||||
RegisterBlockEntities(api);
|
||||
|
||||
}
|
||||
|
||||
public override void StartServerSide(ICoreServerAPI api)
|
||||
{
|
||||
api.Logger.Notification(Lang.Get($"{MOD_ID}:start"));
|
||||
}
|
||||
|
||||
public override void StartClientSide(ICoreClientAPI api)
|
||||
{
|
||||
api.Logger.Notification(Lang.Get($"{MOD_ID}:start"));
|
||||
}
|
||||
}
|
||||
}
|
41
AriasServerUtils/AriasServerUtils.csproj
Normal file
41
AriasServerUtils/AriasServerUtils.csproj
Normal file
|
@ -0,0 +1,41 @@
|
|||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net7.0</TargetFramework>
|
||||
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
|
||||
<OutputPath>bin\$(Configuration)\Mods\mod</OutputPath>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Reference Include="VintagestoryAPI">
|
||||
<HintPath>../.game/VintagestoryAPI.dll</HintPath>
|
||||
<Private>false</Private>
|
||||
</Reference>
|
||||
<Reference Include="VSSurvivalMod">
|
||||
<HintPath>../.game/Mods/VSSurvivalMod.dll</HintPath>
|
||||
<Private>False</Private>
|
||||
</Reference>
|
||||
<Reference Include="VSEssentials">
|
||||
<HintPath>../.game/Mods/VSEssentials.dll</HintPath>
|
||||
<Private>False</Private>
|
||||
</Reference>
|
||||
<Reference Include="VSCreativeMod">
|
||||
<HintPath>../.game/Mods/VSCreativeMod.dll</HintPath>
|
||||
<Private>False</Private>
|
||||
</Reference>
|
||||
<Reference Include="Newtonsoft.Json">
|
||||
<HintPath>../.game/Lib/Newtonsoft.Json.dll</HintPath>
|
||||
<Private>False</Private>
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Content Include="assets\**">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<Content Include="modinfo.json">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
16
AriasServerUtils/Properties/launchSettings.json
Normal file
16
AriasServerUtils/Properties/launchSettings.json
Normal file
|
@ -0,0 +1,16 @@
|
|||
{
|
||||
"profiles": {
|
||||
"Client": {
|
||||
"commandName": "Executable",
|
||||
"executablePath": "$(VINTAGE_STORY)/Vintagestory.exe",
|
||||
"commandLineArgs": "--tracelog --addModPath \"$(ProjectDir)/bin/$(Configuration)/Mods\"",
|
||||
"workingDirectory": "$(VINTAGE_STORY)"
|
||||
},
|
||||
"Server": {
|
||||
"commandName": "Executable",
|
||||
"executablePath": "$(VINTAGE_STORY)/VintagestoryServer.exe",
|
||||
"commandLineArgs": "--tracelog --addModPath \"$(ProjectDir)/bin/$(Configuration)/Mods\"",
|
||||
"workingDirectory": "$(VINTAGE_STORY)"
|
||||
}
|
||||
}
|
||||
}
|
1
AriasServerUtils/assets/ariasserverutils/lang/en.json
Normal file
1
AriasServerUtils/assets/ariasserverutils/lang/en.json
Normal file
|
@ -0,0 +1 @@
|
|||
{}
|
11
AriasServerUtils/modinfo.json
Normal file
11
AriasServerUtils/modinfo.json
Normal file
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
"type": "code",
|
||||
"modid": "ariasserverutils",
|
||||
"name": "Aria's Server Utilities",
|
||||
"authors": ["zontreck"],
|
||||
"description": "A collection of server utilities\n\nBuild Date: 01-17-2025 @ 03:12 PM",
|
||||
"version": "1.0.0-dev.1",
|
||||
"dependencies": {
|
||||
"game": ""
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue