C# Class kOS.Safe.Utilities.Debug

显示文件 Open project: KSP-KOS/KOS

Public Methods

Method Description
AddNagMessage ( NagType nag, string message ) : void

Add a string message that should be shown on the terminal the next time it shows its Welcome message. It is possible to chain several of these messages together, but remember that the terminal window is small. Keep the message short so there's room for other nag messages too.

GetCodeFragment ( List codes ) : string

This is copied almost verbatim from ProgramContext, It's here to help debug.

GetPendingNags ( ) : List

Gets a list of all the pending nag messages, and in the process of doing that it clears out any that were set to just NAGONCE.

Private Methods

Method Description
Debug ( ) : System.Collections.Generic

Method Details

AddNagMessage() public static method

Add a string message that should be shown on the terminal the next time it shows its Welcome message. It is possible to chain several of these messages together, but remember that the terminal window is small. Keep the message short so there's room for other nag messages too.
public static AddNagMessage ( NagType nag, string message ) : void
nag NagType Should the message be shown once, or keep being shown /// every time the terminal welcome message appears?
message string Message to print
return void

GetCodeFragment() public static method

This is copied almost verbatim from ProgramContext, It's here to help debug.
public static GetCodeFragment ( List codes ) : string
codes List
return string

GetPendingNags() public static method

Gets a list of all the pending nag messages, and in the process of doing that it clears out any that were set to just NAGONCE.
public static GetPendingNags ( ) : List
return List