feat: Event Type에 United 추가, Enums 추가
This commit is contained in:
@@ -0,0 +1,12 @@
|
|||||||
|
<?php
|
||||||
|
namespace sammo\Enums;
|
||||||
|
|
||||||
|
enum EventTarget: string{
|
||||||
|
//YearMonth 변경 전에 처리해야할 Month 이벤트
|
||||||
|
case PreMonth = 'PRE_MONTH';
|
||||||
|
case Month = 'MONTH';
|
||||||
|
//PostMonth는 없음
|
||||||
|
case OccupyCity = 'OCCUPY_CITY';
|
||||||
|
case DestriyNation = 'DESTROY_NATION';
|
||||||
|
case United = 'UNITED';
|
||||||
|
}
|
||||||
+1
-1
@@ -484,7 +484,7 @@ CREATE TABLE IF NOT EXISTS `ng_history` (
|
|||||||
##############################
|
##############################
|
||||||
CREATE TABLE `event` (
|
CREATE TABLE `event` (
|
||||||
`id` INT(11) NOT NULL AUTO_INCREMENT,
|
`id` INT(11) NOT NULL AUTO_INCREMENT,
|
||||||
`target` ENUM('MONTH', 'OCCUPY_CITY', 'DESTROY_NATION','PRE_MONTH') NOT NULL DEFAULT 'MONTH',
|
`target` ENUM('MONTH', 'OCCUPY_CITY', 'DESTROY_NATION','PRE_MONTH', 'UNITED') NOT NULL DEFAULT 'MONTH',
|
||||||
`priority` INT(11) NOT NULL DEFAULT '1000',
|
`priority` INT(11) NOT NULL DEFAULT '1000',
|
||||||
`condition` MEDIUMTEXT NOT NULL COLLATE 'utf8mb4_bin',
|
`condition` MEDIUMTEXT NOT NULL COLLATE 'utf8mb4_bin',
|
||||||
`action` MEDIUMTEXT NOT NULL COLLATE 'utf8mb4_bin',
|
`action` MEDIUMTEXT NOT NULL COLLATE 'utf8mb4_bin',
|
||||||
|
|||||||
Reference in New Issue
Block a user