forked from p15670423/monkey
Island: Change IslandEventTopic definition from dynamic to static
My code completion tool doesn't play well with dynamically defined Enums.
This commit is contained in:
parent
bc769ee6b8
commit
ecab1be70e
|
@ -1,12 +1,14 @@
|
||||||
from abc import ABC, abstractmethod
|
from abc import ABC, abstractmethod
|
||||||
from enum import Enum
|
from enum import Enum, auto
|
||||||
from typing import Any
|
from typing import Any
|
||||||
|
|
||||||
from . import IslandEventSubscriber
|
from . import IslandEventSubscriber
|
||||||
|
|
||||||
IslandEventTopic = Enum(
|
|
||||||
"IslandEventTopic", ["AGENT_CONNECTED", "CLEAR_SIMULATION_DATA", "RESET_AGENT_CONFIGURATION"]
|
class IslandEventTopic(Enum):
|
||||||
)
|
AGENT_CONNECTED = auto()
|
||||||
|
CLEAR_SIMULATION_DATA = auto()
|
||||||
|
RESET_AGENT_CONFIGURATION = auto()
|
||||||
|
|
||||||
|
|
||||||
class IIslandEventQueue(ABC):
|
class IIslandEventQueue(ABC):
|
||||||
|
|
Loading…
Reference in New Issue