C# Class MiningGameServer.ServerConsole

Show file Open project: geel9/Minor-Destruction

Public Properties

Property Type Description
OnConsoleOutput Action
commands List
variables List

Public Methods

Method Description
AddConCommand ( string name, string description, Action lambda, 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
ConsoleInput ( string input2, bool silent = false ) : void
Consume ( string input ) : bool
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
IsCommand ( string command ) : bool
IsVariable ( string var ) : bool
ListToString ( IEnumerable list, string delimiter, int limit = 1000, string breakString = "..." ) : string
Log ( string log ) : 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, Action lambda, long flags ) : void
name string
description string
lambda Action
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

ConsoleInput() public static method

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

Consume() public static method

public static Consume ( string input ) : bool
input string
return bool

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 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 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

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

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

OnConsoleOutput public static property

public static Action OnConsoleOutput
return Action

commands public static property

public static List commands
return List

variables public static property

public static List variables
return List