Пример #1
0
 /**
  * Get a lang file for a quest.
  * @param SR_Quest $quest
  * @return GWF_LangTrans
  */
 private static function getLangQuest(SR_Quest $quest)
 {
     $cl = $quest->getName();
     if (!isset(self::$LANG_QUEST[$cl])) {
         $cll = strtolower($cl);
         $path = sprintf('%scity/%s/lang/quest/%s/%s', Shadowrun4::getShadowDir(), $quest->getCityName(), $cll, $cll);
         // 			echo "Loading $path\n";
         self::$LANG_QUEST[$cl] = new GWF_LangTrans($path);
     }
     return self::$LANG_QUEST[$cl];
 }