Finality Engine
Toggle main menu visibility
Loading...
Searching...
No Matches
HistoryCheckpoint.h
Go to the documentation of this file.
1
6
#pragma once
7
8
namespace
FINALITY
9
{
11
class
HistoryCheckpoint
12
{
13
bool
m_Requested =
true
;
14
bool
m_Interacting =
false
;
15
public
:
16
void
Request
() { m_Requested =
true
; }
17
void
Completed
() { m_Requested =
false
; }
18
bool
Update
(
bool
interacting,
bool
actionCompleted =
false
)
19
{
20
m_Requested |= actionCompleted;
21
if
(interacting) { m_Interacting =
true
;
return
false
; }
22
const
bool
checkpoint = m_Requested || m_Interacting;
23
m_Requested = m_Interacting =
false
;
24
return
checkpoint;
25
}
26
};
27
}
FINALITY::HistoryCheckpoint
Definition
HistoryCheckpoint.h:12
FINALITY::HistoryCheckpoint::Request
void Request()
Definition
HistoryCheckpoint.h:16
FINALITY::HistoryCheckpoint::Update
bool Update(bool interacting, bool actionCompleted=false)
Definition
HistoryCheckpoint.h:18
FINALITY::HistoryCheckpoint::Completed
void Completed()
Definition
HistoryCheckpoint.h:17
FINALITY
Definition
Asset.h:12
FinalityEditor
src
Editor
HistoryCheckpoint.h
Generated by
1.18.0