public SaveRestoreGameBrowseControl(AgiInterpreter interpreter) { this.Interpreter = interpreter ?? throw new ArgumentNullException(nameof(interpreter)); this.Title = string.Empty; this.descriptions = new string[0]; this.slotNumbers = new int[0]; }
public InputBoxControl(AgiInterpreter interpreter) { this.Interpreter = interpreter ?? throw new ArgumentNullException(nameof(interpreter)); this.Title = string.Empty; this.Text = string.Empty; this.MaxTextLength = DefaultMaxTextLength; this.Width = DefaultWindowWidth; }
public ListBoxControl(AgiInterpreter interpreter) { this.Interpreter = interpreter ?? throw new ArgumentNullException(nameof(interpreter)); this.Title = string.Empty; this.Width = 10; this.Height = 10; this.items = new string[0]; }
/* * Interpreter.State variables used * - TextForeground * - TextBackground * - TextCombine * - Variables (for string formatting) * - Strings (for string formatting) * - WindowRowMin */ public WindowManager(AgiInterpreter interpreter) { this.Interpreter = interpreter ?? throw new ArgumentNullException(nameof(interpreter)); this.MessageState = new MessageState(); this.textAttributeStack = new Stack <TextColor>(); this.textPositionStack = new Stack <TextPosition>(); this.textPosition = new TextPosition(0, 0); }
void ISavedGameSerializer.LoadFrom(AgiInterpreter interpreter, Stream stream) { if (stream == null) { throw new ArgumentNullException(nameof(stream)); } this.Interpreter = interpreter ?? throw new ArgumentNullException(nameof(interpreter)); var settings = new XmlReaderSettings { IgnoreComments = true, IgnoreProcessingInstructions = true, IgnoreWhitespace = true, }; var reader = XmlReader.Create(stream, settings); this.DeserializeGame(reader); }
void ISavedGameSerializer.SaveTo(AgiInterpreter interpreter, string description, Stream stream) { if (description == null) { throw new ArgumentNullException(nameof(description)); } if (stream == null) { throw new ArgumentNullException(nameof(stream)); } this.Interpreter = interpreter ?? throw new ArgumentNullException(nameof(interpreter)); var xmlWriter = new XmlTextWriter(stream, Encoding.UTF8) { Formatting = Formatting.Indented, }; this.SerializeGame(xmlWriter, description); xmlWriter.Flush(); }
public GameControl(AgiInterpreter interpreter) { this.Interpreter = interpreter ?? throw new ArgumentNullException(nameof(interpreter)); this.TraceControl = new TraceControl(interpreter); this.StatusLineControl = new StatusLineControl(interpreter); switch (interpreter.Preferences.InputMode) { case UserInputMode.Classic: this.InputControl = new ClassicInputControl(interpreter); break; case UserInputMode.WordList: this.InputControl = new WordListInputControl(interpreter); break; case UserInputMode.InputBox: this.InputControl = new PopupInputControl(interpreter); break; } this.mouseDownStack = new Stack <MouseDown>(); }
public SoundManager(AgiInterpreter interpreter) { this.Interpreter = interpreter ?? throw new ArgumentNullException(nameof(interpreter)); }
internal void SetInterpreter(AgiInterpreter interpreter) { this.interpreter = interpreter; }
public PopupInputControl(AgiInterpreter interpreter) : base(interpreter) { }
public WordListInputControl(AgiInterpreter interpreter) : base(interpreter) { }
public InventoryControl(AgiInterpreter interpreter) { this.Interpreter = interpreter ?? throw new ArgumentNullException(nameof(interpreter)); }
public TextBoxControl(AgiInterpreter interpreter) { this.Interpreter = interpreter ?? throw new ArgumentNullException(nameof(interpreter)); this.Text = string.Empty; this.MaxTextLength = 10; }
protected InputControl(AgiInterpreter interpreter) { this.Interpreter = interpreter ?? throw new ArgumentNullException(nameof(interpreter)); this.Input = string.Empty; this.InputPrevious = string.Empty; }
/// <summary> /// Initializes a new instance of the <see cref="ScriptManager"/> class. /// </summary> /// <param name="interpreter">Interpreter.</param> /// <param name="error">Error handler.</param> public ScriptManager(AgiInterpreter interpreter, AgiError error) { this.Interpreter = interpreter ?? throw new ArgumentNullException(nameof(interpreter)); this.Error = error ?? throw new ArgumentNullException(nameof(error)); }
public void CreateKernel() { this.interpreter = new AgiInterpreter(null, null, null); this.interpreter.CreateState(); this.kernel = this.interpreter; }
public ClassicInputControl(AgiInterpreter interpreter) : base(interpreter) { }
public SavedGameManager(AgiInterpreter interpreter, ISavedGameSerializer gameSerializer) { this.Interpreter = interpreter ?? throw new ArgumentNullException(nameof(interpreter)); this.GameSerializer = gameSerializer ?? throw new ArgumentNullException(nameof(gameSerializer)); this.AutoSaveName = string.Empty; }
public SaveRestoreFolderBrowseControl(AgiInterpreter interpreter) { this.Interpreter = interpreter ?? throw new ArgumentNullException(nameof(interpreter)); this.Title = string.Empty; this.FolderPath = string.Empty; }
public TraceControl(AgiInterpreter interpreter) { this.Interpreter = interpreter ?? throw new ArgumentNullException(nameof(interpreter)); this.TraceState = TraceState.Uninitialized; }
public GameSelectionControl(AgiInterpreter interpreter) { this.Interpreter = interpreter ?? throw new ArgumentNullException(nameof(interpreter)); }
public StatusLineControl(AgiInterpreter interpreter) { this.Interpreter = interpreter ?? throw new ArgumentNullException(nameof(interpreter)); }
void ISoundPcmDriver.SetInterpreter(AgiInterpreter interpreter) { this.interpreter = interpreter; }
public PromptControl(AgiInterpreter interpreter) { this.Interpreter = interpreter ?? throw new ArgumentNullException(nameof(interpreter)); this.Text = string.Empty; }
public void SetInterpreter(AgiInterpreter interpreter) { this.interpreter = interpreter; this.pcmDriver.SetInterpreter(interpreter); }