Class DewPersistentGameObserver
Inheritance
object
DewPersistentGameObserver
Assembly: Dew.Core.dll
Syntax
public class DewPersistentGameObserver
Fields
_coroutines
Declaration
protected List<Coroutine> _coroutines
Field Value
| Type |
Description |
| System.Collections.Generic.List<T><UnityEngine.Coroutine> |
|
Properties
name
Declaration
public string name { get; }
Property Value
Methods
AchOnDealDamage(Action<EventInfoDamage>)
Declaration
protected void AchOnDealDamage(Action<EventInfoDamage> func)
Parameters
AchOnDoHeal(Action<EventInfoHeal>)
Declaration
protected void AchOnDoHeal(Action<EventInfoHeal> func)
Parameters
AchOnGameConcluded(Action<DewGameResult>)
Declaration
protected void AchOnGameConcluded(Action<DewGameResult> func)
Parameters
AchOnKillLastHit(Action<EventInfoKill>)
Declaration
protected void AchOnKillLastHit(Action<EventInfoKill> func)
Parameters
AchOnKillOrAssist(Action<EventInfoKill>)
Declaration
protected void AchOnKillOrAssist(Action<EventInfoKill> func)
Parameters
AchOnTakeDamage(Action<EventInfoDamage>)
Declaration
protected void AchOnTakeDamage(Action<EventInfoDamage> func)
Parameters
AchSetInterval(Action, float)
Declaration
protected void AchSetInterval(Action func, float interval)
Parameters
| Type |
Name |
Description |
| System.Action |
func |
|
| float |
interval |
|
AchStartCoroutine(IEnumerator)
Declaration
protected void AchStartCoroutine(IEnumerator routine)
Parameters
| Type |
Name |
Description |
| System.Collections.IEnumerator |
routine |
|
AchStopAllCoroutines()
Declaration
protected void AchStopAllCoroutines()
FeedGameResult(DewGameResult)
This needs to be called when the game ends by appropriate observer managers, e.g. AchievementManager, InGameReverieManager
Declaration
public void FeedGameResult(DewGameResult obj)
Parameters
LoadState(Dictionary<string, string>)
Load all persistent variables from the provided dictionary.
Declaration
public void LoadState(Dictionary<string, string> storage)
Parameters
| Type |
Name |
Description |
| System.Collections.Generic.Dictionary<TKey, TValue><string, string> |
storage |
|
OnStartLocalClient()
Declaration
public virtual void OnStartLocalClient()
OnStopLocalClient()
Helper trackers are unregistered automatically, you only have to unregister custom handlers.
Declaration
public virtual void OnStopLocalClient()
SaveState(Dictionary<string, string>)
Save all persistent variables to the provided dictionary.
Declaration
public void SaveState(Dictionary<string, string> storage)
Parameters
| Type |
Name |
Description |
| System.Collections.Generic.Dictionary<TKey, TValue><string, string> |
storage |
|