Method AddDetail
AddDetail<T>()
This will add a Detail of the specified type to this GameItem.
Declaration
protected T AddDetail<T>() where T : BaseDetail, new()
Returns
| Type | Description |
|---|---|
| T | A reference to the newly-created Detail that was added. |
Type Parameters
| Name | Description |
|---|---|
| T | Type of detail to add. |