Bone-Market-Solver/bonemarketsolver/data/diplomat_fascinations.py
Jeremy Saklad 97aedc0895
Add __slots__ to data enumerations
These types still have a __dict__, since they inherit from Enum, but
using __slots__ for the inherited properties can still improve access
times.
2021-09-18 19:18:40 -05:00

16 lines
491 B
Python

__all__ = ['DiplomatFascination']
__author__ = "Jeremy Saklad"
from enum import Enum
from .buyers import Buyer
DiplomatFascination = Enum(
'DiplomatFascination',
( (diplomat.name[22:], diplomat) for diplomat in Buyer
if diplomat.name.startswith('THE_TRIFLING_DIPLOMAT_') ),
module = __name__
)
DiplomatFascination.__doc__ = "The current fascination of the Trifling Diplomat."
DiplomatFascination.__slots__ = '_value_', '_name_', '__objclass__'