![]() |
SourcePP
Several modern C++20 libraries for sanely parsing Valve's formats.
|
#include <FGD.h>

Classes | |
| struct | Entity |
| struct | AutoVisGroup |
Public Member Functions | |
| FGD ()=default | |
| FGD (const std::filesystem::path &fgdPath) | |
| void | load (const std::filesystem::path &fgdPath) |
| Can be called multiple times in succession to load multiple FGD files. | |
| int | getVersion () const |
| sourcepp::math::Vec2i | getMapSize () const |
| const std::unordered_map< std::string_view, Entity > & | getEntities () const |
| const std::vector< std::string_view > & | getMaterialExclusionDirs () const |
| const std::unordered_map< std::string_view, std::string_view > & | getMainKeyValues () const |
| const std::vector< AutoVisGroup > & | getAutoVisGroups () const |
Protected Member Functions | |
| void | readEntities (BufferStreamReadOnly &stream, const std::filesystem::path &path, std::vector< std::filesystem::path > &seenPaths) |
Protected Attributes | |
| std::list< std::string > | backingData |
| int | version = 0 |
| sourcepp::math::Vec2i | mapSize {} |
| std::unordered_map< std::string_view, Entity > | entities |
| std::vector< std::string_view > | materialExclusionDirs |
| std::unordered_map< std::string_view, std::string_view > | mainKeyValues |
| std::vector< AutoVisGroup > | autoVisGroups |
|
default |
|
nodiscard |
|
nodiscard |
|
nodiscard |
|
nodiscard |
| void FGD::load | ( | const std::filesystem::path & | fgdPath | ) |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |