removing smarty - part II

- adapting classes to change
- adding new class GenericPage
This commit is contained in:
Sarjuuk
2014-06-15 21:55:40 +02:00
parent b7a73baaea
commit 3347778e4c
99 changed files with 828 additions and 10363 deletions

View File

@@ -213,10 +213,14 @@ class CreatureList extends BaseType
return $data;
}
public function addGlobalsToJScript($addMask = 0)
public function getJSGlobals($addMask = 0)
{
$data = [];
foreach ($this->iterate() as $__)
Util::$pageTemplate->extendGlobalData(TYPE_NPC, [$this->id => ['name' => $this->getField('name', true)]]);
$data[TYPE_NPC][$this->id] = ['name' => $this->getField('name', true)];
return $data;
}
public function addRewardsToJScript(&$refs) { }