Method Contains
Contains(ref TagList, TraitIndex)
Checks if a given trait belongs to a given trait list.
Declaration
public bool Contains(ref Binary.TagList tagList, Binary.TraitIndex traitIndex)
Parameters
Type | Name | Description |
---|---|---|
Binary.TagList | tagList | The tag list to check against. |
Binary.TraitIndex | traitIndex | The trait to check for. |
Returns
Type | Description |
---|---|
bool | True if the given trait belongs to the trait list, false otherwise. |
Contains(TagListIndex, TraitIndex)
Checks if a given trait belongs to a given trait list.
Declaration
public bool Contains(Binary.TagListIndex tagListIndex, Binary.TraitIndex traitIndex)
Parameters
Type | Name | Description |
---|---|---|
Binary.TagListIndex | tagListIndex | The tag list to check against. |
Binary.TraitIndex | traitIndex | The trait to check for. |
Returns
Type | Description |
---|---|
bool | True if the given trait belongs to the trait list, false otherwise. |