diff --git a/CC.Creator/App.config b/CC.Creator/App.config deleted file mode 100644 index 193aecc..0000000 --- a/CC.Creator/App.config +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/CC.Creator/CC.Creator.csproj b/CC.Creator/CC.Creator.csproj deleted file mode 100644 index aa3bc26..0000000 --- a/CC.Creator/CC.Creator.csproj +++ /dev/null @@ -1,64 +0,0 @@ - - - - - Debug - AnyCPU - {8E6B61FF-C5AD-4525-B959-7D80E27F80C7} - Exe - CC.Creator - CC.Creator - v4.8 - 512 - true - true - - - AnyCPU - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - - - AnyCPU - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - - - - ..\packages\Newtonsoft.Json.13.0.3\lib\net45\Newtonsoft.Json.dll - - - - - - - - - - - - - - - - - - - - - - {7A726A30-46E5-4E43-A3C9-CFBE4CDA87AD} - CC.Common - - - - \ No newline at end of file diff --git a/CC.Creator/Program.cs b/CC.Creator/Program.cs deleted file mode 100644 index 0f51fbb..0000000 --- a/CC.Creator/Program.cs +++ /dev/null @@ -1,80 +0,0 @@ -using CC.Common; -using System; -using System.IO; - -namespace CC.Creator -{ - internal class Program - { - private const string Splash = @" - - ██████╗ █████╗ ██████╗ ██████╗ ██████╗ - ██╔════╝██╔══██╗██╔══██╗██╔════╝ ██╔═══██╗ - ██║ ███████║██████╔╝██║ ███╗██║ ██║ - ██║ ██╔══██║██╔══██╗██║ ██║██║ ██║ - ╚██████╗██║ ██║██║ ██║╚██████╔╝╚██████╔╝ - ╚═════╝╚═╝ ╚═╝╚═╝ ╚═╝ ╚═════╝ ╚═════╝ - - ██╗ ██╗██╗███████╗ █████╗ ██████╗ ██████╗ - ██║ ██║██║╚══███╔╝██╔══██╗██╔══██╗██╔══██╗ - ██║ █╗ ██║██║ ███╔╝ ███████║██████╔╝██║ ██║ - ██║███╗██║██║ ███╔╝ ██╔══██║██╔══██╗██║ ██║ - ╚███╔███╔╝██║███████╗██║ ██║██║ ██║██████╔╝ - ╚══╝╚══╝ ╚═╝╚══════╝╚═╝ ╚═╝╚═╝ ╚═╝╚═════╝ - - -"; - - private static string s_exportPath = Directory.GetCurrentDirectory(); - - static void Main(string[] args) - { - Console.WriteLine(Splash); - CustomCargo c = new CustomCargo(); - - Console.WriteLine("Welcome to the custom cargo wizard!\n" + - "Just fill in the fields for your custom cargo!\n"); - - Console.WriteLine("Custom cargo ID (name):"); - c.Identifier = Console.ReadLine(); - - Console.WriteLine("Cargo mass per unit:"); - c.MassPerUnit = ForceReadFloat(f => f > 0, "Must be a number greater than 0!"); - - Console.WriteLine("Price per unit:"); - c.FullDamagePrice = ForceReadFloat(f => f > 0, "Must be a number greater than 0!"); - - Console.WriteLine("Environmental damage cost:"); - c.EnvironmentDamagePrice = ForceReadFloat(); - - Console.WriteLine("And finally, the author's name (yours):"); - c.Author = Console.ReadLine(); - - Console.WriteLine("\n\n\nPreparing zip..."); - ZipUtility.WriteToZip(c, s_exportPath); - Console.WriteLine($"Success! Your mod has been created at {s_exportPath}"); - Console.WriteLine("Press any key to exit..."); - Console.ReadKey(); - } - - private static float ForceReadFloat() - { - return ForceReadFloat(_ => true, ""); - } - - private static float ForceReadFloat(Predicate match, string reason) - { - float f; - - while (!float.TryParse(Console.ReadLine(), out f) || !match(f)) - { - var c = Console.ForegroundColor; - Console.ForegroundColor = ConsoleColor.Red; - Console.WriteLine($"Error: {reason}"); - Console.ForegroundColor = c; - } - - return f; - } - } -} diff --git a/CC.Creator/Properties/AssemblyInfo.cs b/CC.Creator/Properties/AssemblyInfo.cs deleted file mode 100644 index d57d8cf..0000000 --- a/CC.Creator/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("CC.Creator")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("CC.Creator")] -[assembly: AssemblyCopyright("Copyright © 2024")] -[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("8e6b61ff-c5ad-4525-b959-7d80e27f80c7")] - -// 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/CC.Creator/packages.config b/CC.Creator/packages.config deleted file mode 100644 index 0b14af3..0000000 --- a/CC.Creator/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file diff --git a/DVCustomCargo.sln b/DVCustomCargo.sln index 251b4ba..273f4f1 100644 --- a/DVCustomCargo.sln +++ b/DVCustomCargo.sln @@ -7,8 +7,6 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "CC.Game", "CC.Game\CC.Game. EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "CC.Common", "CC.Common\CC.Common.csproj", "{7A726A30-46E5-4E43-A3C9-CFBE4CDA87AD}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CC.Creator", "CC.Creator\CC.Creator.csproj", "{8E6B61FF-C5AD-4525-B959-7D80E27F80C7}" -EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "CC.Unity", "CC.Unity\CC.Unity.csproj", "{E98B17B0-B170-4F0D-8548-108C644805B2}" EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{C92A2A56-79DE-49CA-9F9E-F03B9B2066B9}" @@ -30,10 +28,6 @@ Global {7A726A30-46E5-4E43-A3C9-CFBE4CDA87AD}.Debug|Any CPU.Build.0 = Debug|Any CPU {7A726A30-46E5-4E43-A3C9-CFBE4CDA87AD}.Release|Any CPU.ActiveCfg = Release|Any CPU {7A726A30-46E5-4E43-A3C9-CFBE4CDA87AD}.Release|Any CPU.Build.0 = Release|Any CPU - {8E6B61FF-C5AD-4525-B959-7D80E27F80C7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {8E6B61FF-C5AD-4525-B959-7D80E27F80C7}.Debug|Any CPU.Build.0 = Debug|Any CPU - {8E6B61FF-C5AD-4525-B959-7D80E27F80C7}.Release|Any CPU.ActiveCfg = Release|Any CPU - {8E6B61FF-C5AD-4525-B959-7D80E27F80C7}.Release|Any CPU.Build.0 = Release|Any CPU {E98B17B0-B170-4F0D-8548-108C644805B2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {E98B17B0-B170-4F0D-8548-108C644805B2}.Debug|Any CPU.Build.0 = Debug|Any CPU {E98B17B0-B170-4F0D-8548-108C644805B2}.Release|Any CPU.ActiveCfg = Release|Any CPU