We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 38f27b8 commit c646058Copy full SHA for c646058
Runtime/UtilitySystem.cs
@@ -68,6 +68,17 @@ public Utility GetHighestUtility()
68
return max;
69
}
70
71
+ public Utility GetUtilty(string key)
72
+ {
73
+ if (_outputs.ContainsKey(key))
74
+ return _outputs[key];
75
+ else
76
77
+ Debug.Log($"UtilitySystem does not contain {key}");
78
+ return null;
79
+ }
80
81
+
82
public Dictionary<string, Utility> GetUtilities()
83
{
84
return _outputs;
@@ -95,5 +106,17 @@ public Dictionary<string, Stat> GetInputs()
95
106
96
107
return _inputs;
97
108
109
110
+ public Stat GetStat(string key)
111
112
+ if (_inputs.ContainsKey(key))
113
+ return _inputs[key];
114
115
116
117
118
119
120
98
121
99
122
0 commit comments