GameConditionList Remove() Methods

v4.0

Remove all from a specific IHaveStats source

// These will remove the conditions -- Expiration Conditions will not be added!
public void RemoveAllFromSource(IHaveStats source, Condition condition)
public void RemoveAllFromSource(IHaveStats source, GameCondition gameCondition)
public void RemoveAllFromSource(IHaveStats source, string conditionUid = null)

Expire all from a specific IHaveStats source

// ExpireNow() sets the expiration time to Now. They actually will expire
// the next frame.
public void ExpireAllFromSource(IHaveStats source, Condition condition)
public void ExpireAllFromSource(IHaveStats source, GameCondition gameCondition)
public void ExpireAllFromSource(IHaveStats source, string conditionUid = null)

// Example -- Assumes "witch" is an Actor which implements IHaveStats
public void RemoveAllCursesFromWitch() => ExpireAllFromSource(witch);

Last updated