Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 6, 2015, 11:52:25 PM (10 years ago)
Author:
landauf
Message:

statically initialized instances are now registered with a type. CoreStaticInitializationHandler initializes all instances in core, NetworkStaticInitializationHandler initializes all instances in network.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/core7/test/core/object/ClassFactoryTest.cc

    r10530 r10535  
    44#include "core/object/Context.h"
    55#include "core/module/ModuleInstance.h"
     6#include "core/CoreIncludes.h"
    67
    78namespace orxonox
     
    1617                {
    1718                    Context::setRootContext(new Context(NULL));
    18                     ModuleInstance::getCurrentModuleInstance()->loadAllStaticallyInitializedInstances(0);
     19                    ModuleInstance::getCurrentModuleInstance()->loadAllStaticallyInitializedInstances(StaticInitialization::IDENTIFIER);
    1920                }
    2021
    2122                virtual void TearDown()
    2223                {
    23                     ModuleInstance::getCurrentModuleInstance()->unloadAllStaticallyInitializedInstances(0);
     24                    ModuleInstance::getCurrentModuleInstance()->unloadAllStaticallyInitializedInstances(StaticInitialization::IDENTIFIER);
    2425                    Context::setRootContext(NULL);
    2526                }
Note: See TracChangeset for help on using the changeset viewer.