Class StatesCommons
Inheritance
System.Object
StatesCommons
Assembly: Mars.Components.dll
Syntax
public static class StatesCommons : object
Methods
Equals<TKey, TValue>(IDictionary<TKey, TValue>, IDictionary<TKey, TValue>)
Compares if to dictionaries hold the same data
Declaration
public static bool Equals<TKey, TValue>(IDictionary<TKey, TValue> any, IDictionary<TKey, TValue> other)
Parameters
Type |
Name |
Description |
IDictionary<TKey, TValue> |
any |
Any dictionary |
IDictionary<TKey, TValue> |
other |
Another dictionary |
Returns
Type |
Description |
System.Boolean |
true, if both dictionary have the same data, false otherwise |
Type Parameters
Name |
Description |
TKey |
|
TValue |
|
Satisfies(IDictionary<IGoapStateKey, GoapStateProperty>, IDictionary<IGoapStateKey, GoapStateProperty>)
Checks if
given
satisfies the requirements
Declaration
public static bool Satisfies(IDictionary<IGoapStateKey, GoapStateProperty> given, IDictionary<IGoapStateKey, GoapStateProperty> required)
Parameters
Returns
Type |
Description |
System.Boolean |
true if required is a corresponding subset of given, false otherwise |