From dd030fa8920d8cf9c863d2ffdcd791edc1749172 Mon Sep 17 00:00:00 2001 From: madmaxoft Date: Mon, 19 Aug 2013 09:28:22 +0200 Subject: Implemented the OnWorldTick hook. Triggerred for each world every time it ticks, parameters are the cWorld and the previous tick length (a_Dt) --- source/Plugin.h | 1 + 1 file changed, 1 insertion(+) (limited to 'source/Plugin.h') diff --git a/source/Plugin.h b/source/Plugin.h index d7d91eafc..2595b9470 100644 --- a/source/Plugin.h +++ b/source/Plugin.h @@ -94,6 +94,7 @@ public: virtual bool OnUpdatingSign (cWorld * a_World, int a_BlockX, int a_BlockY, int a_BlockZ, AString & a_Line1, AString & a_Line2, AString & a_Line3, AString & a_Line4, cPlayer * a_Player) = 0; virtual bool OnWeatherChanged (cWorld & a_World) = 0; virtual bool OnWeatherChanging (cWorld & a_World, eWeather & a_NewWeather) = 0; + virtual bool OnWorldTick (cWorld & a_World, float a_Dt) = 0; /** Handles the command split into a_Split, issued by player a_Player. Command permissions have already been checked. -- cgit v1.2.3