Method HasFloatValue
HasFloatValue(GameItem, string)
Checks if the specified Stat has been set for specified GameItem.
Declaration
public static bool HasFloatValue(GameItem gameItem, string statDefinitionId)
Parameters
| Type | Name | Description |
|---|---|---|
| GameItem | gameItem | GameItem upon which Stat is to be inspected. |
| string | statDefinitionId | StatDefinition's Id to search for. |
Returns
| Type | Description |
|---|---|
| bool | True if specified GameItem has specified Stat. |
HasFloatValue(GameItem, int)
Checks if the specified Stat has been set for specified GameItem.
Declaration
public static bool HasFloatValue(GameItem gameItem, int statDefinitionHash)
Parameters
| Type | Name | Description |
|---|---|---|
| GameItem | gameItem | GameItem upon which Stat is to be inspected. |
| int | statDefinitionHash | StatDefinition's Hash to search for. |
Returns
| Type | Description |
|---|---|
| bool | True if specified GameItem has specified Stat. |