Module: GameficOpal

Defined in:
lib/gamefic-sdk/platform/web/gamefic_opal.rb

Defined Under Namespace

Classes: WebPlot, WebUser

Class Method Summary collapse

Class Method Details

.static_characterObject



15
16
17
18
19
20
21
# File 'lib/gamefic-sdk/platform/web/gamefic_opal.rb', line 15

def self.static_character
  if @@static_character.nil?
    @@static_character = static_plot.make Gamefic::Character, name: 'player', synonyms: 'me you myself yourself self'
    @@static_character.connect static_user
  end
  @@static_character
end

.static_plotObject



12
13
14
# File 'lib/gamefic-sdk/platform/web/gamefic_opal.rb', line 12

def self.static_plot
  @@static_plot ||= WebPlot.new(Gamefic::Source::Text.new)
end

.static_userObject



22
23
24
# File 'lib/gamefic-sdk/platform/web/gamefic_opal.rb', line 22

def self.static_user
  @@static_user ||= WebUser.new
end