mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 19:53:48 +00:00
Initialize StockColors
This commit makes sure the StockColors are initialized and destroyed, using the module system.
This commit is contained in:
parent
9ebfd0f6b3
commit
4de9bd4e85
1 changed files with 18 additions and 0 deletions
|
|
@ -66,6 +66,24 @@ static typeColorIToNameHash mColorIToName;
|
|||
|
||||
#define DEFAULT_UNKNOWN_STOCK_COLOR_NAME "White"
|
||||
|
||||
MODULE_BEGIN( StockColors )
|
||||
|
||||
MODULE_INIT_AFTER( GFX )
|
||||
|
||||
MODULE_INIT
|
||||
{
|
||||
// Create the stock colors.
|
||||
StockColor::create();
|
||||
}
|
||||
|
||||
MODULE_SHUTDOWN
|
||||
{
|
||||
// Destroy the stock colors.
|
||||
StockColor::destroy();
|
||||
}
|
||||
|
||||
MODULE_END;
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
StockColorItem StockColorTable[] =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue