- Core interfaces for modular engine system - Resource management and registry system - Module system with sequential execution - ImGui-based UI implementation - Intra-process I/O communication - Data tree structures for hierarchical data - Serialization framework - Task scheduler interface - Debug engine implementation 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
30 lines
597 B
C++
30 lines
597 B
C++
#pragma once
|
|
|
|
#include <nlohmann/json.hpp>
|
|
#include <string>
|
|
|
|
using json = nlohmann::json;
|
|
|
|
namespace warfactory {
|
|
|
|
class SerializationRegistry;
|
|
|
|
class ASerializable {
|
|
private:
|
|
std::string instance_id;
|
|
|
|
public:
|
|
ASerializable(const std::string& id);
|
|
virtual ~ASerializable();
|
|
|
|
const std::string& getInstanceId() const { return instance_id; }
|
|
|
|
virtual json serialize() const = 0;
|
|
virtual void deserialize(const json& data) = 0;
|
|
|
|
protected:
|
|
void registerForSerialization();
|
|
void unregisterFromSerialization();
|
|
};
|
|
|
|
} // namespace warfactory
|