GDTKStatValue.Initialize
Declaration#
public void Initialize(GDTKStat stat, bool generateSubscriptions, StatSource other)Parameters#
| Name | Description |
|---|---|
| stat | Owner of this object |
| generateSubscriptions | Generate change subscriptions |
| other | Other Stat Source |
Description#
Initialize this object
Usage#
Example
using NullSave.GDTK.Stats;using UnityEngine;
public class Example : MonoBehaviour{
public void ExampleMethod(GDTKStatValue target, GDTKStat owner) { target.Initialize(owner, true, null); }
}Declaration#
public void Initialize(GDTKStat stat, Dictionary<string, StatSource> sources, bool generateSubscriptions)Parameters#
| Name | Description |
|---|---|
| stat | Owner of this object |
| sources | Dictionary of Stat Sources |
| generateSubscriptions | Generate change subscriptions |
Description#
Initialize this object
Usage#
Example
using NullSave.GDTK.Stats;using System.Collections.Generic;using UnityEngine;
public class Example : MonoBehaviour{
public void ExampleMethod(GDTKStatValue target, GDTKStat owner) { Dictionary<string, StatSource> sources = new Dictionary<string, StatSource> { { string.Empty, owner.owner } }; target.Initialize(owner, sources, true); }
}