Olympe Engine 2.0
2D Game Engine with ECS Architecture
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
GridSettings_data Struct Reference

#include <ECS_Components.h>

+ Collaboration diagram for GridSettings_data:

Public Member Functions

 GridSettings_data ()=default
 
 GridSettings_data (const GridSettings_data &)=default
 
GridSettings_dataoperator= (const GridSettings_data &)=default
 

Public Attributes

bool enabled = false
 
GridProjection projection = GridProjection::Ortho
 
Vector cellSize = Vector(32.f, 32.f, 0.f)
 
float hexRadius = 16.f
 
SDL_Color color = { 180, 180, 180, 255 }
 
int maxLines = 1200
 
float lodZoomThreshold = 0.5f
 
int lodSkipFactor = 10
 
bool showCollisionOverlay = false
 
bool showNavigationOverlay = false
 
uint8_t activeCollisionLayer = 0
 
uint8_t activeNavigationLayer = 0
 
SDL_Color collisionColors [8]
 
SDL_Color navigationColors [8]
 

Detailed Description

Examples
/home/runner/work/Olympe-Engine/Olympe-Engine/Source/World.h.

Definition at line 526 of file ECS_Components.h.

Constructor & Destructor Documentation

◆ GridSettings_data() [1/2]

GridSettings_data::GridSettings_data ( )
default

◆ GridSettings_data() [2/2]

GridSettings_data::GridSettings_data ( const GridSettings_data )
default

Member Function Documentation

◆ operator=()

GridSettings_data & GridSettings_data::operator= ( const GridSettings_data )
default

Member Data Documentation

◆ activeCollisionLayer

uint8_t GridSettings_data::activeCollisionLayer = 0

Definition at line 550 of file ECS_Components.h.

◆ activeNavigationLayer

uint8_t GridSettings_data::activeNavigationLayer = 0

Definition at line 551 of file ECS_Components.h.

◆ cellSize

Vector GridSettings_data::cellSize = Vector(32.f, 32.f, 0.f)

Definition at line 532 of file ECS_Components.h.

◆ collisionColors

SDL_Color GridSettings_data::collisionColors[8]
Initial value:
= {
{ 150, 50, 200, 150 },
{ 50, 150, 255, 150 },
{ 100, 50, 50, 150 },
{ 255, 200, 50, 150 },
{ 200, 200, 200, 150 },
{ 180, 180, 180, 150 },
{ 160, 160, 160, 150 },
{ 140, 140, 140, 150 }
}

Definition at line 554 of file ECS_Components.h.

◆ color

SDL_Color GridSettings_data::color = { 180, 180, 180, 255 }

Definition at line 538 of file ECS_Components.h.

◆ enabled

bool GridSettings_data::enabled = false

Definition at line 528 of file ECS_Components.h.

◆ hexRadius

float GridSettings_data::hexRadius = 16.f

Definition at line 535 of file ECS_Components.h.

◆ lodSkipFactor

int GridSettings_data::lodSkipFactor = 10

Definition at line 543 of file ECS_Components.h.

◆ lodZoomThreshold

float GridSettings_data::lodZoomThreshold = 0.5f

Definition at line 542 of file ECS_Components.h.

◆ maxLines

int GridSettings_data::maxLines = 1200

Definition at line 539 of file ECS_Components.h.

◆ navigationColors

SDL_Color GridSettings_data::navigationColors[8]
Initial value:
= {
{ 50, 200, 100, 150 },
{ 100, 200, 255, 150 },
{ 200, 100, 50, 150 },
{ 255, 255, 100, 150 },
{ 150, 255, 150, 150 },
{ 120, 235, 120, 150 },
{ 90, 215, 90, 150 },
{ 60, 195, 60, 150 }
}

Definition at line 565 of file ECS_Components.h.

◆ projection

GridProjection GridSettings_data::projection = GridProjection::Ortho

Definition at line 529 of file ECS_Components.h.

◆ showCollisionOverlay

bool GridSettings_data::showCollisionOverlay = false

Definition at line 546 of file ECS_Components.h.

◆ showNavigationOverlay

bool GridSettings_data::showNavigationOverlay = false

Definition at line 547 of file ECS_Components.h.


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