summaryrefslogtreecommitdiff
path: root/Runtime/Terrain/Tree.h
diff options
context:
space:
mode:
Diffstat (limited to 'Runtime/Terrain/Tree.h')
-rw-r--r--Runtime/Terrain/Tree.h36
1 files changed, 36 insertions, 0 deletions
diff --git a/Runtime/Terrain/Tree.h b/Runtime/Terrain/Tree.h
new file mode 100644
index 0000000..af4e069
--- /dev/null
+++ b/Runtime/Terrain/Tree.h
@@ -0,0 +1,36 @@
+#ifndef TREE_H
+#define TREE_H
+
+#include "Runtime/BaseClasses/GameObject.h"
+
+class MonoBehaviour;
+
+
+
+class Tree : public Unity::Component
+{
+public:
+public:
+ REGISTER_DERIVED_CLASS(Tree, Component)
+ DECLARE_OBJECT_SERIALIZE(Tree)
+
+ Tree(MemLabelId label, ObjectCreationMode mode);
+ // ~Tree(); declared by a macro
+
+ void SetTreeData (PPtr<MonoBehaviour> tree);
+ PPtr<MonoBehaviour> GetTreeData ();
+
+ static void InitializeClass ();
+ static void CleanupClass () {}
+
+ void OnWillRenderObject ();
+
+private:
+ UInt32 CalculateSupportedMessages ();
+
+ #if UNITY_EDITOR
+ PPtr<MonoBehaviour> m_TreeData;
+ #endif
+};
+
+#endif