From 1d640ab9cef4842dec6c15a210885df1a481a484 Mon Sep 17 00:00:00 2001 From: hide_d Date: Sat, 14 Jul 2018 18:23:31 +0900 Subject: [PATCH] =?UTF-8?q?ActionLogger=20rollback=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/sammo/ActionLogger.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/hwe/sammo/ActionLogger.php b/hwe/sammo/ActionLogger.php index df15bf2b..b77ec2a2 100644 --- a/hwe/sammo/ActionLogger.php +++ b/hwe/sammo/ActionLogger.php @@ -42,6 +42,16 @@ class ActionLogger{ } } + public function rollback(){ + $this->generalHistoryLog = []; + $this->generalActionLog = []; + $this->generalBattleResultLog = []; + $this->generalBattleDetailLog = []; + $this->nationalHistoryLog = []; + $this->globalHistoryLog = []; + $this->globalActionLog = []; + } + public function flush(){ $db = DB::db();