summaryrefslogtreecommitdiffstats
path: root/source/Root.h
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2013-10-08 20:12:34 +0200
committermadmaxoft <github@xoft.cz>2013-10-08 20:12:34 +0200
commita120507be027ba18d5443e76061b47e0c624f229 (patch)
tree6a4379b153bd4785b430cdc044c9947f2ac6c302 /source/Root.h
parentCleaned up cEntity's enums. (diff)
downloadcuberite-a120507be027ba18d5443e76061b47e0c624f229.tar
cuberite-a120507be027ba18d5443e76061b47e0c624f229.tar.gz
cuberite-a120507be027ba18d5443e76061b47e0c624f229.tar.bz2
cuberite-a120507be027ba18d5443e76061b47e0c624f229.tar.lz
cuberite-a120507be027ba18d5443e76061b47e0c624f229.tar.xz
cuberite-a120507be027ba18d5443e76061b47e0c624f229.tar.zst
cuberite-a120507be027ba18d5443e76061b47e0c624f229.zip
Diffstat (limited to '')
-rw-r--r--source/Root.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/source/Root.h b/source/Root.h
index e5197ce2b..2b15d3461 100644
--- a/source/Root.h
+++ b/source/Root.h
@@ -105,8 +105,18 @@ public:
/// Finds a player from a partial or complete player name and calls the callback - case-insensitive
bool FindAndDoWithPlayer(const AString & a_PlayerName, cPlayerListCallback & a_Callback); // >> EXPORTED IN MANUALBINDINGS <<
+ // tolua_begin
+
/// Returns the textual description of the protocol version: 49 -> "1.4.4". Provided specifically for Lua API
- static AString GetProtocolVersionTextFromInt(int a_ProtocolVersionNum); // tolua_export
+ static AString GetProtocolVersionTextFromInt(int a_ProtocolVersionNum);
+
+ /// Returns the amount of virtual RAM used, in KiB. Returns a negative number on error
+ static int GetVirtualRAMUsage(void);
+
+ /// Returns the amount of virtual RAM used, in KiB. Returns a negative number on error
+ static int GetPhysicalRAMUsage(void);
+
+ // tolua_end
private:
class cCommand