载入中...
搜索中...
未找到
LevelDocument.h
浏览该文件的文档.
127 [[nodiscard]] eve::OptionalRef<const LevelObject> object(int layerIndex, int objectIndex) const;
Vocabulary aliases for nullable and checked borrowed references.
Owning, renderer-independent dynamic values.
Format-neutral, editable top-down level model.
Definition LevelDocument.h:60
LevelDocument(LevelDocument &&)=default
Level document.
LevelDocument & operator=(const LevelDocument &)=delete
LevelDocument & operator=(LevelDocument &&)=default
Operator =.
LevelDocument(const LevelDocument &)=delete
std::unordered_map< std::string, std::string > & properties()
Definition LevelDocument.h:136
const std::unordered_map< std::string, std::string > & properties() const
Definition LevelDocument.h:137
Definition Brush.cpp:10
LevelChange
Whether a requested level mutation changed authoritative document state.
Definition LevelDocument.h:17
@ Unchanged
std::optional< std::reference_wrapper< T > > OptionalRef
Optional borrowed reference; it does not extend T's lifetime.
Definition BorrowedRef.h:24
A tile or object layer in a LevelDocument.
Definition LevelDocument.h:33
std::unique_ptr< TileBuffer > tiles
Definition LevelDocument.h:45
std::unordered_map< std::string, std::string > properties
Definition LevelDocument.h:48
std::vector< LevelObject > objects
Definition LevelDocument.h:46
eve::Value::Object extensions
Owned format fields not represented above; codec excludes authoritative fields.
Definition LevelDocument.h:50
One freely extensible object placed in a top-down level.
Definition LevelDocument.h:20
std::unordered_map< std::string, std::string > properties
Definition LevelDocument.h:27
eve::Value::Object extensions
Owned format fields not represented above; codec excludes authoritative fields.
Definition LevelDocument.h:29