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