This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| smutbook:classes:util:messagequeue [2023/08/06 20:32] – created lee | smutbook:classes:util:messagequeue [2023/08/06 20:33] (current) – lee | ||
|---|---|---|---|
| Line 7: | Line 7: | ||
| ===== MessageQueue.push( message ) ===== | ===== MessageQueue.push( message ) ===== | ||
| - | If the queue is enabled, push a message into the top of the queue.\\ | + | If the queue is enabled, push a message into the top of the queue. |
| **Returns: | **Returns: | ||
| ===== MessageQueue.shift() ===== | ===== MessageQueue.shift() ===== | ||
| - | If the queue is enabled, shift a message off the bottom of the queue.\\ | + | If the queue is enabled, shift a message off the bottom of the queue. |
| **Returns: | **Returns: | ||
| ===== MessageQueue.dump( separator=" | ===== MessageQueue.dump( separator=" | ||
| - | Dump the whole queue as a string, using the given separator. | + | Dump the whole queue as a string, using the given separator. |
| **Returns: | **Returns: | ||
| Line 23: | Line 26: | ||
| If the queue is already enabled, to nothing. | If the queue is already enabled, to nothing. | ||
| + | |||
| **Returns: | **Returns: | ||
| Line 28: | Line 32: | ||
| Disable and clear the queue. | Disable and clear the queue. | ||
| + | |||
| **Returns: | **Returns: | ||