Leviathan game engine
Leviathan::Position Class Reference

Entity has position and direction it is looking at. More...

#include <Components.h>

+ Inheritance diagram for Leviathan::Position:


struct  Data

Public Types

using StateT = PositionState

Public Member Functions

 Position (const Data &data)
 Creates at specific position. More...
- Public Member Functions inherited from Leviathan::ComponentWithStates< PositionState >
 ComponentWithStates (COMPONENT_TYPE type)
- Public Member Functions inherited from Leviathan::Component
 Component (COMPONENT_TYPE type)
 Component (const Component &)=delete
Componentoperator= (const Component &)=delete

Public Attributes

Data Members
- Public Attributes inherited from Leviathan::ComponentWithStates< PositionState >
bool StateMarked
float InterpolatingStartTime
int InterpolatingRemoteStartTick
PositionState * InterpolatingStartState
PositionState * InterpolatingEndState
- Public Attributes inherited from Leviathan::Component
bool Marked
 Type of this component, used for network serialization. More...

Static Public Attributes

static constexpr auto TYPE = COMPONENT_TYPE::Position

Detailed Description

Entity has position and direction it is looking at.

Any possible locking needs to be handled by the caller
Initial position states should not be generated or initially sent data shouldn't have the state instead the first state would be guaranteed to be sent after it

Definition at line 45 of file Components.h.

Member Typedef Documentation

◆ StateT

using Leviathan::Position::StateT = PositionState

Definition at line 67 of file Components.h.

Constructor & Destructor Documentation

◆ Position()

Leviathan::Position::Position ( const Data data)

Creates at specific position.

Definition at line 60 of file Components.h.

60 : ComponentWithStates(TYPE), Members(data) {}
static constexpr auto TYPE
Definition: Components.h:66

Member Function Documentation


Leviathan::Position::REFERENCE_HANDLE_UNCOUNTED_TYPE ( Position  )

Member Data Documentation

◆ Members

Data Leviathan::Position::Members

Definition at line 64 of file Components.h.


constexpr auto Leviathan::Position::TYPE = COMPONENT_TYPE::Position

Definition at line 66 of file Components.h.

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