Function libcacaoasset::EncodeWorld

Function Documentation

void libcacaoasset::EncodeWorld(const World &world, std::ostream *stream)

Export a world object to a stream.

Parameters:
  • world – The World to export

  • stream – The stream to write to

Throws:
  • std::runtime_error – If the stream pointer is invalid

  • std::runtime_error – If encoding fails