Show / Hide Table of Contents

Class ElementTool

Tool for operations on Kingmaker.ElementsSystem.Element objects.

Inheritance
System.Object
ElementTool
Namespace: BlueprintCore.Utils
Assembly: BlueprintCore.dll
Syntax
public static class ElementTool

Methods

| Improve this Doc View Source

Create<T>()

Intantiates and initializes Kingmaker.ElementsSystem.Element objects.

Declaration
public static T Create<T>()
    where T : Element
Returns
Type Description
T
Type Parameters
Name Description
T
Remarks

Internally this calls Kingmaker.ElementsSystem.Element.CreateInstance(System.Type) which has some basic object init logic. If this init logic is not executed exceptions may be thrown when the object is referenced.

A few types that inherit from Kingmaker.ElementsSystem.Element do not have a parameterless constructor. For those types use Init(Element).

| Improve this Doc View Source

Init(Element)

Initializes Kingmaker.ElementsSystem.Element objects.

Declaration
public static void Init(Element element)
Parameters
Type Name Description
Kingmaker.ElementsSystem.Element element
Remarks

Mimics logic in Kingmaker.ElementsSystem.Element.CreateInstance(System.Type) for types without a parameterless constructor. Use Create<T>() whenever possible.

  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX