topical media & game development
lib-game-delta3d-sdk-examples-testGameActorComponents-testactorlibraryregistry.cpp / cpp
include <testactorlibraryregistry.h>
include <componentgameactor.h>
include <dtDAL/actorpluginregistry.h>
include <dtDAL/actortype.h>
dtCore::RefPtr<dtDAL::ActorType> TestActorLibraryRegistry::COMPONENT_GAME_ACTOR_TYPE(new dtDAL::ActorType("ComponentGameActor", "TestActors"));
////////////////////////////////////////////////////////////////////
extern "C" TEST_GA_COMPONENTS_EXPORT dtDAL::ActorPluginRegistry* CreatePluginRegistry()
{
return new TestActorLibraryRegistry;
}
////////////////////////////////////////////////////////////////////
extern "C" TEST_GA_COMPONENTS_EXPORT void DestroyPluginRegistry(dtDAL::ActorPluginRegistry* registry)
{
delete registry;
}
////////////////////////////////////////////////////////////////////
TestActorLibraryRegistry::TestActorLibraryRegistry()
: dtDAL::ActorPluginRegistry("Component Actors")
{
}
////////////////////////////////////////////////////////////////////
void TestActorLibraryRegistry::RegisterActorTypes()
{
mActorFactory->RegisterType<ComponentGameActorProxy>(COMPONENT_GAME_ACTOR_TYPE.get());
}
(C) Æliens
04/09/2009
You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.