Browse Source

initial creach 0u0

master
Pecha 1 year ago
commit
7812e7cc2b
  1. 27
      .vscode/launch.json
  2. 42
      .vscode/tasks.json
  3. 19
      Creacher.cs
  4. 22
      CreacherTypes.cs
  5. 36
      Program.cs
  6. BIN
      bin/Debug/netcoreapp3.1/creachopedia
  7. 23
      bin/Debug/netcoreapp3.1/creachopedia.deps.json
  8. BIN
      bin/Debug/netcoreapp3.1/creachopedia.dll
  9. BIN
      bin/Debug/netcoreapp3.1/creachopedia.pdb
  10. 8
      bin/Debug/netcoreapp3.1/creachopedia.runtimeconfig.dev.json
  11. 9
      bin/Debug/netcoreapp3.1/creachopedia.runtimeconfig.json
  12. 8
      creachopedia.csproj
  13. 4
      obj/Debug/netcoreapp3.1/.NETCoreApp,Version=v3.1.AssemblyAttributes.cs
  14. BIN
      obj/Debug/netcoreapp3.1/creachopedia
  15. 23
      obj/Debug/netcoreapp3.1/creachopedia.AssemblyInfo.cs
  16. 1
      obj/Debug/netcoreapp3.1/creachopedia.AssemblyInfoInputs.cache
  17. BIN
      obj/Debug/netcoreapp3.1/creachopedia.assets.cache
  18. 11
      obj/Debug/netcoreapp3.1/creachopedia.csproj.FileListAbsolute.txt
  19. BIN
      obj/Debug/netcoreapp3.1/creachopedia.csprojAssemblyReference.cache
  20. BIN
      obj/Debug/netcoreapp3.1/creachopedia.dll
  21. BIN
      obj/Debug/netcoreapp3.1/creachopedia.pdb
  22. 5
      obj/creachopedia.csproj.nuget.cache
  23. 64
      obj/creachopedia.csproj.nuget.dgspec.json
  24. 15
      obj/creachopedia.csproj.nuget.g.props
  25. 6
      obj/creachopedia.csproj.nuget.g.targets
  26. 69
      obj/project.assets.json

27
.vscode/launch.json vendored

@ -0,0 +1,27 @@ @@ -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

@ -0,0 +1,42 @@ @@ -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

@ -0,0 +1,19 @@ @@ -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

@ -0,0 +1,22 @@ @@ -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

@ -0,0 +1,36 @@ @@ -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

Binary file not shown.

23
bin/Debug/netcoreapp3.1/creachopedia.deps.json

@ -0,0 +1,23 @@ @@ -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

Binary file not shown.

BIN
bin/Debug/netcoreapp3.1/creachopedia.pdb

Binary file not shown.

8
bin/Debug/netcoreapp3.1/creachopedia.runtimeconfig.dev.json

@ -0,0 +1,8 @@ @@ -0,0 +1,8 @@
{
"runtimeOptions": {
"additionalProbingPaths": [
"/home/petra/.dotnet/store/|arch|/|tfm|",
"/home/petra/.nuget/packages"
]
}
}

9
bin/Debug/netcoreapp3.1/creachopedia.runtimeconfig.json

@ -0,0 +1,9 @@ @@ -0,0 +1,9 @@
{
"runtimeOptions": {
"tfm": "netcoreapp3.1",
"framework": {
"name": "Microsoft.NETCore.App",
"version": "3.1.0"
}
}
}

8
creachopedia.csproj

@ -0,0 +1,8 @@ @@ -0,0 +1,8 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp3.1</TargetFramework>
</PropertyGroup>
</Project>

4
obj/Debug/netcoreapp3.1/.NETCoreApp,Version=v3.1.AssemblyAttributes.cs

@ -0,0 +1,4 @@ @@ -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

Binary file not shown.

23
obj/Debug/netcoreapp3.1/creachopedia.AssemblyInfo.cs

@ -0,0 +1,23 @@ @@ -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.

1
obj/Debug/netcoreapp3.1/creachopedia.AssemblyInfoInputs.cache

@ -0,0 +1 @@ @@ -0,0 +1 @@
834b41680c0506c797a0f6ec23e358fb51b7e8d8

BIN
obj/Debug/netcoreapp3.1/creachopedia.assets.cache

Binary file not shown.

11
obj/Debug/netcoreapp3.1/creachopedia.csproj.FileListAbsolute.txt

@ -0,0 +1,11 @@ @@ -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

BIN
obj/Debug/netcoreapp3.1/creachopedia.csprojAssemblyReference.cache

Binary file not shown.

BIN
obj/Debug/netcoreapp3.1/creachopedia.dll

Binary file not shown.

BIN
obj/Debug/netcoreapp3.1/creachopedia.pdb

Binary file not shown.

5
obj/creachopedia.csproj.nuget.cache

@ -0,0 +1,5 @@ @@ -0,0 +1,5 @@
{
"version": 1,
"dgSpecHash": "viHAytpAeRg2rkbruTDcJ80nPro+N0eKDnZUSYFqFnBGsO01NYPadOgHvE4Ch/dYKOVhrBHUt+HiRD1b/WDXmQ==",
"success": true
}

64
obj/creachopedia.csproj.nuget.dgspec.json

@ -0,0 +1,64 @@ @@ -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

@ -0,0 +1,15 @@ @@ -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

@ -0,0 +1,6 @@ @@ -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

@ -0,0 +1,69 @@ @@ -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…
Cancel
Save