Module: StoryTeller::Library::Location
- Defined in:
- lib/story_teller/library/location.rb
Overview
module Location
Instance Method Summary collapse
Instance Method Details
#location ⇒ Object
28 29 30 31 32 |
# File 'lib/story_teller/library/location.rb', line 28 def location return @location unless StoryTeller::Engine.persist_player_location? @player&.location || @location end |
#location=(obj) ⇒ Object
34 35 36 37 38 39 40 |
# File 'lib/story_teller/library/location.rb', line 34 def location=(obj) if StoryTeller::Engine.persist_player_location? @player.location = obj else @location = obj end end |