|
| static void | Seperator (int length=24, char character='-') |
| |
| static void | Pause (string Message="Press any key to continue...", bool Seperator=false) |
| |
| static string | Input (string prompt) |
| |
| static double | InputDouble (string prompt) |
| |
| static string[] | StringToArray (string Input, char[] Seperators) |
| |
| static string | ArrayToString (string[] Input, char Seperator) |
| |
| static void | OutputColor (string? message, ConsoleColor color=ConsoleColor.White) |
| |
Definition at line 5 of file Exceptions.cs.
◆ ArrayToString()
| static string Minecraftchest1.Utils.ArrayToString |
( |
string[] |
Input, |
|
|
char |
Seperator |
|
) |
| |
|
inlinestatic |
◆ Input()
| static string Minecraftchest1.Utils.Input |
( |
string |
prompt | ) |
|
|
inlinestatic |
Asks for user input.
- Parameters
-
| prompt | The message to show when asking for input. Dispalyed on the same line of the input prompt. |
- Returns
- Returns the input from the user.
Definition at line 43 of file Utils.cs.
◆ InputDouble()
| static double Minecraftchest1.Utils.InputDouble |
( |
string |
prompt | ) |
|
|
inlinestatic |
Asks for user input. Returns a double.
Returns 0 when no user input is provided.
- Parameters
-
| prompt | The message to show when asking for input. Dispalyed on the same line of the input prompt. |
- Returns
- Returns the input from the user.
Definition at line 60 of file Utils.cs.
◆ OutputColor()
| static void Minecraftchest1.Utils.OutputColor |
( |
string? |
message, |
|
|
ConsoleColor |
color = ConsoleColor.White |
|
) |
| |
|
inlinestatic |
Outputs text in the specified color.
- Parameters
-
| message | String to print to Console. |
| color | Color to print text in |
Definition at line 131 of file Utils.cs.
◆ Pause()
| static void Minecraftchest1.Utils.Pause |
( |
string |
Message = "Press any key to continue...", |
|
|
bool |
Seperator = false |
|
) |
| |
|
inlinestatic |
Waits for user.
- Parameters
-
| message | Optional message to print instead of "Press any key to continue...". |
| Seperator | Wether to print a seperator before pause message. |
Definition at line 18 of file Utils.cs.
◆ Seperator()
| static void Minecraftchest1.Utils.Seperator |
( |
int |
length = 24, |
|
|
char |
character = '-' |
|
) |
| |
|
inlinestatic |
◆ StringToArray()
| static string[] Minecraftchest1.Utils.StringToArray |
( |
string |
Input, |
|
|
char[] |
Seperators |
|
) |
| |
|
inlinestatic |
The documentation for this class was generated from the following files: