Aegis2D
Modular C++26 2D game engine for networked games
Loading...
Searching...
No Matches
aegis2d::ecs::WaveSpawn Struct Reference

One entity a WaveSchedule makes appear. More...

#include <aegis2d/ecs/waves.hpp>

Public Attributes

std::string type
 Name of the entity type, as written in the file (e.g. "grunt"); the game maps it to its creation function.
 
Vec2 position {}
 Where it appears, in logical pixels.
 
std::size_t wave = 0
 Index of its wave in the file, from 0.
 
float time = 0.0F
 When it appears, in seconds from the start of the schedule (of each loop).
 

Detailed Description

One entity a WaveSchedule makes appear.

Member Data Documentation

◆ position

Vec2 aegis2d::ecs::WaveSpawn::position {}

Where it appears, in logical pixels.

◆ time

float aegis2d::ecs::WaveSpawn::time = 0.0F

When it appears, in seconds from the start of the schedule (of each loop).

◆ type

std::string aegis2d::ecs::WaveSpawn::type

Name of the entity type, as written in the file (e.g. "grunt"); the game maps it to its creation function.

◆ wave

std::size_t aegis2d::ecs::WaveSpawn::wave = 0

Index of its wave in the file, from 0.


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