From cabecb7fa937b5e4efa859ea62722468f91a5089 Mon Sep 17 00:00:00 2001 From: oy Date: Wed, 18 Aug 2010 00:06:00 +0200 Subject: added output level for console print function, categorised the debug messages and merged them into the new functionality. Closes #8 --- src/engine/console.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/engine/console.h') 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); -- cgit 1.4.1