Method HasStat
HasStat(StatDefinition)
Tells if this GameItem instance has a
StatDetail with the given
statDefinition
references within this detail.
Declaration
public bool HasStat(StatDefinition statDefinition)
Parameters
Type | Name | Description |
---|---|---|
StatDefinition | statDefinition | The StatDefinition instance to look for |
Returns
Type | Description |
---|---|
bool |
|
Exceptions
Type | Condition |
---|---|
NullReferenceException | If this GameItem instance has been discarded. |
ArgumentNullException | If the
|
HasStat(string)
Tells if this GameItem instance has a
StatDetail with the given
id
references within this detail.
Declaration
public bool HasStat(string id)
Parameters
Type | Name | Description |
---|---|---|
string | id | The identifier of the StatDefinition to look for |
Returns
Type | Description |
---|---|
bool |
|
Exceptions
Type | Condition |
---|---|
NullReferenceException | If this GameItem instance has been discarded. |
ArgumentException | If the
|
ArgumentNullException | If there is no
StatDefinition identified by this
|