Declare BrushWrapper as todo

This commit is contained in:
Jan
2022-01-15 11:48:12 +01:00
parent 88771849fb
commit 16d421f22d
4 changed files with 13 additions and 3 deletions

View File

@ -65,6 +65,12 @@ void MapFileDumper::Init() const
m_stream << "\"The Map\" flags\n";
}
void MapFileDumper::WriteComment(const std::string& key) const
{
Indent();
m_stream << "// " << key << "\n";
}
void MapFileDumper::BeginEntity()
{
assert(!m_flags.m_in_entity);

View File

@ -58,6 +58,7 @@ public:
explicit MapFileDumper(std::ostream& stream);
void Init() const;
void WriteComment(const std::string& key) const;
void BeginEntity();
void EndEntity();

View File

@ -47,6 +47,8 @@ void AssetDumperPhysCollmap::DumpAsset(AssetDumpingContext& context, XAssetInfo<
switch (geom.type)
{
case PHYS_GEOM_NONE:
// TODO: Dump BrushWrapper (probably GJK related)
mapFileDumper.WriteComment("TODO: Brush data");
break;
case PHYS_GEOM_BOX:
mapFileDumper.WritePhysicsBox({
@ -73,6 +75,7 @@ void AssetDumperPhysCollmap::DumpAsset(AssetDumpingContext& context, XAssetInfo<
case PHYS_GEOM_CAPSULE:
case PHYS_GEOM_GLASS:
default:
// These do not seem to appear inside any collmap assets
assert(false);
break;
}