Added SetTicksUntilWeatherChange/GetTicksUntilWeatherChange. to set/get the amount of ticks before the weather changes. Added SendBlockChange to Lua to create "fake" blocks
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1572 0a769ca7-a7f5-676a-18bf-c427514a06d6
This commit is contained in:
parent
3370773c4b
commit
6835f21b8b
4417
source/Bindings.cpp
4417
source/Bindings.cpp
File diff suppressed because it is too large
Load Diff
@ -1,6 +1,6 @@
|
||||
/*
|
||||
** Lua binding: AllToLua
|
||||
** Generated automatically by tolua++-1.0.92 on 06/04/13 21:16:57.
|
||||
** Generated automatically by tolua++-1.0.92 on 06/09/13 19:37:21.
|
||||
*/
|
||||
|
||||
/* Exported function */
|
||||
|
@ -84,7 +84,7 @@ public:
|
||||
|
||||
void SendAttachEntity (const cEntity & a_Entity, const cEntity * a_Vehicle);
|
||||
void SendBlockAction (int a_BlockX, int a_BlockY, int a_BlockZ, char a_Byte1, char a_Byte2, BLOCKTYPE a_BlockType);
|
||||
void SendBlockChange (int a_BlockX, int a_BlockY, int a_BlockZ, BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta);
|
||||
void SendBlockChange (int a_BlockX, int a_BlockY, int a_BlockZ, BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta); // tolua_export
|
||||
void SendBlockChanges (int a_ChunkX, int a_ChunkZ, const sSetBlockVector & a_Changes);
|
||||
void SendChat (const AString & a_Message);
|
||||
void SendChunkData (int a_ChunkX, int a_ChunkZ, cChunkDataSerializer & a_Serializer);
|
||||
|
@ -78,9 +78,15 @@ public:
|
||||
return 0;
|
||||
}
|
||||
|
||||
int GetTicksUntilWeatherChange(void) const { return m_WeatherInterval; }
|
||||
Int64 GetWorldAge(void) const { return m_WorldAge; }
|
||||
Int64 GetTimeOfDay(void) const { return m_TimeOfDay; }
|
||||
|
||||
void SetTicksUntilWeatherChange(int a_WeatherInterval)
|
||||
{
|
||||
m_WeatherInterval = a_WeatherInterval;
|
||||
}
|
||||
|
||||
void SetTimeOfDay(Int64 a_TimeOfDay)
|
||||
{
|
||||
m_TimeOfDay = a_TimeOfDay;
|
||||
@ -188,8 +194,8 @@ public:
|
||||
unsigned int GetMaxPlayers(void) const {return m_MaxPlayers; } // tolua_export
|
||||
void SetMaxPlayers(int iMax); // tolua_export
|
||||
|
||||
void AddPlayer( cPlayer* a_Player );
|
||||
void RemovePlayer( cPlayer* a_Player );
|
||||
void AddPlayer( cPlayer* a_Player ); // tolua_export
|
||||
void RemovePlayer( cPlayer* a_Player ); // tolua_export
|
||||
|
||||
/// Calls the callback for each player in the list; returns true if all players processed, false if the callback aborted by returning true
|
||||
bool ForEachPlayer(cPlayerListCallback & a_Callback); // >> EXPORTED IN MANUALBINDINGS <<
|
||||
|
Loading…
Reference in New Issue
Block a user