liblcf
Loading...
Searching...
No Matches
lmu_reader.h
Go to the documentation of this file.
1/*
2 * This file is part of liblcf. Copyright (c) 2020 liblcf authors.
3 * https://github.com/EasyRPG/liblcf - https://easyrpg.org
4 *
5 * liblcf is Free/Libre Open Source Software, released under the MIT License.
6 * For the full copyright and license information, please view the COPYING
7 * file that was distributed with this source code.
8 */
9
10#ifndef LCF_LMU_READER_H
11#define LCF_LMU_READER_H
12
13#include <string>
14#include <memory>
15#include "rpg_map.h"
16#include "lcf_saveopt.h"
17
21namespace LMU_Reader {
22
26 void PrepareSave(RPG::Map& map);
27
31 std::unique_ptr<RPG::Map> Load(const std::string& filename, const std::string& encoding);
32
36 bool Save(const std::string& filename, const RPG::Map& map, const std::string& encoding, SaveOpt opt = SaveOpt::eNone);
37
41 bool SaveXml(const std::string& filename, const RPG::Map& map);
42
46 std::unique_ptr<RPG::Map> LoadXml(const std::string& filename);
47
51 std::unique_ptr<RPG::Map> Load(std::istream& filestream, const std::string& encoding);
52
56 bool Save(std::ostream& filestream, const RPG::Map& map, const std::string& encoding, SaveOpt opt = SaveOpt::eNone);
57
61 bool SaveXml(std::ostream& filestream, const RPG::Map& map);
62
66 std::unique_ptr<RPG::Map> LoadXml(std::istream& filestream);
67}
68
69#endif
SaveOpt
Definition: lcf_saveopt.h:16
void PrepareSave(RPG::Map &map)
Definition: lmu_reader.cpp:20
bool Save(const std::string &filename, const RPG::Map &map, const std::string &encoding, SaveOpt opt=SaveOpt::eNone)
Definition: lmu_reader.cpp:33
bool SaveXml(const std::string &filename, const RPG::Map &map)
Definition: lmu_reader.cpp:42
std::unique_ptr< RPG::Map > Load(const std::string &filename, const std::string &encoding)
Definition: lmu_reader.cpp:24
std::unique_ptr< RPG::Map > LoadXml(const std::string &filename)
Definition: lmu_reader.cpp:51