Loading...
Searching...
No Matches
AdventureCore.EffectBase Class Referenceabstract

Detailed Description

this is the base class for the behaviours that will be instantiated when they are added to an EffectPool
derive from this to create a new effect with some unique logic
through the Pool property this scripts has access to the character it is instantiated on(EffectPool.Character)
typcial examples for effects are things like poison that damage the character or buffs that alter their attributes or stats

https://adventure.softleitner.com/manual/effect

Inheritance diagram for AdventureCore.EffectBase:
AdventureCore.ICharacterAssociator AdventureCore.GenericEffect AdventureCore.AttributeEffect AdventureCore.DamageEffect AdventureCore.StatEffect AdventureCore.TimeoutEffect

Public Member Functions

void Terminate ()
 
virtual void Add (EffectBase prefab)
 
virtual string GetValue ()
 
virtual void SetValue (string data)
 
override string ToString ()
 

Public Attributes

EffectType Type
 

Properties

EffectPool Pool [get, set]
 
bool IsExternal [get, set]
 
CharacterBase AssociatedCharacter [get]
 character that owns or is otherwise associted with the object
 
- Properties inherited from AdventureCore.ICharacterAssociator

Property Documentation

◆ AssociatedCharacter

CharacterBase AdventureCore.EffectBase.AssociatedCharacter
get

character that owns or is otherwise associted with the object

Implements AdventureCore.ICharacterAssociator.