From f442ae3b979160c8c0a8e7311f672490d98b033d Mon Sep 17 00:00:00 2001 From: hide_d Date: Wed, 28 Mar 2018 17:30:36 +0900 Subject: [PATCH] =?UTF-8?q?json=EC=97=90=EC=84=9C=20=EC=9E=A5=EC=88=98=20?= =?UTF-8?q?=EB=93=B1=EB=A1=9D=EC=8B=9C=20=EA=B5=AD=EA=B0=80=20=EC=86=8C?= =?UTF-8?q?=EC=86=8D=20=EC=9E=A5=EC=88=98=EB=A5=BC=20=EC=85=80=20=EC=88=98?= =?UTF-8?q?=20=EC=9E=88=EC=9C=BC=EB=AF=80=EB=A1=9C=20genCnt=20=EC=86=8D?= =?UTF-8?q?=EC=84=B1=20=EC=82=AD=EC=A0=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- twe/sammo/Scenario.php | 7 +++++- twe/sammo/Scenario/NPC.php | 6 +++++ twe/sammo/Scenario/Nation.php | 6 +++++ twe/scenario/scenario_1.json | 4 +-- twe/scenario/scenario_10.json | 10 ++++---- twe/scenario/scenario_11.json | 8 +++--- twe/scenario/scenario_12.json | 26 ++++++++++---------- twe/scenario/scenario_2.json | 40 +++++++++++++++--------------- twe/scenario/scenario_21.json | 6 ++--- twe/scenario/scenario_24.json | 3 +-- twe/scenario/scenario_3.json | 42 ++++++++++++++++---------------- twe/scenario/scenario_4.json | 30 +++++++++++------------ twe/scenario/scenario_5.json | 18 +++++++------- twe/scenario/scenario_6.json | 20 +++++++-------- twe/scenario/scenario_7.json | 22 ++++++++--------- twe/scenario/scenario_8.json | 14 +++++------ twe/scenario/scenario_9.json | 8 +++--- twe/scenario/scenario_frame.json | 2 +- 18 files changed, 144 insertions(+), 128 deletions(-) create mode 100644 twe/sammo/Scenario/NPC.php create mode 100644 twe/sammo/Scenario/Nation.php diff --git a/twe/sammo/Scenario.php b/twe/sammo/Scenario.php index 8c68b5f9..1caffe4a 100644 --- a/twe/sammo/Scenario.php +++ b/twe/sammo/Scenario.php @@ -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[] */ diff --git a/twe/sammo/Scenario/NPC.php b/twe/sammo/Scenario/NPC.php new file mode 100644 index 00000000..2c9dcf8e --- /dev/null +++ b/twe/sammo/Scenario/NPC.php @@ -0,0 +1,6 @@ +