summaryrefslogtreecommitdiff
path: root/src/simulation/elements/Element.h
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-08-29 21:04:07 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-08-29 21:04:07 (GMT)
commit58dc2559aad5abb3ae23f89155a4cdf37e0de885 (patch)
treea7a452483b8875f3a95145578d7d45c36d53b52d /src/simulation/elements/Element.h
parent3e78f64da8265816e973c6047fc9985193311e31 (diff)
downloadpowder-58dc2559aad5abb3ae23f89155a4cdf37e0de885.zip
powder-58dc2559aad5abb3ae23f89155a4cdf37e0de885.tar.gz
Implement retrieval of element properties
Diffstat (limited to 'src/simulation/elements/Element.h')
-rw-r--r--src/simulation/elements/Element.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/simulation/elements/Element.h b/src/simulation/elements/Element.h
index 9df38d7..b51bddc 100644
--- a/src/simulation/elements/Element.h
+++ b/src/simulation/elements/Element.h
@@ -4,6 +4,7 @@
#include "simulation/Simulation.h"
#include "graphics/Renderer.h"
#include "simulation/Elements.h"
+#include "simulation/StructProperty.h"
class Simulation;
class Renderer;
@@ -53,6 +54,10 @@ public:
virtual ~Element() {}
static int defaultGraphics(GRAPHICS_FUNC_ARGS);
static int legacyUpdate(UPDATE_FUNC_ARGS);
+
+ /** Returns a list of properties, their type and offset within the structure that can be changed
+ by higher-level processes refering to them by name such as Lua or the property tool **/
+ static std::vector<StructProperty> GetProperties();
};
#endif