Nameless Engine
Loading...
Searching...
No Matches
EnvironmentNode.h
1#pragma once
2
3// Custom.
4#include "game/node/Node.h"
5#include "math/GLMath.hpp"
6
7#include "EnvironmentNode.generated.h"
8
9namespace ne RNAMESPACE() {
11 class RCLASS(Guid("69326ac8-9105-446a-8d8a-9e3c12eeccef")) EnvironmentNode : public Node {
12 public:
14
20 EnvironmentNode(const std::string& sNodeName);
21
22 virtual ~EnvironmentNode() override = default;
23
29 void setAmbientLight(const glm::vec3& ambientLight);
30
36 glm::vec3 getAmbientLight() const;
37
38 protected:
51 virtual void onSpawning() override;
52
62 virtual void onDespawning() override;
63
64 private:
66 RPROPERTY(Serialize)
67 glm::vec3 ambientLight = glm::vec3(0.0F, 0.0F, 0.0F);
68
69 ne_EnvironmentNode_GENERATED
70 };
71}
72
73File_EnvironmentNode_GENERATED
Definition: EnvironmentNode.h:11
Definition: GuidProperty.h:30
Definition: Node.h:39
Definition: SerializeProperty.h:42