C# Class kOS.Safe.Utilities.Debug

Afficher le fichier Open project: KSP-KOS/KOS

Méthodes publiques

Méthode 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

Méthode Description
Debug ( ) : System.Collections.Generic

Method Details

AddNagMessage() public static méthode

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
Résultat void

GetCodeFragment() public static méthode

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

GetPendingNags() public static méthode

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
Résultat List