More refactoring.
This commit is contained in:
@ -33,12 +33,12 @@ namespace IngameScript
|
||||
// Either use a reference to that instance directly where needed or use it to create PrefixedConsoles.
|
||||
public class MainConsole : IConsole
|
||||
{
|
||||
private Program _program;
|
||||
private int _maxLines;
|
||||
private List<string> _buffer;
|
||||
private StringBuilder _builder;
|
||||
private string _programName;
|
||||
private List<string> _buffer = new List<string>();
|
||||
private StringBuilder _builder = new StringBuilder();
|
||||
private int _tickCount = 0;
|
||||
private Program _program;
|
||||
private string _programName;
|
||||
private int _maxLines;
|
||||
|
||||
private const int DefaultMaxLines = 10;
|
||||
|
||||
@ -46,8 +46,6 @@ namespace IngameScript
|
||||
{
|
||||
_program = program;
|
||||
_programName = programName;
|
||||
_buffer = new List<string>();
|
||||
_builder = new StringBuilder();
|
||||
|
||||
// Check the PB's custom data for a maxlines directive.
|
||||
_program.Ini.TryParse(program.Me.CustomData);
|
||||
|
Reference in New Issue
Block a user