Removed deprecated mention of OBJECTTYPESTATIC macro in the getting started documentation.
This commit is contained in:
parent
6ad6966ea9
commit
a5223e76f2
@ -601,11 +601,9 @@ With the context at hand, we create the Engine and initialize it. The engine acc
|
||||
|
||||
After this, we instantiate the HelloWorld object, call its Start() function, and run the main loop until Engine tells that we should exit. The shared pointers will take care of deleting the objects in the correct order; the Context will be the last to be destroyed.
|
||||
|
||||
Now we can start implementing HelloWorld.
|
||||
Now we can start implementing HelloWorld.
|
||||
|
||||
\code
|
||||
OBJECTTYPESTATIC(HelloWorld);
|
||||
|
||||
HelloWorld::HelloWorld(Context* context) :
|
||||
Object(context),
|
||||
cache_(GetSubsystem<ResourceCache>())
|
||||
@ -613,8 +611,6 @@ HelloWorld::HelloWorld(Context* context) :
|
||||
}
|
||||
\endcode
|
||||
|
||||
Note the OBJECTTYPESTATIC(className) macro, which creates the static type name and type name hash for object type identification. For each OBJECT macro, a matching OBJECTTYPESTATIC must appear in a .cpp file.
|
||||
|
||||
During construction, we only store the ResourceCache subsystem pointer for later access.
|
||||
|
||||
In the Start() function the Scene will be created:
|
||||
|
Loading…
Reference in New Issue
Block a user