예제 #1
0
 protected Object()
 {
     beforeRoutines = new Dictionary <Type, Func <bool> >();
     afterRoutines  = new Dictionary <Type, Func <bool> >();
     Synonyms       = new Synonyms();
     Article        = "a";
 }
예제 #2
0
 protected void SetDirection(Func <Room, Room> mover, params string[] synonyms)
 {
     Name    = synonyms.First();
     getRoom = mover;
     Synonyms.Are(synonyms);
 }
예제 #3
0
 protected void SetDirection(Expression <Func <Room, Room> > x, params string[] synonyms)
 {
     getRoom = x.Compile();
     Synonyms.Are(synonyms);
     Grammars.Add(Grammar.Empty, MovePlayer);
 }