Class TagManager
Create tags into the tag registrar, using ones that exist already (to preserve ID's)
and creating new ones as needed (perhaps a mod gets added)
Inheritance
System.Object
TagManager
Assembly: Eco.Gameplay.dll
Syntax
public class TagManager : Object, IHasRequiredIcons
Constructors
TagManager()
Declaration
Fields
TagToTypes
Declaration
public static Dictionary<Tag, HashSet<Type>> TagToTypes
Field Value
Type |
Description |
System.Collections.Generic.Dictionary<Tag, System.Collections.Generic.HashSet<System.Type>> |
|
Declaration
public static Dictionary<Type, HashSet<Tag>> TypeToTags
Field Value
Type |
Description |
System.Collections.Generic.Dictionary<System.Type, System.Collections.Generic.HashSet<Tag>> |
|
Properties
Declaration
public static IEnumerable<Tag> AllTags { get; }
Property Value
Type |
Description |
System.Collections.Generic.IEnumerable<Tag> |
|
IconsCategoryName
Declaration
public static string IconsCategoryName { get; }
Property Value
Type |
Description |
System.String |
|
Methods
GetOrMake(String)
Creates a tag with the given name (or returns existing one if already created)
Declaration
public static Tag GetOrMake(string name)
Parameters
Type |
Name |
Description |
System.String |
name |
|
Returns
GetRequiredIcons()
Declaration
public static IEnumerable<(string, string)> GetRequiredIcons()
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<System.ValueTuple<System.String, System.String>> |
|
GetTagOrFail(String)
Declaration
public static Tag GetTagOrFail(string name)
Parameters
Type |
Name |
Description |
System.String |
name |
|
Returns
Initialize()
Declaration
public static void Initialize()
InitializeRegistrars()
Declaration
public void InitializeRegistrars()
SetupRecipes()
Declaration
public static void SetupRecipes()
Tag(String)
Declaration
public static Tag Tag(string name)
Parameters
Type |
Name |
Description |
System.String |
name |
|
Returns
Implements
Extension Methods