Class GoapStateProperty<TElement>
Defines a world state property in a GOAP usage context.
Implements
System.IEquatable<GoapStateProperty<TElement>>
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Mars.Components.Services.Planning
Assembly: Mars.Components.dll
Syntax
public class GoapStateProperty<TElement> : GoapStateProperty, IEquatable<GoapStateProperty<TElement>>
Type Parameters
Name | Description |
---|---|
TElement |
Constructors
| Improve this Doc View SourceGoapStateProperty(IGoapStateKey, TElement)
Defines a world state property in a GOAP usage context.
Declaration
public GoapStateProperty(IGoapStateKey key, TElement value)
Parameters
Type | Name | Description |
---|---|---|
IGoapStateKey | key | |
TElement | value |
Methods
| Improve this Doc View SourceEquals(GoapStateProperty<TElement>)
Defines a world state property in a GOAP usage context.
Declaration
public bool Equals(GoapStateProperty<TElement> other)
Parameters
Type | Name | Description |
---|---|---|
GoapStateProperty<TElement> | other |
Returns
Type | Description |
---|---|
System.Boolean |
Equals(Object)
Defines a world state property in a GOAP usage context.
Declaration
public override bool Equals(object o)
Parameters
Type | Name | Description |
---|---|---|
System.Object | o |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
System.Object.Equals(System.Object)
|
Improve this Doc
View Source
GetHashCode()
Defines a world state property in a GOAP usage context.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 |
Overrides
System.Object.GetHashCode()
|
Improve this Doc
View Source
Satisfies(GoapStateProperty<TElement>)
Indicates if a given
GoapStateProperty
fits the expectations of this object.
Declaration
public bool Satisfies(GoapStateProperty<TElement> other)
Parameters
Type | Name | Description |
---|---|---|
GoapStateProperty<TElement> | other | Is checked on. |
Returns
Type | Description |
---|---|
System.Boolean | True, if other satisfies this, false otherwise. |
ToString()
Defines a world state property in a GOAP usage context.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String |
Overrides
System.Object.ToString()
Implements
System.IEquatable<T>