j_load_scenario.php 에서 볼 수 있는 요약 형태본 추가
- 소소한 버그 수정
This commit is contained in:
@@ -117,4 +117,21 @@ class Nation{
|
||||
}
|
||||
$db->insert('diplomacy', $diplomacy);
|
||||
}
|
||||
|
||||
public function getBrief(){
|
||||
return [
|
||||
'id'=>$this->id,
|
||||
'name'=>$this->name,
|
||||
'color'=>$this->color,
|
||||
'gold'=>$this->gold,
|
||||
'rice'=>$this->rice,
|
||||
'infoText'=>$this->infoText,
|
||||
'tech'=>$this->tech,
|
||||
'type'=>$this->type,
|
||||
'nationLevel'=>$this->nationLevel,
|
||||
'cities'=>$this->cities,
|
||||
'generals'=>count($this->generals),
|
||||
'generalsEx'=>count($this->generalsEx)
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user