FrameIT
|
Fact representation of Unity; mostly mirrors Facts of MMT. More...
Public Member Functions | |
bool | rename (string newLabel) |
Assignes a custom Label, if newLabel is not yet taken; or clears custom Label. More... | |
abstract bool | hasDependentFacts () |
| |
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 bool | Equivalent (Fact f2) |
Compares this against f2 . More... | |
abstract bool | Equivalent (Fact f1, Fact f2) |
Compares f1 against f2 . 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... | |
Static Public Member Functions | |
static Fact | parseFact (Scroll.ScrollFact fact) |
Parses Scroll.ScrollFact to actual Fact More... | |
Public Attributes | |
GameObject | Representation |
Reference to GameObject that represents this Fact in the GameWorld. More... | |
Protected Member Functions | |
Fact () | |
Only being used by JsonReader to initiate empty Facts.
| |
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... | |
Protected Attributes | |
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 | |
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... | |
Fact representation of Unity; mostly mirrors Facts of MMT.
|
protected |
Only being used by JsonReader to initiate empty Facts.
|
protected |
Standard base-constructor.
organizer | _Facts |
|
protected |
|
virtual |
Compares f1 against f2 .
true
if f2 is semantical very similar to f1 Implemented in FactWrappedCRTP< T >.
|
pure virtual |
Compares this against f2 .
f2 | Fact to compare to |
true
if f2 is semantical very similar to thisImplemented in FactWrappedCRTP< T >.
void Fact.freeAutoLabel | ( | ) |
|
protectedvirtual |
|
pure virtual |
|
pure virtual |
canonical
|
pure virtual |
true
if Fact depends on other Facts; equivalent to getDependentFactIds returns non empty array
|
pure virtual |
Initiates a prefab at transform e.g. by setting Label.
Does not set Representation.
prefab | GameObject Prefab that will represent this Fact |
transform | Transform where to initiate prefab |
|
static |
bool Fact.rename | ( | string | newLabel | ) |
|
protected |
Stores custom Label if set.
|
protected |
Reference to FactOrganizer in which this Fact and all its depending Facts are beeing organized.
|
protected |
MMT URI
GameObject Fact.Representation |
Reference to GameObject
that represents this Fact in the GameWorld.
|
getset |
Unique Id. e.g.: MMT URI
|
getset |
get
initiates and subsequently updates a human readable name.
Should be called once a constructor call to be initiated.
set
calls rename(string)
|
getset |