Drag[en]gine Script Module DragonScript
1.21
|
Console containing system and game messages. More...
Public Member Functions | |
void | addError (String message, Exception exception) |
Add error message with exception trace. More... | |
void | addListener (ConsoleListener listener) |
Add listener. More... | |
void | addMessage (ConsoleMessage message) |
Add message. More... | |
void | forEachMessage (Block ablock) |
Visit messages with block with parameter ConsoleMessage. More... | |
int | getBufferSize () |
Buffer size. More... | |
ConsoleMessage | getMessage (int index) |
Message at index. More... | |
int | getMessageCount () |
Number of messages. More... | |
Console | new (int size) |
Create console with initial size. More... | |
void | removeListener (ConsoleListener listener) |
Remove listener. More... | |
void | setBufferSize (int size) |
Set buffer size. More... | |
Console containing system and game messages.
Listeners are resposible to display the console output if required.
void Dragengine.Utils.Console.addError | ( | String | message, |
Exception | exception | ||
) |
Add error message with exception trace.
void Dragengine.Utils.Console.addListener | ( | ConsoleListener | listener | ) |
Add listener.
void Dragengine.Utils.Console.addMessage | ( | ConsoleMessage | message | ) |
Add message.
void Dragengine.Utils.Console.forEachMessage | ( | Block | ablock | ) |
Visit messages with block with parameter ConsoleMessage.
int Dragengine.Utils.Console.getBufferSize | ( | ) |
Buffer size.
ConsoleMessage Dragengine.Utils.Console.getMessage | ( | int | index | ) |
Message at index.
int Dragengine.Utils.Console.getMessageCount | ( | ) |
Number of messages.
Console Dragengine.Utils.Console.new | ( | int | size | ) |
Create console with initial size.
void Dragengine.Utils.Console.removeListener | ( | ConsoleListener | listener | ) |
Remove listener.
void Dragengine.Utils.Console.setBufferSize | ( | int | size | ) |
Set buffer size.
If buffer size differs clears console then changes buffer size.