Method AddGameItemDefinition
AddGameItemDefinition(GameItemDefinition)
Adds the given GameItemDefinition to this GameItemCatalog.
Declaration
public bool AddGameItemDefinition(GameItemDefinition gameItemDefinition)
Parameters
| Type | Name | Description |
|---|---|---|
| GameItemDefinition | gameItemDefinition | The GameItemDefinition to add. |
Returns
| Type | Description |
|---|---|
| bool | Whether or not the GameItemDefinition was successfully added. |
Exceptions
| Type | Condition |
|---|---|
| ArgumentException | Thrown if the given game item definition is a duplicate. |