Class: Openra::Struct::GameOptions

Inherits:
Openra::Struct show all
Defined in:
lib/openra/struct/game_options.rb,
lib/openra/struct/game_options/string_option.rb,
lib/openra/struct/game_options/boolean_option.rb,
lib/openra/struct/game_options/integer_option.rb

Defined Under Namespace

Classes: BooleanOption, IntegerOption, StringOption

Constant Summary

Constants inherited from Openra::Struct

DEFAULT_PROCESSOR, UNDEFINED

Instance Method Summary collapse

Methods inherited from Openra::Struct

define, inherited, new, preprocessor

Instance Method Details

#bounties_enabledObject



26
27
28
29
30
31
# File 'lib/openra/struct/game_options.rb', line 26

def bounties_enabled
  attributes.fetch(:bounties_enabled, BooleanOption.new(
    value: true,
    preferred_value: true
  ))
end

#conyard_undeploy_enabledObject



33
34
35
36
37
38
# File 'lib/openra/struct/game_options.rb', line 33

def conyard_undeploy_enabled
  attributes.fetch(:conyard_undeploy_enabled, BooleanOption.new(
    value: true,
    preferred_value: true
  ))
end

#restricted_build_radius_enabledObject



40
41
42
43
44
45
# File 'lib/openra/struct/game_options.rb', line 40

def restricted_build_radius_enabled
  attributes.fetch(:restricted_build_radius_enabled, BooleanOption.new(
    value: true,
    preferred_value: true
  ))
end