C++ Compilation!

This commit is contained in:
Anemunt
2025-12-12 00:06:21 -05:00
parent a7c89193b4
commit ee90559e8c
14 changed files with 865 additions and 10 deletions

View File

@@ -78,6 +78,17 @@ enum class ConsoleMessageType {
Success
};
struct ScriptSetting {
std::string key;
std::string value;
};
struct ScriptComponent {
std::string path;
std::vector<ScriptSetting> settings;
std::string lastBinaryPath;
};
class SceneObject {
public:
std::string name;
@@ -102,6 +113,7 @@ public:
LightComponent light; // Only used when type is a light
CameraComponent camera; // Only used when type is camera
PostFXSettings postFx; // Only used when type is PostFXNode
std::vector<ScriptComponent> scripts;
SceneObject(const std::string& name, ObjectType type, int id)
: name(name), type(type), position(0.0f), rotation(0.0f), scale(1.0f), id(id) {}