generated from AriasCreations/vsmodtemplate
Initial commit
This commit is contained in:
commit
c416e6e5e1
17 changed files with 1243 additions and 0 deletions
41
ModTemplate/ModTemplate.csproj
Normal file
41
ModTemplate/ModTemplate.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>$(VINTAGE_STORY)/VintagestoryAPI.dll</HintPath>
|
||||
<Private>false</Private>
|
||||
</Reference>
|
||||
<Reference Include="VSSurvivalMod">
|
||||
<HintPath>$(VINTAGE_STORY)/Mods/VSSurvivalMod.dll</HintPath>
|
||||
<Private>False</Private>
|
||||
</Reference>
|
||||
<Reference Include="VSEssentials">
|
||||
<HintPath>$(VINTAGE_STORY)/Mods/VSEssentials.dll</HintPath>
|
||||
<Private>False</Private>
|
||||
</Reference>
|
||||
<Reference Include="VSCreativeMod">
|
||||
<HintPath>$(VINTAGE_STORY)/Mods/VSCreativeMod.dll</HintPath>
|
||||
<Private>False</Private>
|
||||
</Reference>
|
||||
<Reference Include="Newtonsoft.Json">
|
||||
<HintPath>$(VINTAGE_STORY)/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>
|
26
ModTemplate/ModTemplateModSystem.cs
Normal file
26
ModTemplate/ModTemplateModSystem.cs
Normal file
|
@ -0,0 +1,26 @@
|
|||
using Vintagestory.API.Client;
|
||||
using Vintagestory.API.Common;
|
||||
using Vintagestory.API.Config;
|
||||
using Vintagestory.API.Server;
|
||||
|
||||
namespace ModTemplate
|
||||
{
|
||||
public class ModTemplateModSystem : ModSystem
|
||||
{
|
||||
// Called on server and client
|
||||
public override void Start(ICoreAPI api)
|
||||
{
|
||||
api.Logger.Notification("Hello from template mod: " + Lang.Get("mymodid:hello"));
|
||||
}
|
||||
|
||||
public override void StartServerSide(ICoreServerAPI api)
|
||||
{
|
||||
api.Logger.Notification("Hello from template mod server side");
|
||||
}
|
||||
|
||||
public override void StartClientSide(ICoreClientAPI api)
|
||||
{
|
||||
api.Logger.Notification("Hello from template mod client side");
|
||||
}
|
||||
}
|
||||
}
|
16
ModTemplate/Properties/launchSettings.json
Normal file
16
ModTemplate/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)"
|
||||
}
|
||||
}
|
||||
}
|
3
ModTemplate/assets/mymodid/lang/en.json
Normal file
3
ModTemplate/assets/mymodid/lang/en.json
Normal file
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
"hello": "hello world!"
|
||||
}
|
13
ModTemplate/modinfo.json
Normal file
13
ModTemplate/modinfo.json
Normal file
|
@ -0,0 +1,13 @@
|
|||
{
|
||||
"type": "code",
|
||||
"modid": "mymodid",
|
||||
"name": "My Template Mod",
|
||||
"authors": [
|
||||
"Unknown"
|
||||
],
|
||||
"description": "To be added",
|
||||
"version": "1.0.0",
|
||||
"dependencies": {
|
||||
"game": ""
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue