Created generic building queue
Updated ORM Signed-off-by: Gregory PLANCHAT <g.planchat@gmail.com>
This commit is contained in:
parent
d7619777af
commit
66875791e6
19 changed files with 575 additions and 110 deletions
28
includes/application/test/UpdatePlanet.php
Normal file
28
includes/application/test/UpdatePlanet.php
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
<?php
|
||||
|
||||
include './bootstrap.php';
|
||||
|
||||
$planet = Legacies_Empire_Model_Planet::factory(1);
|
||||
|
||||
var_dump($resource->getAllDatas(), $production->getAllDatas(), array(
|
||||
'last_update' => $planet->getData('last_update'),
|
||||
'metal' => $planet->getData('metal'),
|
||||
'cristal' => $planet->getData('crystal'),
|
||||
'deuterium' => $planet->getData('deuterium'),
|
||||
'energy_max' => $planet->getData('energy_max'),
|
||||
'energy_used' => $planet->getData('energy_used')
|
||||
));
|
||||
|
||||
Legacies::dispatchEvent('planet.update', array(
|
||||
'planet' => $planet
|
||||
));
|
||||
|
||||
header('Content-Type: text/plain');
|
||||
var_dump(array(
|
||||
'last_update' => $planet->getData('last_update'),
|
||||
'metal' => $planet->getData('metal'),
|
||||
'cristal' => $planet->getData('crystal'),
|
||||
'deuterium' => $planet->getData('deuterium'),
|
||||
'energy_max' => $planet->getData('energy_max'),
|
||||
'energy_used' => $planet->getData('energy_used')
|
||||
));
|
||||
Loading…
Reference in a new issue