Class StatesCommons
Inheritance
System.Object
StatesCommons
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Mars.Components.Services.Planning
Assembly: Mars.Components.dll
Syntax
public static class StatesCommons
Methods
| Improve this Doc View SourceEquals<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 |
---|---|---|
System.Collections.Generic.IDictionary<TKey, TValue> | any | Any dictionary |
System.Collections.Generic.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
Type | Name | Description |
---|---|---|
System.Collections.Generic.IDictionary<IGoapStateKey, GoapStateProperty> | given | Defines the states that are tested against the required ones |
System.Collections.Generic.IDictionary<IGoapStateKey, GoapStateProperty> | required | Defines states that have to be satisfied |
Returns
Type | Description |
---|---|
System.Boolean | true if required is a corresponding subset of given, false otherwise |