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_character ⇒ Object
16
17
18
19
20
21
22
|
# File 'lib/gamefic-sdk/platform/web/gamefic_opal.rb', line 16
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_plot ⇒ Object
13
14
15
|
# File 'lib/gamefic-sdk/platform/web/gamefic_opal.rb', line 13
def self.static_plot
@@static_plot ||= WebPlot.new(Gamefic::Source::Text.new)
end
|
.static_user ⇒ Object
23
24
25
|
# File 'lib/gamefic-sdk/platform/web/gamefic_opal.rb', line 23
def self.static_user
@@static_user ||= WebUser.new
end
|