KVStorage로 game 테이블 대체 준비
This commit is contained in:
@@ -225,6 +225,8 @@ class DiplomaticMessage extends Message{
|
||||
|
||||
|
||||
$db = DB::db();
|
||||
$gameStor = KVStorage::getStorage($db, 'game');
|
||||
|
||||
$general = $db->queryFirstRow(
|
||||
'SELECT `name`, `level` FROM general WHERE `no`=%i AND nation=%i',
|
||||
$receiverID,
|
||||
|
||||
@@ -24,6 +24,7 @@ class Diplomacy{
|
||||
}
|
||||
|
||||
$db = DB::db();
|
||||
$gameStor = KVStorage::getStorage($db, 'game');
|
||||
$srcNation = $db->queryFirstRow(
|
||||
'SELECT nation, `name`, `power`, capital, gold, rice, surlimit, color, `level` FROM nation WHERE nation=%i',
|
||||
$srcNationID
|
||||
|
||||
@@ -21,6 +21,7 @@ class Personnel{
|
||||
|
||||
public function __construct(int $nationID, int $senderID){
|
||||
$db = DB::db();
|
||||
$gameStor = KVStorage::getStorage($db, 'game');
|
||||
$nation = $db->queryFirstRow(
|
||||
'SELECT nation, `name`, `level`, capital, scout FROM nation WHERE nation=%i',
|
||||
$nationID
|
||||
|
||||
@@ -89,7 +89,7 @@ class ResetHelper{
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
(KVStorage::getStorage($db, 'game'))->resetValues();
|
||||
|
||||
return [
|
||||
'result'=>true
|
||||
|
||||
Reference in New Issue
Block a user