Class Dec
- Namespace
- Dec
- Assembly
- dec.dll
Base class of all dec-provided datatypes.
public abstract class Dec
- Inheritance
-
objectDec
Remarks
All decs should inherit from this.
Properties
DecName
Unique string identifier.
public string DecName { get; }
Property Value
Methods
ConfigErrors(Action<string>)
Overrideable function to report configuration errors.
public virtual void ConfigErrors(Action<string> reporter)
Parameters
Remarks
StaticReferences will be initialized before this function is called. This function may be called in parallel across your decs, in any order.
PostLoad(Action<string>)
Overrideable function to do post-load one-time setup tasks.
public virtual void PostLoad(Action<string> reporter)
Parameters
Remarks
StaticReferences will be initialized before this function is called. This function will be called serially across your decs, but with undefined order.
Error strings can be reported from this as well, and will be displayed in the same way as ConfigErrors()-reported errors.
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.