summaryrefslogtreecommitdiffstats
path: root/Plugins/NewTest
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--Plugins/NewTest/main.lua17
-rw-r--r--Plugins/NewTest/tick.lua5
2 files changed, 22 insertions, 0 deletions
diff --git a/Plugins/NewTest/main.lua b/Plugins/NewTest/main.lua
new file mode 100644
index 000000000..cd8df03e5
--- /dev/null
+++ b/Plugins/NewTest/main.lua
@@ -0,0 +1,17 @@
+LOGINFO("main.lua!!")
+LOOLOL = "12345"
+PLUGIN = {}
+
+function Initialize( Plugin )
+ LOGINFO("Initialize in main.lua")
+ PLUGIN = Plugin
+
+ Plugin:SetName("LOLOL new plugin!")
+
+ PluginManager = cRoot:Get():GetPluginManager()
+ PluginManager:AddHook( Plugin, cPluginManager.E_PLUGIN_TICK )
+
+ LOGINFO("Plugin name is: " .. Plugin:GetName() )
+
+ return true
+end \ No newline at end of file
diff --git a/Plugins/NewTest/tick.lua b/Plugins/NewTest/tick.lua
new file mode 100644
index 000000000..69de13c65
--- /dev/null
+++ b/Plugins/NewTest/tick.lua
@@ -0,0 +1,5 @@
+LOGINFO("tick.lua!! ")
+
+function Tick( DeltaTime )
+ LOGINFO("Tick in tick.lua; LOOLOL = " .. LOOLOL .. " Plugin name = " .. PLUGIN:GetName() )
+end \ No newline at end of file