Class: Lich::Common::DownstreamHook Private
- Inherits:
-
Object
- Object
- Lich::Common::DownstreamHook
- Extended by:
- HookRegistry
- Defined in:
- documented/common/downstreamhook.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Registry of hooks that process server strings as they arrive from the game.
DownstreamHook instances intercept and transform strings received from the game server before they are delivered to scripts and the UI. Hooks are executed in registration order and may modify, filter, or pass through the server string unchanged. Script-scoped hooks are automatically removed when their owning script dies; persistent hooks remain.
Class Method Summary collapse
-
._hook_owners ⇒ Hash
private
Returns the per-class storage mapping hook IDs to their owning script object IDs.
-
._hook_persist ⇒ Hash
private
Returns the per-class storage mapping hook IDs to their persistence flags.
-
._hook_sources ⇒ Hash
private
Returns the per-class storage mapping hook IDs to their source files.
-
._hooks ⇒ Object
private
Per-class storage for the shared HookRegistry methods.
Methods included from HookRegistry
add, cleanup_on_death, hook_sources, list, remove, sources
Class Method Details
._hook_owners ⇒ Hash
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns the per-class storage mapping hook IDs to their owning script object IDs.
44 45 46 |
# File 'documented/common/downstreamhook.rb', line 44 def self._hook_owners @@downstream_hook_owners end |
._hook_persist ⇒ Hash
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns the per-class storage mapping hook IDs to their persistence flags.
52 53 54 |
# File 'documented/common/downstreamhook.rb', line 52 def self._hook_persist @@downstream_hook_persist end |
._hook_sources ⇒ Hash
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns the per-class storage mapping hook IDs to their source files.
36 37 38 |
# File 'documented/common/downstreamhook.rb', line 36 def self._hook_sources @@downstream_hook_sources end |
._hooks ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Per-class storage for the shared HookRegistry methods.
28 29 30 |
# File 'documented/common/downstreamhook.rb', line 28 def self._hooks @@downstream_hooks end |