public Environment(Random rng) { this.Rng = rng; this.Names = new BitsyGame.NameTable(this); this.ScriptInterpreter = new ScriptInterpreter(this); this.SceneRenderer = new SceneRenderer(this); this.DialogRenderer = new DialogRenderer(this); this.DialogBuffer = new DialogBuffer(); this.Palettes[BitsyGame.ID_DEFAULT] = new BitsyGame.Palette() { Id = BitsyGame.ID_DEFAULT, Name = BitsyGame.ID_DEFAULT, Colors = new BitsyGame.Color[] { new BitsyGame.Color(0, 0, 0), new BitsyGame.Color(255, 0, 0), new BitsyGame.Color(255, 255, 255), } }; }
public override void Eval(Environment env, Action <object> onReturn) { ScriptInterpreter.EvalOperator(env, this.Operator, this.Left, this.Right, onReturn); }