R-Type
Networked shoot'em up built on Aegis2D
Loading...
Searching...
No Matches
waves.hpp
Go to the documentation of this file.
1
3#pragma once
4#include <aegis2d/ecs/waves.hpp>
5
7
8#include <filesystem>
9#include <string>
10#include <vector>
11
12namespace rtype {
13
17[[nodiscard]] std::filesystem::path default_waves_file();
18
23[[nodiscard]] std::vector<std::string> waves_names(const std::filesystem::path& directory);
24
32[[nodiscard]] aegis2d::ecs::WaveSchedule
33load_waves(const std::filesystem::path& path,
34 const std::vector<std::string>& types = enemy_types());
35
36} // namespace rtype
Enemy types written in Lua: their values and their behavior, run by the server.
R-Type game code, built on the Aegis2D engine.
Definition enemy_scripts.hpp:16
std::filesystem::path default_waves_file()
Waves file played by the server when none is given.
aegis2d::ecs::WaveSchedule load_waves(const std::filesystem::path &path, const std::vector< std::string > &types=enemy_types())
Reads a waves file, accepting only the enemy types it is given.
std::vector< std::string > waves_names(const std::filesystem::path &directory)
The waves files of a directory, as a room names them (RFC section 3.6).
std::vector< std::string > enemy_types(const std::filesystem::path &directory=default_enemies_directory())
The enemy types of a directory, as waves files name them.