Class Term
- Namespace
- RandomizerCore.Logic
- Assembly
- RandomizerCore.dll
public class Term : ILogicInt, IStateProvider, ILogicVariable
- Inheritance
-
Term
- Implements
- Inherited Members
Constructors
Term(int, string, TermType)
public Term(int Id, string Name, TermType Type)
Parameters
Fields
Id
A unique int identifier for the term. The index and type of the term can be recovered from the id using static methods on Term.
public readonly int Id
Field Value
Index
The index of the term, among terms of its type. Terms of different type may share the same index.
public readonly int Index
Field Value
Name
The name of the term.
public readonly string Name
Field Value
Type
The type of the term.
public readonly TermType Type
Field Value
Properties
TermTypeCount
public static int TermTypeCount { get; }
Property Value
Methods
GetIndex(int)
public static int GetIndex(int id)
Parameters
id
int
Returns
GetTermType(int)
public static TermType GetTermType(int id)
Parameters
id
int
Returns
ToString()
public override string ToString()
Returns
Operators
implicit operator int(Term)
public static implicit operator int(Term term)
Parameters
term
Term