ProjectTextRPG/TextRPG/Source/Game/Scene/InventoryScene.cpp

43 lines
773 B
C++

#include "InventoryScene.h"
#include "GameInstance.h"
#include "MainMenuScene.h"
#include "Core/Subsystems/GameInputSystem.h"
#include "Core/Subsystems/SceneManager.h"
#include "Game/Characters/Player/Player.h"
#include "Game/Inventory/InventorySystem.h"
InventoryScene::InventoryScene(GameSceneManager* InOwner) :
CoreScene(InOwner)
{
bEnableTick = false;
}
InventoryScene::~InventoryScene()
{
}
void InventoryScene::Enter()
{
Player* LocalPlayer = GInst->GetLocalPlayer();
InventorySystem<Item>* Inventory = LocalPlayer->GetInventory();
Inventory->PrintAllItems();
system("pause");
Exit();
}
void InventoryScene::Update()
{
}
void InventoryScene::Exit()
{
Owner->TransitionTo<MainMenuScene>();
}
void InventoryScene::Release()
{
CoreScene::Release();
}