Function libcacaoasset::DecodeWorld
Defined in File libcacaoasset.hpp
Function Documentation
-
World libcacaoasset::DecodeWorld(std::istream *stream)
Decode a world object from the stream data.
- Parameters:
stream – The stream to read data from (warning: this pointer becomes owned exclusively by this function and will be freed when it returns)
- Throws:
std::runtime_error – If the stream pointer is invalid
std::runtime_error – If the stream is not a valid world
std::runtime_error – If decoding fails
- Returns:
The resulting world object