json에서 장수 등록시 국가 소속 장수를 셀 수 있으므로 genCnt 속성 삭제

This commit is contained in:
2018-03-28 17:30:36 +09:00
parent 9b139e54f4
commit f442ae3b97
18 changed files with 144 additions and 128 deletions
+6 -1
View File
@@ -54,7 +54,7 @@ class Scenario{
$nations = [];
foreach($nationsRaw as $idx=>$nation){
list($name, $color, $gold, $rice, $infoText, $tech, $genCount, $type, $nationLevel, $cities) = $nation;
list($name, $color, $gold, $rice, $infoText, $tech, $type, $nationLevel, $cities) = $nation;
$nationID = $idx+1;
$nation['id'] = $nationID;
@@ -118,6 +118,11 @@ class Scenario{
];
}
public function buildGame($env=[]){
//NOTE: 초기화가 되어있다고 가정함.
}
/**
* @return \sammo\Scenario[]
*/
+6
View File
@@ -0,0 +1,6 @@
<?php
namespace sammo\Scenario;
class NPC{
}
+6
View File
@@ -0,0 +1,6 @@
<?php
namespace sammo\Scenario;
class Nation{
}