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.

Since:

  • 0.2.0

Constant Summary

AdminWarning =

This notification is sent when something is misconfigured, but not in a continuity-threatening way.

Since:

  • 0.2.0

"admin_warning"
TickFinished =

This notification indicates that a tick has completed.

Since:

  • 0.2.0

"tick_finished"
NewItem =

This notification indicates that a new item has been registered by the engine.

Since:

  • 0.2.0

"new_item"
LoadStateStart =

This notification means that state loading has begun into an initialized engine.

Since:

  • 0.2.0

"load_state_start"
LoadStateEnd =

This notification means that state loading has finished in an initialized engine.

Since:

  • 0.2.0

"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.

Since:

  • 0.2.0

"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.

Since:

  • 0.2.0

"load_world_start"
LoadWorldEnd =

This notification is sent when a World File reload has successfully completed. Verify-only reloads do not send this signal.

Since:

  • 0.2.0

"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)

Since:

  • 0.2.0

"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)

Since:

  • 0.2.0

"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)

Since:

  • 0.2.0

"intention_cancelled"
IntentionApplied =

This notification is sent when an intention is successfully applied.

Fields: id (Integer), intention_type (String), info (Hash)

Since:

  • 0.2.0

"intention_applied"