Skip to content

Class: DewPersistentGameObserver ​

csharp
public class DewPersistentGameObserver

Fields ​

NameDeclarationDescription
_coroutinesprotected List<Coroutine> _coroutines

Properties ​

NameDeclarationDescription
namepublic string name { get; }

Methods ​

AchOnDealDamage(Action<EventInfoDamage>) ​

csharp
protected void AchOnDealDamage(Action<EventInfoDamage> func)

Parameters:

NameTypeDescription
funcSystem.Action<T><EventInfoDamage>

AchOnDoHeal(Action&lt;EventInfoHeal&gt;) ​

csharp
protected void AchOnDoHeal(Action<EventInfoHeal> func)

Parameters:

NameTypeDescription
funcSystem.Action<T><EventInfoHeal>

AchOnGameConcluded(Action&lt;DewGameResult&gt;) ​

csharp
protected void AchOnGameConcluded(Action<DewGameResult> func)

Parameters:

NameTypeDescription
funcSystem.Action<T><DewGameResult>

AchOnKillLastHit(Action&lt;EventInfoKill&gt;) ​

csharp
protected void AchOnKillLastHit(Action<EventInfoKill> func)

Parameters:

NameTypeDescription
funcSystem.Action<T><EventInfoKill>

AchOnKillOrAssist(Action&lt;EventInfoKill&gt;) ​

csharp
protected void AchOnKillOrAssist(Action<EventInfoKill> func)

Parameters:

NameTypeDescription
funcSystem.Action<T><EventInfoKill>

AchOnTakeDamage(Action&lt;EventInfoDamage&gt;) ​

csharp
protected void AchOnTakeDamage(Action<EventInfoDamage> func)

Parameters:

NameTypeDescription
funcSystem.Action<T><EventInfoDamage>

AchSetInterval(Action, float) ​

csharp
protected void AchSetInterval(Action func, float interval)

Parameters:

NameTypeDescription
funcSystem.Action
intervalfloat

AchStartCoroutine(IEnumerator) ​

csharp
protected void AchStartCoroutine(IEnumerator routine)

Parameters:

NameTypeDescription
routineSystem.Collections.IEnumerator

AchStopAllCoroutines() ​

csharp
protected void AchStopAllCoroutines()

FeedGameResult(DewGameResult) ​

This needs to be called when the game ends by appropriate observer managers, e.g. AchievementManager, InGameReverieManager

csharp
public void FeedGameResult(DewGameResult obj)

Parameters:

NameTypeDescription
objDewGameResult

LoadState(Dictionary&lt;string, string&gt;) ​

Load all persistent variables from the provided dictionary.

csharp
public void LoadState(Dictionary<string, string> storage)

Parameters:

NameTypeDescription
storageSystem.Collections.Generic.Dictionary&lt;TKey, TValue&gt;&lt;string,string&gt;

OnStartLocalClient() ​

csharp
public virtual void OnStartLocalClient()

OnStopLocalClient() ​

Helper trackers are unregistered automatically, you only have to unregister custom handlers.

csharp
public virtual void OnStopLocalClient()

SaveState(Dictionary&lt;string, string&gt;) ​

Save all persistent variables to the provided dictionary.

csharp
public void SaveState(Dictionary<string, string> storage)

Parameters:

NameTypeDescription
storageSystem.Collections.Generic.Dictionary&lt;TKey, TValue&gt;&lt;string,string&gt;

Maintained by the Shape of Dreams Modding Community