Involved Entity
What Are Involved Entity?
Involved Entity are runtime-modifiable Entity reference of each GraphInstance.
They allow:
- GraphInstance dynamically applied on different Entities
- Reusability of GraphObject logic
- Code-driven customization
Involved Entity Type
- Dealer : Usually reference the attacker
- Target : Usually reference the victim
- Instance : Each GraphInstance can own a temporary Instance Entity.
- This is useful for:
- Projectiles
- Traps
- Missiles
- Temporary buffs
- Runtime attribute storage
- The Instance Entity:
- Exists only during the GraphInstance lifetime
- Can hold attributes
- Can be modified by graph logic
- Is automatically cleaned up
- This is useful for:
Setting Involved Entity via Code
instance.SetDealerEntity(attackerEntity);
instance.SetTargetEntity(victimEntity);
The Instance Entity is auto set by GraphInstance.