public override TwineVar this[string name] { get { switch(name) { case "wait": return wait; case "again": return again; case "click": return click; case "anxiety": return anxiety; case "dream": return dream; default: throw new KeyNotFoundException(string.Format("There is no variable with the name '{0}'.", name)); } } set { switch(name) { case "wait": wait = value; break; case "again": again = value; break; case "click": click = value; break; case "anxiety": anxiety = value; break; case "dream": dream = value; break; default: throw new KeyNotFoundException(string.Format("There is no variable with the name '{0}'.", name)); } } }
IEnumerable<TwineOutput> passageExecute_1() { wait = 1; yield return new TwineText(@"..."); yield return new TwineText(@""); if (! again) { wait = 2; yield return new TwineText(@"? ?"); yield return new TwineText(@""); } wait = 1.5; yield return new TwineText(@"My alarm clock."); wait = 1.5; yield return new TwineLink(@"Time to get up.", @"Time to get up.", @"getUp", null, null); yield return new TwineLink(@"snooze", @"", @"snooze", null, null); again=true; }
IEnumerable<TwineOutput> passageExecute_7() { if (dream == "sea") { dream = "street"; } else if (dream == "street") { dream = "sea"; } else { dream = either("sea", "street"); } yield return new TwineDisplay(dream); }
IEnumerable<TwineOutput> passageExecute_9() { yield return new TwineText(@"She knows it."); click = true; yield return new TwineText(@"She looks at you,"); yield return new TwineText(@"and she knows it."); yield return new TwineText(@"Pretends not to."); yield return new TwineText(@"She smiles."); yield return new TwineText(@"She's kind."); yield return new TwineText(@"You're not."); yield return new TwineText(@"You're shit."); yield return new TwineText(@"A little shit,"); click = false; yield return new TwineLink(@"continue", @"", @"alarm", null, null); }
IEnumerable<TwineOutput> passageExecute_4() { click = true; yield return new TwineText(@"i can breath"); yield return new TwineText(@""); yield return new TwineText(@"i can fly"); yield return new TwineText(@""); yield return new TwineText(@"i can't see the sky."); yield return new TwineText(@""); yield return new TwineText(@"it's warm"); yield return new TwineText(@""); yield return new TwineText(@"just go deep"); yield return new TwineText(@""); yield return new TwineText(@"i will always sleep"); click = false; yield return new TwineLink(@"continue", @"", @"alarm", null, null); }
IEnumerable<TwineOutput> passageExecute_6() { if (anxiety == "work") { anxiety = "relationship"; } else if (anxiety == "relationship") { anxiety = "work"; } else { anxiety = either("work", "relationship"); } yield return new TwineDisplay(anxiety); }
IEnumerable<TwineOutput> passageExecute_3() { wait = 1; yield return new TwineText(either("I can't handle this right now.", "Keep my eyes closed.")); yield return new TwineLink(@"dream", @"Dream", @"dreaming", null, null); yield return new TwineLink(@"anxiety", @"Anxiety", @"anxiety", null, null); yield return new TwineLink(@"her", @"Her", @"her", null, null); }
IEnumerable<TwineOutput> passageExecute_2() { yield return new TwineText(either("here it goes again", "out of coffee", "i can't breath", "must leave at 7:00")); yield return new TwineText(@""); yield return new TwineText(@""); wait = 4; yield return new TwineText(@"THE END"); }
IEnumerable<TwineOutput> passageExecute_15() { wait = 1; yield return new TwineText(@"My bag is empty."); yield return new TwineText(@"No, it's not."); yield return new TwineText(@"There's a half-eaten sandwich."); yield return new TwineText(@"It's hers."); yield return new TwineLink(@"continue", @"", @"street3", null, null); }
IEnumerable<TwineOutput> passageExecute_14() { wait = 1; yield return new TwineText(@"Maybe she'll want it?"); yield return new TwineText(@"Her lips touched it"); yield return new TwineText(@""); yield return new TwineLink(@"continue", @"", @"alarm", null, null); }
IEnumerable<TwineOutput> passageExecute_13() { wait = 1; yield return new TwineText(@"I'm late. "); yield return new TwineText(@"Where are my keys?"); yield return new TwineText(@"Shit."); yield return new TwineLink(@"continue", @"", @"street2", null, null); }