Module: Demiurge::Notifications
- Defined in:
- lib/demiurge/notification_names.rb
Overview
Notifications use string identifiers as names. It's legal to use strings directly, but then typos can go undetected. This also serves as a list of what notifications are normally available. Application-specific notifications should define their own notification constants, either in this module or another one.
Constant Summary
- AdminWarning =
This notification is sent when something is misconfigured, but not in a continuity-threatening way.
"admin_warning"
- TickFinished =
This notification indicates that a tick has completed.
"tick_finished"
- NewItem =
This notification indicates that a new item has been registered by the engine.
"new_item"
- LoadStateStart =
This notification means that state loading has begun into an initialized engine.
"load_state_start"
- LoadStateEnd =
This notification means that state loading has finished in an initialized engine.
"load_state_end"
- LoadWorldVerify =
This notification is sent when a World File reload is preparing to start. This will be sent on verify-only reloads as well as normal reloads.
"load_world_verify"
- LoadWorldStart =
This notification is sent when a World File reload has successfully verified and has begun loading. Verify-only reloads do not send this signal.
"load_world_start"
- LoadWorldEnd =
This notification is sent when a World File reload has successfully completed. Verify-only reloads do not send this signal.
"load_world_end"
- MoveFrom =
This notification is sent when an agent moves between positions, locations and/or zones. This notification goes out at the old location and zone, which may be the same as the new.
Fields: new_position (String), old_position (String), new_location (String), old_location (String), zone (String)
"move_from"
- MoveTo =
This notification is sent when an agent moves between positions, locations and/or zones. This notification goes out at the new location and zone, which may be the same as the old.
Fields: new_position (String), old_position (String), new_location (String), old_location (String), zone (String)
"move_to"
- IntentionCancelled =
This notification is sent when an intention has been cancelled.
Fields: reason (String), by (Array
), id (Integer), intention_type (String), info (Hash) "intention_cancelled"
- IntentionApplied =
This notification is sent when an intention is successfully applied.
Fields: id (Integer), intention_type (String), info (Hash)
"intention_applied"