Method AddCategory
AddCategory(CategoryDefinition)
Adds the given Category to this GameItemDefinition.
Declaration
public bool AddCategory(CategoryDefinition category)
Parameters
Type | Name | Description |
---|---|---|
CategoryDefinition | category | The CategoryDefinition to add. |
Returns
Type | Description |
---|---|
bool | Whether or not adding the Category was successful. |
Exceptions
Type | Condition |
---|---|
ArgumentException | Thrown if the given category is already on this definition. |