Skip to main content

GDTKStatValue.Initialize

Declaration#

public void Initialize(GDTKStat stat, bool generateSubscriptions, StatSource other)

Parameters#

NameDescription
statOwner of this object
generateSubscriptionsGenerate change subscriptions
otherOther 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#

NameDescription
statOwner of this object
sourcesDictionary of Stat Sources
generateSubscriptionsGenerate 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);    }

}