diff --git a/Properties/AssemblyInfo.cs b/Properties/AssemblyInfo.cs index fb8c0ef..9ed44f2 100644 --- a/Properties/AssemblyInfo.cs +++ b/Properties/AssemblyInfo.cs @@ -1,16 +1,17 @@ using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using Vintagestory.API.Common; // 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("ServerModWorldEdit")] +[assembly: AssemblyTitle("VSModLauncher")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("ServerModWorldEdit")] -[assembly: AssemblyCopyright("Copyright © 2016")] +[assembly: AssemblyProduct("VSModLauncher")] +[assembly: AssemblyCopyright("Copyright © 2018")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] @@ -34,3 +35,7 @@ using System.Runtime.InteropServices; // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("1.0.0.0")] [assembly: AssemblyFileVersion("1.0.0.0")] + +[assembly: ModDependency("game")] +[assembly: ModInfo("RedirectLogs", "redirectlogs", Version = "1.0", Authors = new string[] { "Tyron" }, + Website = "https://github.com/anegostudios/vsmodtemplate", Description = "Redirecting logs to VS", RequiredOnClient = false)] diff --git a/RedirectLogs.cs b/RedirectLogs.cs index 52cac84..56665b9 100644 --- a/RedirectLogs.cs +++ b/RedirectLogs.cs @@ -3,25 +3,13 @@ using Vintagestory.API.Client; using Vintagestory.API.Common; using Vintagestory.API.Server; -namespace VSExampleMods +namespace VSModLauncher { /// /// Redirects all log entries into the visual studio output window. Only for your convenience during development and testing. /// - public class RedirectLogs : ModBase + public class RedirectLogs : ModSystem { - public override ModInfo GetModInfo() - { - return new ModInfo() - { - Name = "RedirectLogs", - Version = "1.0", - GameVersions = new string[] { "1.5+" }, - Description = "Redirecting logs to VS", - Author = "Tyron", - Website = "https://github.com/anegostudios/vsmodtemplate" - }; - } public override bool ShouldLoad(EnumAppSide side) { diff --git a/VSExampleMods.csproj b/VSModLauncher.csproj similarity index 97% rename from VSExampleMods.csproj rename to VSModLauncher.csproj index 08164fe..c9146bd 100644 --- a/VSExampleMods.csproj +++ b/VSModLauncher.csproj @@ -7,8 +7,8 @@ {203DFBF1-3599-43FD-8487-E1C79C2B788F} Library Properties - VSExampleMods - VSExampleMods + VSMods + VSModLauncher v4.5.2 512 diff --git a/VSExampleMods.sln b/VSMods.sln similarity index 52% rename from VSExampleMods.sln rename to VSMods.sln index fa5dc2c..641b471 100644 --- a/VSExampleMods.sln +++ b/VSMods.sln @@ -3,12 +3,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio 14 VisualStudioVersion = 14.0.25420.1 MinimumVisualStudioVersion = 10.0.40219.1 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "VSExampleMods", "VSExampleMods.csproj", "{203DFBF1-3599-43FD-8487-E1C79C2B788F}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MyGoldBlockMod", "mods\ClassLibrary1\MyGoldBlockMod.csproj", "{1E84F46A-B6F4-4590-A93E-FF50FCEDCB8B}" - ProjectSection(ProjectDependencies) = postProject - {203DFBF1-3599-43FD-8487-E1C79C2B788F} = {203DFBF1-3599-43FD-8487-E1C79C2B788F} - EndProjectSection +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "VSModLauncher", "VSModLauncher.csproj", "{203DFBF1-3599-43FD-8487-E1C79C2B788F}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -23,12 +18,6 @@ Global {203DFBF1-3599-43FD-8487-E1C79C2B788F}.Release x64|Any CPU.Build.0 = Release|Any CPU {203DFBF1-3599-43FD-8487-E1C79C2B788F}.Release|Any CPU.ActiveCfg = Release|Any CPU {203DFBF1-3599-43FD-8487-E1C79C2B788F}.Release|Any CPU.Build.0 = Release|Any CPU - {1E84F46A-B6F4-4590-A93E-FF50FCEDCB8B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {1E84F46A-B6F4-4590-A93E-FF50FCEDCB8B}.Debug|Any CPU.Build.0 = Debug|Any CPU - {1E84F46A-B6F4-4590-A93E-FF50FCEDCB8B}.Release x64|Any CPU.ActiveCfg = Release|Any CPU - {1E84F46A-B6F4-4590-A93E-FF50FCEDCB8B}.Release x64|Any CPU.Build.0 = Release|Any CPU - {1E84F46A-B6F4-4590-A93E-FF50FCEDCB8B}.Release|Any CPU.ActiveCfg = Release|Any CPU - {1E84F46A-B6F4-4590-A93E-FF50FCEDCB8B}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/mods/MyGoldBlockName/Class1.cs b/mods/MyGoldBlockName/Class1.cs deleted file mode 100644 index cb4036c..0000000 --- a/mods/MyGoldBlockName/Class1.cs +++ /dev/null @@ -1,17 +0,0 @@ -using System; -using Vintagestory.API.Common; - -namespace ClassLibrary1 -{ - - public class MyTestMod : ModBase - { - - public override void Start(ICoreAPI api) - { - base.Start(api); - Console.Write("It works and can be debugged!"); - } - } - -} diff --git a/mods/MyGoldBlockName/MyGoldBlockName.csproj b/mods/MyGoldBlockName/MyGoldBlockName.csproj deleted file mode 100644 index f1e802b..0000000 --- a/mods/MyGoldBlockName/MyGoldBlockName.csproj +++ /dev/null @@ -1,65 +0,0 @@ - - - - - Debug - AnyCPU - {19149F15-726C-4B58-8F69-0A7A03940521} - Library - Properties - MyGoldBlockName - MyGoldBlockName - v4.5.2 - 512 - - - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - - - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - - - - - - - - - - - - ..\..\..\game\bin\Debug\VintagestoryAPI.dll - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/mods/MyGoldBlockName/Properties/AssemblyInfo.cs b/mods/MyGoldBlockName/Properties/AssemblyInfo.cs deleted file mode 100644 index 13f40c5..0000000 --- a/mods/MyGoldBlockName/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,36 +0,0 @@ -using System.Reflection; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -// 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("MyGoldBlockName")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("MyGoldBlockName")] -[assembly: AssemblyCopyright("Copyright © 2018")] -[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 -// 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("19149f15-726c-4b58-8f69-0a7a03940521")] - -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// 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")] diff --git a/mods/MyGoldBlockName/assets/mygoldblock/blocktypes/mygoldblock.json b/mods/MyGoldBlockName/assets/mygoldblock/blocktypes/mygoldblock.json deleted file mode 100644 index d7640a5..0000000 --- a/mods/MyGoldBlockName/assets/mygoldblock/blocktypes/mygoldblock.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - code: "mygoldblock", - creativeinventory: { "general": ["*"] }, - blockmaterial: "Stone", - drawtype: "Cube", - textures: { - all: { base: "block/mygoldtexture" } - }, - resistance: 3.5, - sounds: { - "place": "game:block/anvil", - "walk": "game:walk/stone" - } -} \ No newline at end of file diff --git a/mods/MyGoldBlockName/assets/mygoldblock/lang/en.json b/mods/MyGoldBlockName/assets/mygoldblock/lang/en.json deleted file mode 100644 index db2c3fa..0000000 --- a/mods/MyGoldBlockName/assets/mygoldblock/lang/en.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "block-mygoldblock": "Block of Gold" -} \ No newline at end of file diff --git a/mods/MyGoldBlockName/assets/mygoldblock/textures/block/mygoldtexture.png b/mods/MyGoldBlockName/assets/mygoldblock/textures/block/mygoldtexture.png deleted file mode 100644 index 264d117..0000000 Binary files a/mods/MyGoldBlockName/assets/mygoldblock/textures/block/mygoldtexture.png and /dev/null differ diff --git a/mods/MyGoldBlockName/modinfo.json b/mods/MyGoldBlockName/modinfo.json deleted file mode 100644 index 29c5d79..0000000 --- a/mods/MyGoldBlockName/modinfo.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "type": "code", - "name": "MyGoldBlockMod", - "description" : "Adds cool looking gold blocks", - "author": "CreativeMD", - "version": "1.0", - "gameversions": [ "1.5.0.3+" ], - "website": "http://example.com" -} \ No newline at end of file