Nelaric Unreal Gameplay
Gameplay framework API
Loading...
Searching...
No Matches
NelaricGameModeBase.h
Go to the documentation of this file.
1// Copyright (c) 2026 Nelaric
2
6
7#pragma once
8
9#include "GameFramework/GameModeBase.h"
10
11#include "NelaricGameModeBase.generated.h"
12
13class AOnlineBeaconHost;
15
22UCLASS(MinimalAPI, Blueprintable)
23class ANelaricGameModeBase : public AGameModeBase
24{
25 GENERATED_BODY()
26
27public:
29 GAMEPLAYRUNTIME_API ANelaricGameModeBase();
30
32 UPROPERTY(EditDefaultsOnly, Category = "Nelaric|Transition", meta = (ClampMin = "1", ClampMax = "65535"))
34
43 GAMEPLAYRUNTIME_API bool CanAcceptTransition() const;
44
49 GAMEPLAYRUNTIME_API virtual void StartPlay() override;
50
51private:
52 UPROPERTY(Transient)
53 TObjectPtr<AOnlineBeaconHost> BeaconHost;
54
55 UPROPERTY(Transient)
56 TObjectPtr<ATransitionBeaconHost> TransitionBeaconHost;
57};
GAMEPLAYRUNTIME_API ANelaricGameModeBase()
Selects the project's player controller for this game mode.
GAMEPLAYRUNTIME_API bool CanAcceptTransition() const
Reports whether this server can accept a transition.
int32 TransitionBeaconListenPort
Port on which this server listens for transition approval beacons.
Definition NelaricGameModeBase.h:33
virtual GAMEPLAYRUNTIME_API void StartPlay() override
Starts the target approval beacon on an online server.
Registers the target approval beacon client type.
Definition TransitionBeaconHost.h:20