json에서 장수 등록시 국가 소속 장수를 셀 수 있으므로 genCnt 속성 삭제
This commit is contained in:
@@ -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[]
|
||||
*/
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
<?php
|
||||
namespace sammo\Scenario;
|
||||
|
||||
class NPC{
|
||||
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
<?php
|
||||
namespace sammo\Scenario;
|
||||
|
||||
class Nation{
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user