Skip to main content

StatFunctions.HasFocus

Declaration#

public static void HasFocus(string request, Dictionary<string, StatSource> sources, String& result)

Parameters#

NameDescription
requestRequest to parse
sourcesDictionary of available Stat Sources
resultResult of function

Description#

Check if at least one level of Focus is present (0 = false, 1 = true)

Usage#

Example
using NullSave.GDTK;using NullSave.GDTK.Stats;using System.Collections.Generic;using UnityEngine;
public class Example : MonoBehaviour{    public void ExampleMethod(StatSource source)    {        Dictionary<string, StatSource> sources = new Dictionary<string, StatSource> {            { string.Empty, source },            { "global:", ToolRegistry.GetComponent<GlobalStats>().source }        };
        string result;        StatFunctions.HasFocus("darkMagic", sources, out result);    }}