From 3be48a2d5a8988f5df8b8776a7d4d534871378b3 Mon Sep 17 00:00:00 2001 From: "admin@omencraft.com" Date: Wed, 9 Nov 2011 23:24:51 +0000 Subject: Added random weather that persists per world. Also added SetWeather, GetWeather, and CastThunderbolt to lua bindings. git-svn-id: http://mc-server.googlecode.com/svn/trunk@83 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/cWorld.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'source/cWorld.h') diff --git a/source/cWorld.h b/source/cWorld.h index cff627d50..7278fa0a4 100644 --- a/source/cWorld.h +++ b/source/cWorld.h @@ -31,7 +31,6 @@ public: std::vector m_RSList; - static cWorld* GetWorld(); //tolua_export // Return time in seconds @@ -130,6 +129,11 @@ public: void InitializeSpawn(); + void CastThunderbolt ( int, int, int ); //tolua_export + void SetWeather ( int ); //tolua_export + int GetWeather() { return m_Weather; }; //tolua_export + + private: friend class cRoot; cWorld( const char* a_WorldName ); @@ -172,4 +176,5 @@ private: float m_SpawnMonsterRate; unsigned int m_WorldSeed; + int m_Weather; }; //tolua_export -- cgit v1.2.3