C# Class MiningGame.Code.Managers.ConsoleManager

Mostra file Open project: geel9/Minor-Destruction

Public Properties

Property Type Description
Commands List
Variables List
lines int
logNum int
offset int
output string

Public Methods

Method Description
AddConCommand ( string name, string description, System.Action lambda, long flags ) : void
AddConCommandArgs ( string name, string description, Action lambda, int numArguments, long flags ) : void
AddConCommandArgsMinMax ( string name, string description, Action lambda, int minArguments, int maxArguments, long flags ) : void
AddConCommandArgsMult ( string name, string description, Action lambda, int argumentNums, long flags ) : void
AddConVar ( string name, string description, string DefaultValue, Action lambda = null, long flags ) : void
Align ( string one, string two, int dist, string delimiter = " " ) : string
ConsoleInit ( ) : void
ConsoleInput ( string input2, bool silent = false ) : void
ExecuteCommand ( string name, string arguments ) : void
ExecuteVariable ( string name, string arguments ) : void
GetCommand ( string name ) : ConCommand
GetFlagString ( string name ) : string
GetFlags ( string name ) : long
GetVariable ( string name ) : Convar
GetVariableBool ( string name ) : bool
GetVariableDouble ( string name ) : double
GetVariableFloat ( string name ) : float
GetVariableInt ( string name ) : int
GetVariableValue ( string name ) : string
InitConsole ( ) : void
IsCommand ( string command ) : bool
IsVariable ( string var ) : bool
ListToString ( IEnumerable list, string delimiter, int limit = 1000, string breakString = "..." ) : string
Log ( string log ) : void
Log ( string log, Color color ) : void
RemoveFromList ( string list, string remove ) : string[]
SetVariableValue ( string name, string value ) : void
SplitConsoleInputArguments ( string input ) : string[]
SplitConsoleInputSemicolons ( string input ) : string[]

Method Details

AddConCommand() public static method

public static AddConCommand ( string name, string description, System.Action lambda, long flags ) : void
name string
description string
lambda System.Action
flags long
return void

AddConCommandArgs() public static method

public static AddConCommandArgs ( string name, string description, Action lambda, int numArguments, long flags ) : void
name string
description string
lambda Action
numArguments int
flags long
return void

AddConCommandArgsMinMax() public static method

public static AddConCommandArgsMinMax ( string name, string description, Action lambda, int minArguments, int maxArguments, long flags ) : void
name string
description string
lambda Action
minArguments int
maxArguments int
flags long
return void

AddConCommandArgsMult() public static method

public static AddConCommandArgsMult ( string name, string description, Action lambda, int argumentNums, long flags ) : void
name string
description string
lambda Action
argumentNums int
flags long
return void

AddConVar() public static method

public static AddConVar ( string name, string description, string DefaultValue, Action lambda = null, long flags ) : void
name string
description string
DefaultValue string
lambda Action
flags long
return void

Align() public static method

public static Align ( string one, string two, int dist, string delimiter = " " ) : string
one string
two string
dist int
delimiter string
return string

ConsoleInit() public static method

public static ConsoleInit ( ) : void
return void

ConsoleInput() public static method

public static ConsoleInput ( string input2, bool silent = false ) : void
input2 string
silent bool
return void

ExecuteCommand() public static method

public static ExecuteCommand ( string name, string arguments ) : void
name string
arguments string
return void

ExecuteVariable() public static method

public static ExecuteVariable ( string name, string arguments ) : void
name string
arguments string
return void

GetCommand() public static method

public static GetCommand ( string name ) : ConCommand
name string
return MiningGame.Code.Structs.ConCommand

GetFlagString() public static method

public static GetFlagString ( string name ) : string
name string
return string

GetFlags() public static method

public static GetFlags ( string name ) : long
name string
return long

GetVariable() public static method

public static GetVariable ( string name ) : Convar
name string
return MiningGame.Code.Structs.Convar

GetVariableBool() public static method

public static GetVariableBool ( string name ) : bool
name string
return bool

GetVariableDouble() public static method

public static GetVariableDouble ( string name ) : double
name string
return double

GetVariableFloat() public static method

public static GetVariableFloat ( string name ) : float
name string
return float

GetVariableInt() public static method

public static GetVariableInt ( string name ) : int
name string
return int

GetVariableValue() public static method

public static GetVariableValue ( string name ) : string
name string
return string

InitConsole() public static method

public static InitConsole ( ) : void
return void

IsCommand() public static method

public static IsCommand ( string command ) : bool
command string
return bool

IsVariable() public static method

public static IsVariable ( string var ) : bool
var string
return bool

ListToString() public static method

public static ListToString ( IEnumerable list, string delimiter, int limit = 1000, string breakString = "..." ) : string
list IEnumerable
delimiter string
limit int
breakString string
return string

Log() public static method

public static Log ( string log ) : void
log string
return void

Log() public static method

public static Log ( string log, Color color ) : void
log string
color Color
return void

RemoveFromList() public static method

public static RemoveFromList ( string list, string remove ) : string[]
list string
remove string
return string[]

SetVariableValue() public static method

public static SetVariableValue ( string name, string value ) : void
name string
value string
return void

SplitConsoleInputArguments() public static method

public static SplitConsoleInputArguments ( string input ) : string[]
input string
return string[]

SplitConsoleInputSemicolons() public static method

public static SplitConsoleInputSemicolons ( string input ) : string[]
input string
return string[]

Property Details

Commands public_oe static_oe property

public static List Commands
return List

Variables public_oe static_oe property

public static List Variables
return List

lines public_oe static_oe property

public static int lines
return int

logNum public_oe static_oe property

public static int logNum
return int

offset public_oe static_oe property

public static int offset
return int

output public_oe static_oe property

public static string output
return string