Exemplo n.º 1
0
 /**
  * Called when the journal starts closing, we just cull
  * all of the pages.
  */
 public void JournalClosing()
 {
     /* Cull all of the pages */
     itemInspector.CullPages();
     playerStats.CullPages();
     foreach (PagePairing p in ipQuests)
     {
         p.CullPages();
     }
     foreach (PagePairing p in cQuests)
     {
         p.CullPages();
     }
 }
Exemplo n.º 2
0
    private PagePairing LoadPair(string leftPage, string rightPage, string id)
    {
        /* Create the page pairing */
        PagePairing pair = new PagePairing(LoadPage(leftPage), LoadPage(rightPage), id);

        /* Cull the pair */
        pair.CullPages();

        /* Update the pairing for the pages */
        pair.pageLeft.SetPagePairing(pair);
        pair.pageRight.SetPagePairing(pair);

        /* Return the new pair */
        return(pair);
    }