载入中...
搜索中...
未找到
LevelFormat.h
浏览该文件的文档.
28 [[nodiscard]] virtual eve::Result<std::unique_ptr<LevelDocument>> read(const std::string& text) const = 0;
71 [[nodiscard]] eve::Result<std::string> encode(const std::string& format, const LevelDocument& level) const;
Vocabulary aliases for nullable and checked borrowed references.
Move-only, checked operation results for the common layer.
Format-neutral, editable top-down level model.
Definition LevelDocument.h:60
Registry and conversion gateway for level formats.
Definition LevelFormat.h:42
LevelFormatRegistry & operator=(const LevelFormatRegistry &)=delete
LevelFormatRegistry(LevelFormatRegistry &&)=default
Level format registry.
LevelFormatRegistry & operator=(LevelFormatRegistry &&)=default
Operator =.
LevelFormatRegistry(const LevelFormatRegistry &)=delete
Plug-in contract for importing and exporting a level representation.
Definition LevelFormat.h:16
virtual eve::Result< std::string > write(const LevelDocument &level) const =0
Writes .
virtual ~LevelFormat()=default
Releases LevelFormat resources.
virtual bool canRead(const std::string &text) const =0
Can read.
virtual eve::Result< std::unique_ptr< LevelDocument > > read(const std::string &text) const =0
Reads .
virtual std::vector< std::string > extensions() const =0
Extensions.
Definition Brush.cpp:10
std::optional< std::reference_wrapper< T > > OptionalRef
Optional borrowed reference; it does not extend T's lifetime.
Definition BorrowedRef.h:24