2972e59e00
* Fixed dependency * Updates to NeoDictionary * Changes to NeoDictionary * Started working on a Git implementation to integrate into Game Engines in the future * Added commit functionality to the git library * New changes * Added select for NeoDictionary.cs * Fixed issue with previous new method * Added a Benchmarking Tool to be used mostly in game engines * Added IndexOf to NeoDictionary.cs * Added new method for BenchmarkUtility.cs * added an instacedobject class * Added a new shuffle method for lists * fixed return type * Added new Changelog generator * Added new Game logic library to assist with game projects * Added Web Project * Added Nuget package configs * Add workflow for publishing game library NuGet package * Add README for OmegaLeo's Helper Library * Updated Website to reflect all libraries * Fixed missing library in Changelog * Added Contributing and Code of Conduct * Fixed web project * new documentation changes * fix packages * Fixed DocumentationHelper package dependencies * Added Serilog * Added logging * Fixed documentation * Added logging for cache * fixed documentation * Updated README.md * Update README.md Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update OmegaLeo.HelperLib.Web/Controllers/HomeController.cs Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update OmegaLeo.HelperLib.Web/Controllers/HomeController.cs Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * fix error * changes for Github Packages * Cleanup * Started working on a SteamWorks integration * Added logging * Started working on a Steam library --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
55 lines
2.0 KiB
C#
Executable File
55 lines
2.0 KiB
C#
Executable File
using System;
|
|
using System.Collections.Generic;
|
|
using OmegaLeo.HelperLib.Shared.Attributes;
|
|
|
|
namespace OmegaLeo.HelperLib.Documentation.Models
|
|
{
|
|
|
|
public class DocumentationStructure
|
|
{
|
|
public string AssemblyName;
|
|
public string ClassName;
|
|
public List<DocumentationDescription> Descriptions;
|
|
|
|
public DocumentationStructure(string assemblyName, string className)
|
|
{
|
|
AssemblyName = assemblyName;
|
|
ClassName = className;
|
|
Descriptions = new List<DocumentationDescription>();
|
|
}
|
|
|
|
public void AddDescription(DocumentationDescription description)
|
|
{
|
|
Descriptions.Add(description);
|
|
}
|
|
}
|
|
|
|
public class DocumentationDescription
|
|
{
|
|
public string Title;
|
|
public string Description;
|
|
public string[] Parameters;
|
|
public string[] MethodParameters;
|
|
public string ReturnType;
|
|
public string CodeExample = string.Empty;
|
|
|
|
[Documentation(nameof(DocumentationDescription), "Description of the current Documented object", new []
|
|
{
|
|
"title - Name of the object",
|
|
"description - Description of what the object does",
|
|
"parameters - The parameters for the object (in case of a method with parameters)",
|
|
"methodParameters - Reflected method parameter list when the documented member is a method",
|
|
"returnType - Reflected return type when the documented member is a method",
|
|
"codeExample - Code example of how to use the object"
|
|
})]
|
|
public DocumentationDescription(string title, string description, string[]? parameters = null, string codeExample = "", string[]? methodParameters = null, string returnType = "")
|
|
{
|
|
Title = title;
|
|
Description = description;
|
|
Parameters = parameters ?? Array.Empty<string>();
|
|
MethodParameters = methodParameters ?? Array.Empty<string>();
|
|
ReturnType = returnType ?? string.Empty;
|
|
CodeExample = codeExample;
|
|
}
|
|
}
|
|
} |