self-registering screen classes

This commit is contained in:
Chris Danford
2004-11-26 17:28:47 +00:00
parent b333841085
commit 7f336c2ce6
74 changed files with 147 additions and 43 deletions
+1
View File
@@ -33,6 +33,7 @@ bool PrepareForDemonstration() // always return true.
return true;
}
REGISTER_SCREEN_CLASS( ScreenDemonstration );
ScreenDemonstration::ScreenDemonstration( CString sName ) : ScreenJukebox( sName, PrepareForDemonstration() ) // this is a hack to get some code to execute before the ScreenGameplay constructor
{
LOG->Trace( "ScreenDemonstration::ScreenDemonstration()" );