-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
30 changed files
with
231 additions
and
413 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
// | ||
// Created by xmmmmmovo on 2023/7/23. | ||
// | ||
|
||
#ifndef ENGINE_SRC_RUNTIME_RESOURCE_CONVERTED_DATA_PROJECT_HPP | ||
#define ENGINE_SRC_RUNTIME_RESOURCE_CONVERTED_DATA_PROJECT_HPP | ||
|
||
#include "runtime/resource/converted_data/world.hpp" | ||
#include "runtime/resource/json/manifest_json.hpp" | ||
#include <filesystem> | ||
#include <string> | ||
#include <vector> | ||
|
||
namespace taixu { | ||
|
||
struct Project { | ||
std::filesystem::path current_path; | ||
Manifest manifest; | ||
std::vector<World> worlds; | ||
}; | ||
|
||
}// namespace taixu | ||
|
||
#endif// ENGINE_SRC_RUNTIME_RESOURCE_CONVERTED_DATA_PROJECT_HPP |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// | ||
// Created by xmmmmmovo on 2023/7/23. | ||
// | ||
|
||
#ifndef ENGINE_SRC_RUNTIME_RESOURCE_CONVERTED_DATA_WORLD_HPP | ||
#define ENGINE_SRC_RUNTIME_RESOURCE_CONVERTED_DATA_WORLD_HPP | ||
|
||
namespace taixu { | ||
|
||
struct World {}; | ||
|
||
}// namespace taixu | ||
|
||
#endif// ENGINE_SRC_RUNTIME_RESOURCE_CONVERTED_DATA_WORLD_HPP |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
// | ||
// Created by xmmmmmovo on 2023/7/23. | ||
// | ||
|
||
#ifndef ENGINE_SRC_RUNTIME_RESOURCE_JSON_WORLD_JSON_HPP | ||
#define ENGINE_SRC_RUNTIME_RESOURCE_JSON_WORLD_JSON_HPP | ||
|
||
#include <refl.hpp> | ||
|
||
#include <vector> | ||
|
||
#include "serializable.hpp" | ||
|
||
namespace taixu { | ||
|
||
struct World { | ||
struct Level { | ||
std::string level_name{}; | ||
std::string level_path{}; | ||
}; | ||
|
||
struct Global { | ||
std::string render{}; | ||
}; | ||
|
||
std::string name{}; | ||
Global global{}; | ||
std::vector<Level> levels{}; | ||
}; | ||
|
||
}// namespace taixu | ||
|
||
REFL_AUTO(type(taixu::World), field(name, taixu::ISerializableStr()), | ||
field(global, taixu::ISerializableObject()), | ||
field(levels, taixu::ISerializableList())) | ||
|
||
REFL_AUTO(type(taixu::World::Level), | ||
field(level_name, taixu::ISerializableStr()), | ||
field(level_path, taixu::ISerializableStr())) | ||
|
||
REFL_AUTO(type(taixu::World::Global), field(render, taixu::ISerializableStr())) | ||
|
||
#endif// ENGINE_SRC_RUNTIME_RESOURCE_JSON_WORLD_JSON_HPP |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.