commit 7812e7cc2bdb5da913424e56ee2458315e50f6cc Author: Pecha Date: Mon Sep 7 16:58:48 2020 +1000 initial creach 0u0 diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..f138aea --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,27 @@ +{ + // Use IntelliSense to find out which attributes exist for C# debugging + // Use hover for the description of the existing attributes + // For further information visit https://github.com/OmniSharp/omnisharp-vscode/blob/master/debugger-launchjson.md + "version": "0.2.0", + "configurations": [ + { + "name": ".NET Core Launch (console)", + "type": "coreclr", + "request": "launch", + "preLaunchTask": "build", + // If you have changed target frameworks, make sure to update the program path. + "program": "${workspaceFolder}/bin/Debug/netcoreapp3.1/creachopedia.dll", + "args": [], + "cwd": "${workspaceFolder}", + // For more information about the 'console' field, see https://aka.ms/VSCode-CS-LaunchJson-Console + "console": "internalConsole", + "stopAtEntry": false + }, + { + "name": ".NET Core Attach", + "type": "coreclr", + "request": "attach", + "processId": "${command:pickProcess}" + } + ] +} \ No newline at end of file diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 0000000..902516b --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,42 @@ +{ + "version": "2.0.0", + "tasks": [ + { + "label": "build", + "command": "dotnet", + "type": "process", + "args": [ + "build", + "${workspaceFolder}/creachopedia.csproj", + "/property:GenerateFullPaths=true", + "/consoleloggerparameters:NoSummary" + ], + "problemMatcher": "$msCompile" + }, + { + "label": "publish", + "command": "dotnet", + "type": "process", + "args": [ + "publish", + "${workspaceFolder}/creachopedia.csproj", + "/property:GenerateFullPaths=true", + "/consoleloggerparameters:NoSummary" + ], + "problemMatcher": "$msCompile" + }, + { + "label": "watch", + "command": "dotnet", + "type": "process", + "args": [ + "watch", + "run", + "${workspaceFolder}/creachopedia.csproj", + "/property:GenerateFullPaths=true", + "/consoleloggerparameters:NoSummary" + ], + "problemMatcher": "$msCompile" + } + ] +} \ No newline at end of file diff --git a/Creacher.cs b/Creacher.cs new file mode 100644 index 0000000..ac7dfd4 --- /dev/null +++ b/Creacher.cs @@ -0,0 +1,19 @@ +using System; + +namespace creachopedia { + class Creacher { + public string name; + public int kingdom; + public string description; + public int footsies; + + public Creacher(string name, int footsyCount = 4) { + this.name = name; + this.footsies = footsyCount; + } + + public void Introduce() { + Console.WriteLine($"Hello, my name is... {this.name}. I am a {this.GetType()}, and I have {this.footsies} footsies."); + } + } +} \ No newline at end of file diff --git a/CreacherTypes.cs b/CreacherTypes.cs new file mode 100644 index 0000000..1ec5f26 --- /dev/null +++ b/CreacherTypes.cs @@ -0,0 +1,22 @@ +namespace creachopedia { + class GroundCreacher:Creacher { + public GroundCreacher(string name, int footsyCount):base(name, footsyCount){ + + } + } + class AirCreacher:Creacher { + public AirCreacher(string name, int footsyCount):base(name, footsyCount){ + + } + } + class WaterCreacher:Creacher{ + public WaterCreacher(string name, int footsyCount):base(name, footsyCount){ + + } + } + class UndergroundCreacher:Creacher { + public UndergroundCreacher(string name, int footsyCount):base(name, footsyCount){ + + } + } +} \ No newline at end of file diff --git a/Program.cs b/Program.cs new file mode 100644 index 0000000..301940b --- /dev/null +++ b/Program.cs @@ -0,0 +1,36 @@ +using System; +using System.Collections.Generic; + + +namespace creachopedia { + class Program { + static void Main(string[] args) { + var creacherdict = new Dictionary(); + + creacherdict.Add("paca", new GroundCreacher("paca", 4)); + creacherdict.Add("llama", new GroundCreacher("llama", 4)); + creacherdict.Add("stingray", new WaterCreacher("stingray", 0)); + + while (true) { + Console.WriteLine("Please input a creacher name 0u0"); + string userin = Console.ReadLine(); + if (creacherdict.ContainsKey(userin)) { + creacherdict[userin].Introduce(); + } + else if(userin == "q"){ + Console.WriteLine("Thank you for using the CreachoPedia!!!!"); + return; + } + else if(userin == "heenlo!" || userin == "henlo" || userin == "heenlo"){ + Console.WriteLine("Well heenlo to you too! 0u0"); + } + else { + Console.WriteLine("I don't know what that is! What on boo Earth?!!?!?!?"); + } + } + + + + } + } +} diff --git a/bin/Debug/netcoreapp3.1/creachopedia b/bin/Debug/netcoreapp3.1/creachopedia new file mode 100755 index 0000000..1d024ed Binary files /dev/null and b/bin/Debug/netcoreapp3.1/creachopedia differ diff --git a/bin/Debug/netcoreapp3.1/creachopedia.deps.json b/bin/Debug/netcoreapp3.1/creachopedia.deps.json new file mode 100644 index 0000000..79ab138 --- /dev/null +++ b/bin/Debug/netcoreapp3.1/creachopedia.deps.json @@ -0,0 +1,23 @@ +{ + "runtimeTarget": { + "name": ".NETCoreApp,Version=v3.1", + "signature": "" + }, + "compilationOptions": {}, + "targets": { + ".NETCoreApp,Version=v3.1": { + "creachopedia/1.0.0": { + "runtime": { + "creachopedia.dll": {} + } + } + } + }, + "libraries": { + "creachopedia/1.0.0": { + "type": "project", + "serviceable": false, + "sha512": "" + } + } +} \ No newline at end of file diff --git a/bin/Debug/netcoreapp3.1/creachopedia.dll b/bin/Debug/netcoreapp3.1/creachopedia.dll new file mode 100644 index 0000000..0d547b0 Binary files /dev/null and b/bin/Debug/netcoreapp3.1/creachopedia.dll differ diff --git a/bin/Debug/netcoreapp3.1/creachopedia.pdb b/bin/Debug/netcoreapp3.1/creachopedia.pdb new file mode 100644 index 0000000..86df146 Binary files /dev/null and b/bin/Debug/netcoreapp3.1/creachopedia.pdb differ diff --git a/bin/Debug/netcoreapp3.1/creachopedia.runtimeconfig.dev.json b/bin/Debug/netcoreapp3.1/creachopedia.runtimeconfig.dev.json new file mode 100644 index 0000000..d9731e2 --- /dev/null +++ b/bin/Debug/netcoreapp3.1/creachopedia.runtimeconfig.dev.json @@ -0,0 +1,8 @@ +{ + "runtimeOptions": { + "additionalProbingPaths": [ + "/home/petra/.dotnet/store/|arch|/|tfm|", + "/home/petra/.nuget/packages" + ] + } +} \ No newline at end of file diff --git a/bin/Debug/netcoreapp3.1/creachopedia.runtimeconfig.json b/bin/Debug/netcoreapp3.1/creachopedia.runtimeconfig.json new file mode 100644 index 0000000..bc456d7 --- /dev/null +++ b/bin/Debug/netcoreapp3.1/creachopedia.runtimeconfig.json @@ -0,0 +1,9 @@ +{ + "runtimeOptions": { + "tfm": "netcoreapp3.1", + "framework": { + "name": "Microsoft.NETCore.App", + "version": "3.1.0" + } + } +} \ No newline at end of file diff --git a/creachopedia.csproj b/creachopedia.csproj new file mode 100644 index 0000000..d453e9a --- /dev/null +++ b/creachopedia.csproj @@ -0,0 +1,8 @@ + + + + Exe + netcoreapp3.1 + + + diff --git a/obj/Debug/netcoreapp3.1/.NETCoreApp,Version=v3.1.AssemblyAttributes.cs b/obj/Debug/netcoreapp3.1/.NETCoreApp,Version=v3.1.AssemblyAttributes.cs new file mode 100644 index 0000000..03fd1de --- /dev/null +++ b/obj/Debug/netcoreapp3.1/.NETCoreApp,Version=v3.1.AssemblyAttributes.cs @@ -0,0 +1,4 @@ +// +using System; +using System.Reflection; +[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v3.1", FrameworkDisplayName = "")] diff --git a/obj/Debug/netcoreapp3.1/creachopedia b/obj/Debug/netcoreapp3.1/creachopedia new file mode 100755 index 0000000..1d024ed Binary files /dev/null and b/obj/Debug/netcoreapp3.1/creachopedia differ diff --git a/obj/Debug/netcoreapp3.1/creachopedia.AssemblyInfo.cs b/obj/Debug/netcoreapp3.1/creachopedia.AssemblyInfo.cs new file mode 100644 index 0000000..ac5c6a0 --- /dev/null +++ b/obj/Debug/netcoreapp3.1/creachopedia.AssemblyInfo.cs @@ -0,0 +1,23 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.42000 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using System; +using System.Reflection; + +[assembly: System.Reflection.AssemblyCompanyAttribute("creachopedia")] +[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")] +[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")] +[assembly: System.Reflection.AssemblyProductAttribute("creachopedia")] +[assembly: System.Reflection.AssemblyTitleAttribute("creachopedia")] +[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] + +// Generated by the MSBuild WriteCodeFragment class. + diff --git a/obj/Debug/netcoreapp3.1/creachopedia.AssemblyInfoInputs.cache b/obj/Debug/netcoreapp3.1/creachopedia.AssemblyInfoInputs.cache new file mode 100644 index 0000000..2003594 --- /dev/null +++ b/obj/Debug/netcoreapp3.1/creachopedia.AssemblyInfoInputs.cache @@ -0,0 +1 @@ +834b41680c0506c797a0f6ec23e358fb51b7e8d8 diff --git a/obj/Debug/netcoreapp3.1/creachopedia.assets.cache b/obj/Debug/netcoreapp3.1/creachopedia.assets.cache new file mode 100644 index 0000000..29d98a6 Binary files /dev/null and b/obj/Debug/netcoreapp3.1/creachopedia.assets.cache differ diff --git a/obj/Debug/netcoreapp3.1/creachopedia.csproj.FileListAbsolute.txt b/obj/Debug/netcoreapp3.1/creachopedia.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..b4f9f92 --- /dev/null +++ b/obj/Debug/netcoreapp3.1/creachopedia.csproj.FileListAbsolute.txt @@ -0,0 +1,11 @@ +/home/petra/Documents/Code/C#/creachopedia/bin/Debug/netcoreapp3.1/creachopedia +/home/petra/Documents/Code/C#/creachopedia/bin/Debug/netcoreapp3.1/creachopedia.deps.json +/home/petra/Documents/Code/C#/creachopedia/bin/Debug/netcoreapp3.1/creachopedia.runtimeconfig.json +/home/petra/Documents/Code/C#/creachopedia/bin/Debug/netcoreapp3.1/creachopedia.runtimeconfig.dev.json +/home/petra/Documents/Code/C#/creachopedia/bin/Debug/netcoreapp3.1/creachopedia.dll +/home/petra/Documents/Code/C#/creachopedia/bin/Debug/netcoreapp3.1/creachopedia.pdb +/home/petra/Documents/Code/C#/creachopedia/obj/Debug/netcoreapp3.1/creachopedia.csprojAssemblyReference.cache +/home/petra/Documents/Code/C#/creachopedia/obj/Debug/netcoreapp3.1/creachopedia.AssemblyInfoInputs.cache +/home/petra/Documents/Code/C#/creachopedia/obj/Debug/netcoreapp3.1/creachopedia.AssemblyInfo.cs +/home/petra/Documents/Code/C#/creachopedia/obj/Debug/netcoreapp3.1/creachopedia.dll +/home/petra/Documents/Code/C#/creachopedia/obj/Debug/netcoreapp3.1/creachopedia.pdb diff --git a/obj/Debug/netcoreapp3.1/creachopedia.csprojAssemblyReference.cache b/obj/Debug/netcoreapp3.1/creachopedia.csprojAssemblyReference.cache new file mode 100644 index 0000000..66eb67c Binary files /dev/null and b/obj/Debug/netcoreapp3.1/creachopedia.csprojAssemblyReference.cache differ diff --git a/obj/Debug/netcoreapp3.1/creachopedia.dll b/obj/Debug/netcoreapp3.1/creachopedia.dll new file mode 100644 index 0000000..0d547b0 Binary files /dev/null and b/obj/Debug/netcoreapp3.1/creachopedia.dll differ diff --git a/obj/Debug/netcoreapp3.1/creachopedia.pdb b/obj/Debug/netcoreapp3.1/creachopedia.pdb new file mode 100644 index 0000000..86df146 Binary files /dev/null and b/obj/Debug/netcoreapp3.1/creachopedia.pdb differ diff --git a/obj/creachopedia.csproj.nuget.cache b/obj/creachopedia.csproj.nuget.cache new file mode 100644 index 0000000..3546d42 --- /dev/null +++ b/obj/creachopedia.csproj.nuget.cache @@ -0,0 +1,5 @@ +{ + "version": 1, + "dgSpecHash": "viHAytpAeRg2rkbruTDcJ80nPro+N0eKDnZUSYFqFnBGsO01NYPadOgHvE4Ch/dYKOVhrBHUt+HiRD1b/WDXmQ==", + "success": true +} \ No newline at end of file diff --git a/obj/creachopedia.csproj.nuget.dgspec.json b/obj/creachopedia.csproj.nuget.dgspec.json new file mode 100644 index 0000000..54da8df --- /dev/null +++ b/obj/creachopedia.csproj.nuget.dgspec.json @@ -0,0 +1,64 @@ +{ + "format": 1, + "restore": { + "/home/petra/Documents/Code/C#/creachopedia/creachopedia.csproj": {} + }, + "projects": { + "/home/petra/Documents/Code/C#/creachopedia/creachopedia.csproj": { + "version": "1.0.0", + "restore": { + "projectUniqueName": "/home/petra/Documents/Code/C#/creachopedia/creachopedia.csproj", + "projectName": "creachopedia", + "projectPath": "/home/petra/Documents/Code/C#/creachopedia/creachopedia.csproj", + "packagesPath": "/home/petra/.nuget/packages/", + "outputPath": "/home/petra/Documents/Code/C#/creachopedia/obj/", + "projectStyle": "PackageReference", + "configFilePaths": [ + "/home/petra/.nuget/NuGet/NuGet.Config" + ], + "originalTargetFrameworks": [ + "netcoreapp3.1" + ], + "sources": { + "https://api.nuget.org/v3/index.json": {} + }, + "frameworks": { + "netcoreapp3.1": { + "projectReferences": {} + } + }, + "warningProperties": { + "warnAsError": [ + "NU1605" + ] + } + }, + "frameworks": { + "netcoreapp3.1": { + "imports": [ + "net461", + "net462", + "net47", + "net471", + "net472", + "net48" + ], + "assetTargetFallback": true, + "warn": true, + "downloadDependencies": [ + { + "name": "Microsoft.AspNetCore.App.Ref", + "version": "[3.1.3, 3.1.3]" + } + ], + "frameworkReferences": { + "Microsoft.NETCore.App": { + "privateAssets": "all" + } + }, + "runtimeIdentifierGraphPath": "/usr/share/dotnet/sdk/3.1.107/RuntimeIdentifierGraph.json" + } + } + } + } +} \ No newline at end of file diff --git a/obj/creachopedia.csproj.nuget.g.props b/obj/creachopedia.csproj.nuget.g.props new file mode 100644 index 0000000..92948ba --- /dev/null +++ b/obj/creachopedia.csproj.nuget.g.props @@ -0,0 +1,15 @@ + + + + True + NuGet + $(MSBuildThisFileDirectory)project.assets.json + /home/petra/.nuget/packages/ + /home/petra/.nuget/packages/ + PackageReference + 5.4.0 + + + $(MSBuildAllProjects);$(MSBuildThisFileFullPath) + + \ No newline at end of file diff --git a/obj/creachopedia.csproj.nuget.g.targets b/obj/creachopedia.csproj.nuget.g.targets new file mode 100644 index 0000000..53cfaa1 --- /dev/null +++ b/obj/creachopedia.csproj.nuget.g.targets @@ -0,0 +1,6 @@ + + + + $(MSBuildAllProjects);$(MSBuildThisFileFullPath) + + \ No newline at end of file diff --git a/obj/project.assets.json b/obj/project.assets.json new file mode 100644 index 0000000..0550ba1 --- /dev/null +++ b/obj/project.assets.json @@ -0,0 +1,69 @@ +{ + "version": 3, + "targets": { + ".NETCoreApp,Version=v3.1": {} + }, + "libraries": {}, + "projectFileDependencyGroups": { + ".NETCoreApp,Version=v3.1": [] + }, + "packageFolders": { + "/home/petra/.nuget/packages/": {} + }, + "project": { + "version": "1.0.0", + "restore": { + "projectUniqueName": "/home/petra/Documents/Code/C#/creachopedia/creachopedia.csproj", + "projectName": "creachopedia", + "projectPath": "/home/petra/Documents/Code/C#/creachopedia/creachopedia.csproj", + "packagesPath": "/home/petra/.nuget/packages/", + "outputPath": "/home/petra/Documents/Code/C#/creachopedia/obj/", + "projectStyle": "PackageReference", + "configFilePaths": [ + "/home/petra/.nuget/NuGet/NuGet.Config" + ], + "originalTargetFrameworks": [ + "netcoreapp3.1" + ], + "sources": { + "https://api.nuget.org/v3/index.json": {} + }, + "frameworks": { + "netcoreapp3.1": { + "projectReferences": {} + } + }, + "warningProperties": { + "warnAsError": [ + "NU1605" + ] + } + }, + "frameworks": { + "netcoreapp3.1": { + "imports": [ + "net461", + "net462", + "net47", + "net471", + "net472", + "net48" + ], + "assetTargetFallback": true, + "warn": true, + "downloadDependencies": [ + { + "name": "Microsoft.AspNetCore.App.Ref", + "version": "[3.1.3, 3.1.3]" + } + ], + "frameworkReferences": { + "Microsoft.NETCore.App": { + "privateAssets": "all" + } + }, + "runtimeIdentifierGraphPath": "/usr/share/dotnet/sdk/3.1.107/RuntimeIdentifierGraph.json" + } + } + } +} \ No newline at end of file