Space Plunder
Loading...
Searching...
No Matches
Gate.h
Go to the documentation of this file.
1
// Fill out your copyright notice in the Description page of Project Settings.
2
3
#pragma once
4
5
#include "CoreMinimal.h"
6
#include "Gate.generated.h"
7
8
9
USTRUCT(BlueprintType)
10
struct
FGate
11
{
12
GENERATED_BODY()
13
14
FORCEINLINE
FGate
();
15
explicit
FORCEINLINE
FGate
(
bool
bStartClosed);
16
17
FORCEINLINE
void
Open
(){bGateOpen =
true
;}
18
FORCEINLINE
void
Close
(){bGateOpen =
false
;}
19
FORCEINLINE
void
Toggle
(){bGateOpen = !bGateOpen;}
20
21
FORCEINLINE
bool
IsOpen
()
const
{
return
bGateOpen;}
22
23
private
:
24
UPROPERTY(VisibleAnywhere)
25
bool bGateOpen;
26
27
};
28
29
FORCEINLINE
FGate
::
FGate
() : bGateOpen(false)
30
{
31
32
}
33
34
FORCEINLINE
FGate::FGate
(
const
bool
bStartClosed) : bGateOpen(!bStartClosed)
35
{
36
37
}
FGate
Definition
Gate.h:11
FGate::IsOpen
FORCEINLINE bool IsOpen() const
Definition
Gate.h:21
FGate::FGate
FORCEINLINE FGate()
Definition
Gate.h:29
FGate::Open
FORCEINLINE void Open()
Definition
Gate.h:17
FGate::Close
FORCEINLINE void Close()
Definition
Gate.h:18
FGate::Toggle
FORCEINLINE void Toggle()
Definition
Gate.h:19
SpaceAdventure
Plugins
BaseHelpers
Source
BaseHelpers
Public
Helpers
Gate.h
Generated by
1.10.0