module Gamefic::Mud::Adapter::Common
Common
attributes and methods of client adapters.
Attributes
character[RW]
@return [Actor]
plot[RW]
@return [Plot]
state[R]
@return [State::Base]
Public Instance Methods
[](key)
click to toggle source
# File lib/gamefic-mud/adapter/common.rb, line 27 def [] key session[key] end
[]=(key, value)
click to toggle source
# File lib/gamefic-mud/adapter/common.rb, line 31 def []= key, value session[key] = value end
session()
click to toggle source
# File lib/gamefic-mud/adapter/common.rb, line 23 def session @session ||= {} end
start(state)
click to toggle source
@param state [Class<State::Base>] @return [void]
# File lib/gamefic-mud/adapter/common.rb, line 18 def start state @state = state.new(self) @state.start end