KVStorage의 game namespace를 game_env로 '편의를 위해' 변경

This commit is contained in:
2018-05-12 22:21:53 +09:00
parent 52f4b79fdf
commit 67ecd514a4
63 changed files with 194 additions and 194 deletions
+1 -1
View File
@@ -225,7 +225,7 @@ class DiplomaticMessage extends Message{
$db = DB::db();
$gameStor = KVStorage::getStorage($db, 'game');
$gameStor = KVStorage::getStorage($db, 'game_env');
$general = $db->queryFirstRow(
'SELECT `name`, `level` FROM general WHERE `no`=%i AND nation=%i',
+1 -1
View File
@@ -24,7 +24,7 @@ class Diplomacy{
}
$db = DB::db();
$gameStor = KVStorage::getStorage($db, 'game');
$gameStor = KVStorage::getStorage($db, 'game_env');
$srcNation = $db->queryFirstRow(
'SELECT nation, `name`, `power`, capital, gold, rice, surlimit, color, `level` FROM nation WHERE nation=%i',
$srcNationID
+1 -1
View File
@@ -21,7 +21,7 @@ class Personnel{
public function __construct(int $nationID, int $senderID){
$db = DB::db();
$gameStor = KVStorage::getStorage($db, 'game');
$gameStor = KVStorage::getStorage($db, 'game_env');
$nation = $db->queryFirstRow(
'SELECT nation, `name`, `level`, capital, scout FROM nation WHERE nation=%i',
$nationID
+5 -2
View File
@@ -89,7 +89,7 @@ class ResetHelper{
}
}
(KVStorage::getStorage($db, 'game'))->resetValues();
(KVStorage::getStorage($db, 'game_env'))->resetValues();
return [
'result'=>true
@@ -131,6 +131,7 @@ class ResetHelper{
$db = DB::db();
$gameStor = KVStorage::getStorage($db, 'game_env');
$db->insert('plock', [
'plock'=>1
]);
@@ -194,7 +195,9 @@ class ResetHelper{
]);
}
$db->insert('game', $env);
foreach($env as $key=>$value){
$gameStor->$key = $value;
}
$scenarioObj->build($env);