2014-03-14 14:13:41 -04:00
|
|
|
// Copyright 1998-2013 Epic Games, Inc. All Rights Reserved.
|
|
|
|
|
|
|
|
|
|
#include "SkillSystemModulePrivatePCH.h"
|
2014-04-02 18:09:23 -04:00
|
|
|
#include "SkillSystemGlobals.h"
|
2014-03-14 14:13:41 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
class FSkillSystemModule : public ISkillSystemModule
|
|
|
|
|
{
|
|
|
|
|
// Begin IModuleInterface
|
|
|
|
|
virtual void StartupModule() OVERRIDE;
|
|
|
|
|
virtual void ShutdownModule() OVERRIDE;
|
|
|
|
|
// End IModuleInterface
|
|
|
|
|
|
2014-04-02 18:09:23 -04:00
|
|
|
virtual USkillSystemGlobals& GetSkillSystemGlobals()
|
|
|
|
|
{
|
|
|
|
|
check(SkillSystemGlobals);
|
|
|
|
|
return *SkillSystemGlobals;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
USkillSystemGlobals *SkillSystemGlobals;
|
|
|
|
|
|
2014-03-14 14:13:41 -04:00
|
|
|
private:
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
IMPLEMENT_MODULE( FSkillSystemModule, SkillSystem )
|
|
|
|
|
|
|
|
|
|
void FSkillSystemModule::StartupModule()
|
|
|
|
|
{
|
|
|
|
|
// This code will execute after your module is loaded into memory (but after global variables are initialized, of course.)
|
2014-04-02 18:09:23 -04:00
|
|
|
SkillSystemGlobals = ConstructObject<USkillSystemGlobals>(USkillSystemGlobals::StaticClass(), GetTransientPackage(), NAME_None, RF_RootSet);
|
2014-03-14 14:13:41 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void FSkillSystemModule::ShutdownModule()
|
|
|
|
|
{
|
|
|
|
|
// This function may be called during shutdown to clean up your module. For modules that support dynamic reloading,
|
|
|
|
|
// we call this function before unloading the module.
|
2014-04-02 18:09:23 -04:00
|
|
|
|
|
|
|
|
SkillSystemGlobals = NULL;
|
2014-03-14 14:13:41 -04:00
|
|
|
}
|