Minecraftchest1
Documentation for different libraries I have created.
Classes | Static Public Member Functions | List of all members
Minecraftchest1.Utils Class Reference

Classes

class  InputErrorException
 

Static Public Member Functions

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)
 

Detailed Description

Definition at line 5 of file Exceptions.cs.

Member Function Documentation

◆ ArrayToString()

static string Minecraftchest1.Utils.ArrayToString ( string[]  Input,
char  Seperator 
)
inlinestatic

Definition at line 117 of file Utils.cs.

◆ Input()

static string Minecraftchest1.Utils.Input ( string  prompt)
inlinestatic

Asks for user input.

Parameters
promptThe 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
promptThe 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
messageString to print to Console.
colorColor 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
messageOptional message to print instead of "Press any key to continue...".
SeperatorWether 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

Definition at line 9 of file Utils.cs.

◆ StringToArray()

static string[] Minecraftchest1.Utils.StringToArray ( string  Input,
char[]  Seperators 
)
inlinestatic

Definition at line 112 of file Utils.cs.


The documentation for this class was generated from the following files: