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:
Mike Salvatore 2022-09-12 13:35:47 -04:00
parent bc769ee6b8
commit ecab1be70e
1 changed files with 6 additions and 4 deletions

View File

@ -1,12 +1,14 @@
from abc import ABC, abstractmethod
from enum import Enum
from enum import Enum, auto
from typing import Any
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):