summaryrefslogtreecommitdiffstats
path: root/src/Plugin.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Plugin.hpp')
-rw-r--r--src/Plugin.hpp19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/Plugin.hpp b/src/Plugin.hpp
new file mode 100644
index 0000000..a849f5c
--- /dev/null
+++ b/src/Plugin.hpp
@@ -0,0 +1,19 @@
+#pragma once
+
+#include <string>
+
+#include "Vector.hpp"
+
+class BlockInfo;
+
+namespace PluginSystem {
+ void Init();
+
+ void Execute(const std::string &luaCode, bool except = false);
+
+ void CallOnChangeState(std::string newState);
+
+ void CallOnTick(double deltaTime);
+
+ BlockInfo RequestBlockInfo(Vector blockPos);
+} \ No newline at end of file