Files
UnrealEngineUWP/Engine/Plugins/Runtime/GameplayStateTree/Source/GameplayStateTreeModule/Private/GameplayStateTreeModule.cpp
Yoan StAmant f4f130cbae GameplatStateTree Plugin
- moved StateTreeBrainComponent (from StateTreeModule) and renamed StateTreeComponent
- added FStateTreeTaskCommonBase (similar to FStateTreeTaskCommonCondition)
#rnx
#rb mikko.mononen
#preflight 626fd50d645c64f3a236325a

[CL 20007596 by Yoan StAmant in ue5-main branch]
2022-05-02 09:15:14 -04:00

29 lines
907 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#include "GameplayStateTreeModule.h"
#include "Modules/ModuleManager.h"
//----------------------------------------------------------------------//
// IGameplayStateTreeModule
//----------------------------------------------------------------------//
IGameplayStateTreeModule& IGameplayStateTreeModule::Get()
{
return FModuleManager::LoadModuleChecked<IGameplayStateTreeModule>("StateTreeGameplayModule");
}
bool IGameplayStateTreeModule::IsAvailable()
{
return FModuleManager::Get().IsModuleLoaded("StateTreeGameplayModule");
}
//----------------------------------------------------------------------//
// FStateTreeGameplayModule
//----------------------------------------------------------------------//
class FStateTreeGameplayModule : public IGameplayStateTreeModule
{
};
IMPLEMENT_MODULE(FStateTreeGameplayModule, StateTreeGameplayModule)