galaxy 1.0.0
Real-Time C++23 Game Programming Framework. Built on data-driven design principles and agile software engineering.
Loading...
Searching...
No Matches
galaxy::flags::Disabled Class Referencefinal

Used to stop an entity from being updated/rendered. More...

#include <Disabled.hpp>

Inheritance diagram for galaxy::flags::Disabled:
Collaboration diagram for galaxy::flags::Disabled:

Public Member Functions

 Disabled () noexcept
 Constructor.
 Disabled (const nlohmann::json &json)
 JSON constructor.
 Disabled (Disabled &&) noexcept
 Move constructor.
Disabled & operator= (Disabled &&) noexcept
 Move assignment operator.
virtual ~Disabled () noexcept
 Destructor.
nlohmann::json serialize () override
 Serializes object.
void deserialize (const nlohmann::json &json) override
 Deserializes from object.
Public Member Functions inherited from galaxy::Serializable
virtual ~Serializable ()
 Destructor.
virtual Serializable & operator= (Serializable &&) noexcept=default
 Move assignment operator.
virtual Serializable & operator= (const Serializable &) noexcept=default
 Copy assignment operator.

Private Member Functions

Disabled & operator= (const Disabled &)=delete
 Copy assignment operator.
 Disabled (const Disabled &)=delete
 Copy constructor.

Private Attributes

bool m_flag = true
 Prevents empty type optimization.

Additional Inherited Members

Protected Member Functions inherited from galaxy::Serializable
 Serializable () noexcept=default
 Constructor.
 Serializable (Serializable &&) noexcept=default
 Move constructor.
 Serializable (const Serializable &) noexcept=default
 Copy constructor.

Detailed Description

Used to stop an entity from being updated/rendered.

Definition at line 20 of file Disabled.hpp.

Constructor & Destructor Documentation

◆ Disabled() [1/4]

galaxy::flags::Disabled::Disabled ( )
noexcept

Constructor.

Definition at line 18 of file Disabled.cpp.

Here is the caller graph for this function:

◆ Disabled() [2/4]

galaxy::flags::Disabled::Disabled ( const nlohmann::json & json)

JSON constructor.

Parameters
jsonJSON defining object.

Definition at line 22 of file Disabled.cpp.

◆ Disabled() [3/4]

galaxy::flags::Disabled::Disabled ( Disabled && d)
noexcept

Move constructor.

Definition at line 27 of file Disabled.cpp.

Here is the call graph for this function:

◆ ~Disabled()

galaxy::flags::Disabled::~Disabled ( )
virtualnoexcept

Destructor.

Definition at line 38 of file Disabled.cpp.

◆ Disabled() [4/4]

galaxy::flags::Disabled::Disabled ( const Disabled & )
privatedelete

Copy constructor.

Here is the call graph for this function:

Member Function Documentation

◆ operator=() [1/2]

Disabled & galaxy::flags::Disabled::operator= ( Disabled && d)
noexcept

Move assignment operator.

Definition at line 32 of file Disabled.cpp.

Here is the call graph for this function:

◆ serialize()

nlohmann::json galaxy::flags::Disabled::serialize ( )
nodiscardoverridevirtual

Serializes object.

Returns
JSON object containing data to be serialized.

Implements galaxy::Serializable.

Definition at line 42 of file Disabled.cpp.

◆ deserialize()

void galaxy::flags::Disabled::deserialize ( const nlohmann::json & json)
overridevirtual

Deserializes from object.

Parameters
jsonJson object to retrieve data from.

Implements galaxy::Serializable.

Definition at line 47 of file Disabled.cpp.

◆ operator=() [2/2]

Disabled & galaxy::flags::Disabled::operator= ( const Disabled & )
privatedelete

Copy assignment operator.

Here is the call graph for this function:

Member Data Documentation

◆ m_flag

bool galaxy::flags::Disabled::m_flag = true
private

Prevents empty type optimization.

Definition at line 80 of file Disabled.hpp.


The documentation for this class was generated from the following files: