Skip to main content

StatFunctions.IsRace

Declaration#

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

Parameters#

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

Description#

Check if a specific race is set (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.IsRace("human", sources, out result);    }


}