C# Class InteractiveCSharp.Plugin

Inheritance: SharpMod.BasicPlugin
Show file Open project: txdv/sharpmod

Public Methods

Method Description
Load ( ) : void

Protected Methods

Method Description
Evaluate ( string input ) : string

Executes a piece of code and returns the output

EvaluateGoldSrc ( Player p, string code ) : void

This function evaluates a piece of code and prints the output linewise to the chat of the player

Private Methods

Method Description
EscapeChar ( TextWriter output, char c ) : void
EscapeString ( string s ) : string
HandleSayExec ( Player player, Command command ) : void
PrettyPrint ( TextWriter output, object result ) : void
p ( TextWriter output, string s ) : void

Method Details

Evaluate() protected method

Executes a piece of code and returns the output
protected Evaluate ( string input ) : string
input string /// C# code ///
return string

EvaluateGoldSrc() protected method

This function evaluates a piece of code and prints the output linewise to the chat of the player
protected EvaluateGoldSrc ( Player p, string code ) : void
p SharpMod.Player /// A player instance ///
code string /// A command ///
return void

Load() public method

public Load ( ) : void
return void