class

FFileTypes

Module
Core
Header
#include "Core/FileTypes.h"
Namespace
Mowo

Properties

TypeNameDescription
static constexpr const char*GitAttributesBeginDefault "# BEGIN file types".
static constexpr const char*GitAttributesEndDefault "# END file types".

Public functions

ReturnsNameDescription
TArrayView<const FFileTypeInfo>All
const FFileTypeInfo&Info
const char*ExtensionThe canonical extension, dot included: ".mat".
std::vector<std::string>ReadableExtensionsCanonical, alias and legacy spellings, canonical first — what a reader claims.
std::vector<std::string>ExtensionsInCategory
EFileTypeFromExtensionAny spelling, with or without the leading dot, any case.
EFileTypeFromPathThe longest spelling the path ends with, so "World.mmap.sectors" is a sector manifest and "rock.png.mdfmeta" a sidecar.
boolIs
boolIsCategory
boolIsExtensionOf
boolIsLegacyExtension
boolIsLegacyPath
std::stringMatchedSuffixThe spelling path ends with, as the table writes it; empty when no row claims it.
std::stringWithExtensionpath with whatever spelling of type it ends in (or its last extension when none) replaced by the canonical one.
EFileTypeFromPackageClass
boolHasPackageClass
boolCanHoldPackageTrue for a type whose files may carry a package summary: any asset or level file (a migrated text asset leads with one, an older one does not) and the legacy generic packages.
EFileTypePackageTypeForThe type a package of assetClass is saved as.
boolIsPackagePath
std::stringGlobPattern"*.mat;*.mdfmat;*.mmat" for a native file dialog.
std::stringManifestOne line per row, the same fields the MBT mirror holds.
std::stringGitAttributesBlockThe .gitattributes block the table implies, between GitAttributesBegin and GitAttributesEnd: MDF text types LF and merged by property, Visual Scripting by node id, binary bulk types in LFS with a lock.
std::stringWithGitAttributesBlockexisting (a .gitattributes, possibly empty) with its file-type block replaced by the current one, or the block appended when it has none.
const char*EncodingName
const char*CategoryName

Function details

All

C++
static TArrayView<const FFileTypeInfo> All()

Info

C++
static const FFileTypeInfo& Info(EFileType type)

Extension

C++
static const char* Extension(EFileType type)

The canonical extension, dot included: ".mat".

ReadableExtensions

C++
static std::vector<std::string> ReadableExtensions(EFileType type)

Canonical, alias and legacy spellings, canonical first — what a reader claims. Legacy spellings: Removal date: 2027-04-19, with RenameLegacyExtensions.

ExtensionsInCategory

C++
static std::vector<std::string> ExtensionsInCategory(EFileCategory category, bool includeLegacy = true)

FromExtension

C++
static EFileType FromExtension(std::string_view extension)

Any spelling, with or without the leading dot, any case.

FromPath

C++
static EFileType FromPath(std::string_view path)

The longest spelling the path ends with, so "World.mmap.sectors" is a sector manifest and "rock.png.mdfmeta" a sidecar.

Is

C++
static bool Is(std::string_view path, EFileType type)

IsCategory

C++
static bool IsCategory(std::string_view path, EFileCategory category)

IsExtensionOf

C++
static bool IsExtensionOf(std::string_view extension, EFileType type)

IsLegacyExtension

C++
static bool IsLegacyExtension(std::string_view extension)

IsLegacyPath

C++
static bool IsLegacyPath(std::string_view path)

MatchedSuffix

C++
static std::string MatchedSuffix(std::string_view path)

The spelling path ends with, as the table writes it; empty when no row claims it.

WithExtension

C++
static std::string WithExtension(std::string_view path, EFileType type)

path with whatever spelling of type it ends in (or its last extension when none) replaced by the canonical one.

FromPackageClass

C++
static EFileType FromPackageClass(std::string_view assetClass)

HasPackageClass

C++
static bool HasPackageClass(EFileType type, std::string_view assetClass)

CanHoldPackage

C++
static bool CanHoldPackage(EFileType type)

True for a type whose files may carry a package summary: any asset or level file (a migrated text asset leads with one, an older one does not) and the legacy generic packages.

PackageTypeFor

C++
static EFileType PackageTypeFor(std::string_view assetClass)

The type a package of assetClass is saved as. A reflected object class no row names is a data asset.

IsPackagePath

C++
static bool IsPackagePath(std::string_view path)

GlobPattern

C++
static std::string GlobPattern(EFileType type, bool includeLegacy = true)

"*.mat;*.mdfmat;*.mmat" for a native file dialog.

Manifest

C++
static std::string Manifest()

One line per row, the same fields the MBT mirror holds.

GitAttributesBlock

C++
static std::string GitAttributesBlock()

The .gitattributes block the table implies, between GitAttributesBegin and GitAttributesEnd: MDF text types LF and merged by property, Visual Scripting by node id, binary bulk types in LFS with a lock. Byte for byte what MBT's FileTypes.GitAttributesBlock() returns — the engine repo commits it, a new project is scaffolded with it, and opening a project refreshes it.

WithGitAttributesBlock

C++
static std::string WithGitAttributesBlock(const std::string& existing)

existing (a .gitattributes, possibly empty) with its file-type block replaced by the current one, or the block appended when it has none.

EncodingName

C++
static const char* EncodingName(EFileEncoding encoding)

CategoryName

C++
static const char* CategoryName(EFileCategory category)
Generated from Core/FileTypes.h via core.json · Nov 5, 2026Version 1.0.0