about summary refs log tree commit diff
path: root/src/engine/console.h
diff options
context:
space:
mode:
authoroy <Tom_Adams@web.de>2010-08-18 00:06:00 +0200
committeroy <Tom_Adams@web.de>2010-08-18 00:06:00 +0200
commitcabecb7fa937b5e4efa859ea62722468f91a5089 (patch)
treed9da92814dd049dfef7bdcfa9069955504341b8c /src/engine/console.h
parent16f201794de61e237b4a7644d28f043dc1b987bb (diff)
downloadzcatch-cabecb7fa937b5e4efa859ea62722468f91a5089.tar.gz
zcatch-cabecb7fa937b5e4efa859ea62722468f91a5089.zip
added output level for console print function, categorised the debug messages and merged them into the new functionality. Closes #8
Diffstat (limited to 'src/engine/console.h')
-rw-r--r--src/engine/console.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/engine/console.h b/src/engine/console.h
index 05034734..80a995c3 100644
--- a/src/engine/console.h
+++ b/src/engine/console.h
@@ -8,6 +8,13 @@ class IConsole : public IInterface
 	MACRO_INTERFACE("console", 0)
 public:
 
+	enum
+	{
+		OUTPUT_LEVEL_STANDARD=0,
+		OUTPUT_LEVEL_ADDINFO,
+		OUTPUT_LEVEL_DEBUG
+	};
+
 	// TODO: rework this interface to reduce the amount of virtual calls
 	class IResult
 	{
@@ -51,7 +58,7 @@ public:
 	virtual void ExecuteFile(const char *pFilename) = 0;
 	
 	virtual void RegisterPrintCallback(FPrintCallback pfnPrintCallback, void *pUserData) = 0;
-	virtual void Print(const char *pStr) = 0;
+	virtual void Print(int Level, const char *pFrom, const char *pStr) = 0;
 };
 
 extern IConsole *CreateConsole(int FlagMask);