# Registration # ----------------------------------------------------------------------------- codec.register_enum(MsgType, dotted='veredi.interface.mediator.message.type', name_encode='v.mt', enum_encode_type=codec.enum.FlagEncodeValue) codec.register_enum(Message.SpecialId, dotted='veredi.interface.mediator.message.sid', name_encode='spid', enum_encode_type=codec.enum.FlagEncodeValue) codec.register(Message) codec.register(ConnectionMessage) config.register(MediatorSystem) config.ignore(Mediator) config.ignore(websocket.mediator.WebSocketMediator) config.register(websocket.server.WebSocketServer) config.register(websocket.client.WebSocketClient) # ----------------------------------------------------------------------------- # Exports # ----------------------------------------------------------------------------- __all__ = [ # No exports? Just a registration thing. ]
# ----------------------------------------------------------------------------- # Registration # ----------------------------------------------------------------------------- # Always register. codec.register(Dice) codec.register(Constant) codec.register(Variable) codec.register(OperatorAdd) codec.register(OperatorSub) codec.register(OperatorMult) codec.register(OperatorDiv) codec.register(OperatorPow) # Always ignore. codec.ignore(Node) codec.ignore(Leaf) codec.ignore(Branch) codec.ignore(OperatorMath) config.register(D20Parser) # ----------------------------------------------------------------------------- # Exports # ----------------------------------------------------------------------------- __all__ = [ # No exports? Just a registration thing. ]
# Imports: Registration # ----------------------------------------------------------------------------- # Registering/ignoring some base/simple things here so we don't have a inverted # sort of dependency. Base should be... basic stuff. Configuration and # registration is outside its paygrade, really. # ------------------------------ # Registrees # ------------------------------ from veredi.base.paths import safing from veredi.base.identity import MonotonicId, SerializableId # ----------------------------------------------------------------------------- # Registration # ----------------------------------------------------------------------------- config.register(safing.to_human_readable, 'veredi.paths.sanitize.human') config.register(safing.to_hashed, 'veredi.paths.sanitize.hashed.sha256') codec.register(MonotonicId) codec.register(SerializableId) # ----------------------------------------------------------------------------- # Exports # ----------------------------------------------------------------------------- __all__ = [ # No exports? Just a registration thing. ]
# ----------------------------------------------------------------------------- # Imports: Registration # ----------------------------------------------------------------------------- from .data.identity.component import IdentityComponent from .data.identity.manager import IdentityManager from .data.component import DataComponent from .data.manager import DataManager from .time.tick.base import TickBase from .time.tick.round import TickRounds # ----------------------------------------------------------------------------- # Registration # ----------------------------------------------------------------------------- config.ignore(TickBase) config.register(IdentityComponent) config.register(IdentityManager) config.register(DataComponent) config.register(DataManager) config.register(TickRounds) # ----------------------------------------------------------------------------- # Exports # ----------------------------------------------------------------------------- __all__ = [ # No exports? Just a registration thing. ]
# ----------------------------------------------------------------------------- # Registration # ----------------------------------------------------------------------------- # ------------------------------ # EncodableRegistry # ------------------------------ codec.register_enum(NodeType, dotted='veredi.math.parser.type', name_encode='node.type', enum_encode_type=codec.enum.FlagEncodeName) codec.register(MathOutputEvent) codec.ignore(MathTree) # ------------------------------ # ConfigRegistry # ------------------------------ config.register(MathSystem) # ----------------------------------------------------------------------------- # Exports # ----------------------------------------------------------------------------- __all__ = [ # No exports? Just a registration thing. ]
# ----------------------------------------------------------------------------- # Imports: Registration # ----------------------------------------------------------------------------- # ------------------------------ # Registrees # ------------------------------ from .enum import (EnumWrap, FlagEncodeValue, FlagEncodeName, EnumEncodeName) from .codec import Codec # ----------------------------------------------------------------------------- # Registration # ----------------------------------------------------------------------------- codec.ignore(EnumWrap) codec.ignore(FlagEncodeValue) codec.ignore(FlagEncodeName) codec.ignore(EnumEncodeName) config.register(Codec) # ----------------------------------------------------------------------------- # Exports # ----------------------------------------------------------------------------- __all__ = [ # No exports? Just a registration thing. ]
from veredi.data.registration import config # ----------------------------------------------------------------------------- # Imports: Registration # ----------------------------------------------------------------------------- # ------------------------------ # Registrees # ------------------------------ from .bare import FileBareRepository from .tree import FileTreeRepository # ----------------------------------------------------------------------------- # Registration # ----------------------------------------------------------------------------- config.register(FileBareRepository) config.register(FileTreeRepository) # ----------------------------------------------------------------------------- # Exports # ----------------------------------------------------------------------------- __all__ = [ # No exports? Just a registration thing. ]
from .event import Recipient, OutputEvent from .envelope import Address, Envelope from .system import OutputSystem # ----------------------------------------------------------------------------- # Registration # ----------------------------------------------------------------------------- codec.register_enum(Recipient, dotted='veredi.interface.output.event.recipient', name_encode='recipient', enum_encode_type=codec.enum.FlagEncodeValue) codec.register(Address) codec.register(Envelope) codec.ignore(OutputEvent) config.register(OutputSystem) # ----------------------------------------------------------------------------- # Exports # ----------------------------------------------------------------------------- __all__ = [ # No exports? Just a registration thing. ]
This will be found and imported by run.registry in order to have whatever Registries, Registrars, and Registrees this provides available at run-time. ''' # ----------------------------------------------------------------------------- # Imports # ----------------------------------------------------------------------------- from veredi.data.registration import config # ----------------------------------------------------------------------------- # Imports: Registration # ----------------------------------------------------------------------------- from .game import D20RulesGame # ----------------------------------------------------------------------------- # Registration # ----------------------------------------------------------------------------- config.register(D20RulesGame) # ----------------------------------------------------------------------------- # Exports # ----------------------------------------------------------------------------- __all__ = [ # No exports? Just a registration thing. ]
# ---------------------------------------------------------------------------- # Imports: Registration # ---------------------------------------------------------------------------- from .identity import InputId from .system import InputSystem from .command import commander from .history import history # ----------------------------------------------------------------------------- # Registration # ----------------------------------------------------------------------------- codec.register(InputId) config.register(InputSystem) config.register(commander.Commander) config.register(history.Historian) # ----------------------------------------------------------------------------- # Exports # ----------------------------------------------------------------------------- __all__ = [ # No exports? Just a registration thing. ]
# ----------------------------------------------------------------------------- # Imports: Registration # ----------------------------------------------------------------------------- # Registering/ignoring some base/simple things here so we don't have a inverted # sort of dependency. Base should be... basic stuff. Configuration and # registration is outside its paygrade, really. # ------------------------------ # Registrees # ------------------------------ from .json.serdes import JsonSerdes from .yaml.serdes import YamlSerdes # ----------------------------------------------------------------------------- # Registration # ----------------------------------------------------------------------------- config.register(JsonSerdes) config.register(YamlSerdes) # ----------------------------------------------------------------------------- # Exports # ----------------------------------------------------------------------------- __all__ = [ # No exports? Just a registration thing. ]
# ----------------------------------------------------------------------------- # Imports: Registration # ----------------------------------------------------------------------------- from .game import PF2RulesGame from . import ability from . import skill from . import health from . import combat # ----------------------------------------------------------------------------- # Registration # ----------------------------------------------------------------------------- config.register(PF2RulesGame) config.register(ability.component.AbilityComponent) config.register(ability.system.AbilitySystem) config.register(skill.component.SkillComponent) config.register(skill.system.SkillSystem) codec.register_enum(health.component.HealthState, dotted='veredi.rules.d20.pf2.health.state', name_encode='health.state', enum_encode_type=codec.enum.EnumEncodeName) config.register(health.component.HealthComponent) config.register(combat.component.AttackComponent)