private void BuildTajLevelSave() { TajLevelLinker tjl = new TajLevelLinker(); tjl.SetRedCleared((string)variablesToBuild.Peek()["RedCleared"]); tjl.SetBlueCleared((string)variablesToBuild.Peek()["BlueCleared"]); tjl.SetTealCleared((string)variablesToBuild.Peek()["TealCleared"]); tjl.SetYellowCleared((string)variablesToBuild.Peek()["YellowCleared"]); tjl.SetPurpleCleared((string)variablesToBuild.Peek()["PurpleCleared"]); tjl.SetGreenCleared((string)variablesToBuild.Peek()["GreenCleared"]); tjl.SetOrangeCleared((string)variablesToBuild.Peek()["OrangeCleared"]); tjl.SetAnyCleared((string)variablesToBuild.Peek()["AnyCleared"]); tjl.SetRowCleared((string)variablesToBuild.Peek()["RowCleared"]); tjl.SetGame((ClassicTetrisGame)variablesToBuild.Peek()["Game"]); tjl.SetFlashlight((bool)variablesToBuild.Peek()["Flashlight"]); if (variablesToBuild.Peek().ContainsKey("Text")) tjl.SetText((String)variablesToBuild.Peek()["Text"]); else tjl.SetText(""); tjl.SetParser((TajParser)variablesToBuild.Peek()["Parser"]); tjl.OnStart((string)variablesToBuild.Peek()["Start"]); tjl.SetWorld((World)variablesToBuild.Peek()["World"]); buildStack.Push(tjl); currentClass.Pop(); variablesToBuild.Pop(); }