initial creach 0u0
This commit is contained in:
commit
7812e7cc2b
26 changed files with 392 additions and 0 deletions
27
.vscode/launch.json
vendored
Normal file
27
.vscode/launch.json
vendored
Normal file
|
@ -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}"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
42
.vscode/tasks.json
vendored
Normal file
42
.vscode/tasks.json
vendored
Normal file
|
@ -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"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
19
Creacher.cs
Normal file
19
Creacher.cs
Normal file
|
@ -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.");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
22
CreacherTypes.cs
Normal file
22
CreacherTypes.cs
Normal file
|
@ -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){
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
36
Program.cs
Normal file
36
Program.cs
Normal file
|
@ -0,0 +1,36 @@
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
|
||||||
|
|
||||||
|
namespace creachopedia {
|
||||||
|
class Program {
|
||||||
|
static void Main(string[] args) {
|
||||||
|
var creacherdict = new Dictionary<string, Creacher>();
|
||||||
|
|
||||||
|
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?!!?!?!?");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
BIN
bin/Debug/netcoreapp3.1/creachopedia
Executable file
BIN
bin/Debug/netcoreapp3.1/creachopedia
Executable file
Binary file not shown.
23
bin/Debug/netcoreapp3.1/creachopedia.deps.json
Normal file
23
bin/Debug/netcoreapp3.1/creachopedia.deps.json
Normal file
|
@ -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": ""
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
BIN
bin/Debug/netcoreapp3.1/creachopedia.dll
Normal file
BIN
bin/Debug/netcoreapp3.1/creachopedia.dll
Normal file
Binary file not shown.
BIN
bin/Debug/netcoreapp3.1/creachopedia.pdb
Normal file
BIN
bin/Debug/netcoreapp3.1/creachopedia.pdb
Normal file
Binary file not shown.
|
@ -0,0 +1,8 @@
|
||||||
|
{
|
||||||
|
"runtimeOptions": {
|
||||||
|
"additionalProbingPaths": [
|
||||||
|
"/home/petra/.dotnet/store/|arch|/|tfm|",
|
||||||
|
"/home/petra/.nuget/packages"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
9
bin/Debug/netcoreapp3.1/creachopedia.runtimeconfig.json
Normal file
9
bin/Debug/netcoreapp3.1/creachopedia.runtimeconfig.json
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
{
|
||||||
|
"runtimeOptions": {
|
||||||
|
"tfm": "netcoreapp3.1",
|
||||||
|
"framework": {
|
||||||
|
"name": "Microsoft.NETCore.App",
|
||||||
|
"version": "3.1.0"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
8
creachopedia.csproj
Normal file
8
creachopedia.csproj
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
|
<PropertyGroup>
|
||||||
|
<OutputType>Exe</OutputType>
|
||||||
|
<TargetFramework>netcoreapp3.1</TargetFramework>
|
||||||
|
</PropertyGroup>
|
||||||
|
|
||||||
|
</Project>
|
|
@ -0,0 +1,4 @@
|
||||||
|
// <autogenerated />
|
||||||
|
using System;
|
||||||
|
using System.Reflection;
|
||||||
|
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v3.1", FrameworkDisplayName = "")]
|
BIN
obj/Debug/netcoreapp3.1/creachopedia
Executable file
BIN
obj/Debug/netcoreapp3.1/creachopedia
Executable file
Binary file not shown.
23
obj/Debug/netcoreapp3.1/creachopedia.AssemblyInfo.cs
Normal file
23
obj/Debug/netcoreapp3.1/creachopedia.AssemblyInfo.cs
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <auto-generated>
|
||||||
|
// 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.
|
||||||
|
// </auto-generated>
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
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.
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
834b41680c0506c797a0f6ec23e358fb51b7e8d8
|
BIN
obj/Debug/netcoreapp3.1/creachopedia.assets.cache
Normal file
BIN
obj/Debug/netcoreapp3.1/creachopedia.assets.cache
Normal file
Binary file not shown.
|
@ -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
|
Binary file not shown.
BIN
obj/Debug/netcoreapp3.1/creachopedia.dll
Normal file
BIN
obj/Debug/netcoreapp3.1/creachopedia.dll
Normal file
Binary file not shown.
BIN
obj/Debug/netcoreapp3.1/creachopedia.pdb
Normal file
BIN
obj/Debug/netcoreapp3.1/creachopedia.pdb
Normal file
Binary file not shown.
5
obj/creachopedia.csproj.nuget.cache
Normal file
5
obj/creachopedia.csproj.nuget.cache
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
{
|
||||||
|
"version": 1,
|
||||||
|
"dgSpecHash": "viHAytpAeRg2rkbruTDcJ80nPro+N0eKDnZUSYFqFnBGsO01NYPadOgHvE4Ch/dYKOVhrBHUt+HiRD1b/WDXmQ==",
|
||||||
|
"success": true
|
||||||
|
}
|
64
obj/creachopedia.csproj.nuget.dgspec.json
Normal file
64
obj/creachopedia.csproj.nuget.dgspec.json
Normal file
|
@ -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"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
15
obj/creachopedia.csproj.nuget.g.props
Normal file
15
obj/creachopedia.csproj.nuget.g.props
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8" standalone="no"?>
|
||||||
|
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
|
||||||
|
<RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess>
|
||||||
|
<RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
|
||||||
|
<ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile>
|
||||||
|
<NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">/home/petra/.nuget/packages/</NuGetPackageRoot>
|
||||||
|
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">/home/petra/.nuget/packages/</NuGetPackageFolders>
|
||||||
|
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
|
||||||
|
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">5.4.0</NuGetToolVersion>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup>
|
||||||
|
<MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects>
|
||||||
|
</PropertyGroup>
|
||||||
|
</Project>
|
6
obj/creachopedia.csproj.nuget.g.targets
Normal file
6
obj/creachopedia.csproj.nuget.g.targets
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8" standalone="no"?>
|
||||||
|
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<PropertyGroup>
|
||||||
|
<MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects>
|
||||||
|
</PropertyGroup>
|
||||||
|
</Project>
|
69
obj/project.assets.json
Normal file
69
obj/project.assets.json
Normal file
|
@ -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"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in a new issue