Migrated Documentation library from NetFlow.DocumentationHelper.Library
This commit is contained in:
Regular → Executable
+11
-1
@@ -1,7 +1,17 @@
|
||||
using System;
|
||||
using OmegaLeo.HelperLib.Shared.Attributes;
|
||||
|
||||
namespace GameDevLibrary.Models
|
||||
namespace OmegaLeo.HelperLib.Models
|
||||
{
|
||||
[Serializable]
|
||||
[Documentation("InstancedObject<T> Class", "A generic base class that ensures only one instance of a derived class exists at any time.", new string[] { "T: The type of the derived class." },
|
||||
@"```cs
|
||||
public class MySingleton : InstancedObject<MySingleton>
|
||||
{
|
||||
// Your class implementation here
|
||||
}
|
||||
```")]
|
||||
[Changelog("1.2.0", "Fixed root namespace to OmegaLeo.HelperLib.Models.", "January 28, 2026")]
|
||||
public abstract class InstancedObject<T> where T : class
|
||||
{
|
||||
public static T Instance { get; private set; }
|
||||
|
||||
Regular → Executable
+3
-2
@@ -2,13 +2,14 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using System.Linq;
|
||||
using NetFlow.DocumentationHelper.Library.Attributes;
|
||||
using OmegaLeo.HelperLib.Shared.Attributes;
|
||||
|
||||
namespace GameDevLibrary.Models
|
||||
namespace OmegaLeo.HelperLib.Models
|
||||
{
|
||||
// Inspiration: https://www.youtube.com/watch?v=x-ejym1WdjE
|
||||
[Serializable]
|
||||
[Documentation("NeoDictionary", "Dictionary like class created to make it easier to display dictionaries in game engines like Unity")]
|
||||
[Changelog("1.2.0", "Fixed root namespace to OmegaLeo.HelperLib.Models.", "January 28, 2026")]
|
||||
public class NeoDictionary<TKey,TValue>
|
||||
{
|
||||
public List<NeoDictionaryItem<TKey, TValue>> Items = new List<NeoDictionaryItem<TKey, TValue>>();
|
||||
|
||||
Reference in New Issue
Block a user