This commit is contained in:
PC-G13
2022-07-26 18:17:52 +05:00
18 changed files with 33 additions and 24 deletions
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -23,28 +23,34 @@ AResComFloorManager* AResComPlayerController::GetFloorManager() const
return floorManager;
}
void AResComPoint::BeginPlay()
//void AResComPoint::BeginPlay()
//{
// Super::BeginPlay();
//
// // spectrator window
// /*SlateWin = SNew(SWindow)
// .AutoCenter(EAutoCenter::None)
// .Title(FText::FromString(TEXT("Control Window")))
// .IsInitiallyMaximized(false)
// .ScreenPosition(FVector2D(0, 0))
// .ClientSize(FVector2D(500, 800))
// .CreateTitleBar(true)
// .SizingRule(ESizingRule::UserSized)
// .SupportsMaximize(false)
// .SupportsMinimize(true)
// .HasCloseButton(true);
//
// TSharedRef<SWindow> SlateWinRef = SlateWin.ToSharedRef();
//
// FSlateApplication& SlateApp = FSlateApplication::Get();
//
// SlateApp.AddWindow(SlateWinRef, true);
//
// SlateWinRef->SetContent(SNew(SControlWidget));*/
//}
void AResComPlayerController::freeMemory()
{
Super::BeginPlay();
// spectrator window
/*SlateWin = SNew(SWindow)
.AutoCenter(EAutoCenter::None)
.Title(FText::FromString(TEXT("Control Window")))
.IsInitiallyMaximized(false)
.ScreenPosition(FVector2D(0, 0))
.ClientSize(FVector2D(500, 800))
.CreateTitleBar(true)
.SizingRule(ESizingRule::UserSized)
.SupportsMaximize(false)
.SupportsMinimize(true)
.HasCloseButton(true);
TSharedRef<SWindow> SlateWinRef = SlateWin.ToSharedRef();
FSlateApplication& SlateApp = FSlateApplication::Get();
SlateApp.AddWindow(SlateWinRef, true);
SlateWinRef->SetContent(SNew(SControlWidget));*/
GEngine->ForceGarbageCollection();
//GetWorld()->ForceGarbageCollection(true);
}
@@ -25,11 +25,14 @@ protected:
UFUNCTION(BlueprintCallable, Category = "FloorManager")
void SetFloorManager(AResComFloorManager* manager);
virtual void BeginPlay() override;
//virtual void BeginPlay() override;
public:
UFUNCTION(BlueprintCallable, Category = "PlayerManager")
AResComPlayerStateManager* GetPlayerStateManager() const;
UFUNCTION(BlueprintCallable, Category = "FloorManager")
AResComFloorManager* GetFloorManager() const;
UFUNCTION(BlueprintCallable, Category = "GarbageCollection")
void freeMemory();
};