FrameIT
FactWrappedCRTP< T > Class Template Referenceabstract

Implements CRTP for Fact; Escalates constructors; More...

Inheritance diagram for FactWrappedCRTP< T >:
Fact

Public Member Functions

override bool Equivalent (Fact f2)
 Compares this against f2 . More...
 
override bool Equivalent (Fact f1, Fact f2)
 Compares f1 against f2 . More...
 
- Public Member Functions inherited from Fact
bool rename (string newLabel)
 Assignes a custom Label, if newLabel is not yet taken; or clears custom Label. More...
 
abstract bool hasDependentFacts ()
 
Returns
true if Fact depends on other Facts; equivalent to getDependentFactIds returns non empty array
More...
 
abstract string[] getDependentFactIds ()
 
abstract GameObject instantiateDisplay (GameObject prefab, Transform transform)
 Initiates a prefab at transform e.g. by setting Label. More...
 
virtual void delete (bool keep_clean=true)
 Frees ressources e.g. Label and will eventually delete Fact Server-Side in far-near future when feature is supported. More...
 
abstract override int GetHashCode ()
 canonical More...
 
void freeAutoLabel ()
 Tells _Facts that this no longer uses auto-generated Label, but remembers current generation variable(s). More...
 

Protected Member Functions

 FactWrappedCRTP ()
 
 FactWrappedCRTP (FactOrganizer organizer)
 
 FactWrappedCRTP (FactWrappedCRTP< T > fact, FactOrganizer organizer)
 
abstract bool EquivalentWrapped (T f1, T f2)
 CRTP step of Equivalent(Fact) and Equivalent(Fact, Fact) More...
 
- Protected Member Functions inherited from Fact
 Fact ()
 Only being used by JsonReader to initiate empty Facts.

See also
JSONManager
More...
 
 Fact (FactOrganizer organizer)
 Standard base-constructor. More...
 
 Fact (Fact fact, FactOrganizer organizer)
 Copies fact by initiating new MMT Fact. More...
 
virtual string generateLabel ()
 auto-generates Label using generation variable(s) e.g. LabelId; if custom Label is set, tries to restore original generated Label without resetting _CustomLabel. If original Label is already taken, a new one will be generated. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from Fact
static Fact parseFact (Scroll.ScrollFact fact)
 Parses Scroll.ScrollFact to actual Fact More...
 
- Public Attributes inherited from Fact
GameObject Representation
 Reference to GameObject that represents this Fact in the GameWorld. More...
 
- Protected Attributes inherited from Fact
string _URI
 MMT URI More...
 
string _CustomLabel = null
 Stores custom Label if set. More...
 
FactOrganizer _Facts
 Reference to FactOrganizer in which this Fact and all its depending Facts are beeing organized. More...
 
- Properties inherited from Fact
string Id [getset]
 
string? Label [getset]
 
bool hasCustomLabel [get]
 
int LabelId [getset]
 Counter to organize auto generated Label. Set to negative, if custom Label is assigned. More...
 

Detailed Description

Implements CRTP for Fact; Escalates constructors;

Template Parameters
Tclass, which inherits from FactWrappedCRTP
Type Constraints
T :FactWrappedCRTP<T> 

Constructor & Destructor Documentation

◆ FactWrappedCRTP() [1/3]

FactWrappedCRTP< T >.FactWrappedCRTP ( )
protected

Only being used by JsonReader to initiate empty Facts.

See also
JSONManager

◆ FactWrappedCRTP() [2/3]

FactWrappedCRTP< T >.FactWrappedCRTP ( FactOrganizer  organizer)
protected

Standard base-constructor.

Parameters
organizer_Facts

◆ FactWrappedCRTP() [3/3]

FactWrappedCRTP< T >.FactWrappedCRTP ( FactWrappedCRTP< T >  fact,
FactOrganizer  organizer 
)
protected

Copies fact by initiating new MMT Fact.

Parameters
factFact to be copied
organizer_Facts

Member Function Documentation

◆ Equivalent() [1/2]

override bool FactWrappedCRTP< T >.Equivalent ( Fact  f1,
Fact  f2 
)
virtual

Compares f1 against f2 .

Parameters
f1Fact to compare to
f2Fact to compare to
Returns
true if f2 is semantical very similar to f1

Implements Fact.

◆ Equivalent() [2/2]

override bool FactWrappedCRTP< T >.Equivalent ( Fact  f2)
virtual

Compares this against f2 .

Parameters
f2Fact to compare to
Returns
true if f2 is semantical very similar to this

Implements Fact.

◆ EquivalentWrapped()

abstract bool FactWrappedCRTP< T >.EquivalentWrapped ( f1,
f2 
)
protectedpure virtual

The documentation for this class was generated from the following file: