StatFunctions.IsRace
Declaration#
public static void IsRace(string request, Dictionary<string, StatSource> sources, String& result)Parameters#
| Name | Description |
|---|---|
| request | Request to parse |
| sources | Dictionary of available Stat Sources |
| result | Result 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); }
}