module BWAPI::Client::CommandCenter::SceneTypes

SceneTypes module for commandcenter/scenetypes endpoints

Public Instance Methods

get_scene_type(scene_type_id) click to toggle source

Get an existing scene type

@param [Integer] scene_type_id the scene type id @return [Hash] Specific scene type

# File lib/bwapi/client/command_center/scene_types.rb, line 17
def get_scene_type(scene_type_id)
  get "commandcenter/scenetypes/#{scene_type_id}"
end
get_scene_type_with_sub_scenes(scene_type_id) click to toggle source

Get an existing scene type sub scene types

@param [Integer] scene_type_id the scene type id @return [Hash] Specific scene type with sub scences

# File lib/bwapi/client/command_center/scene_types.rb, line 25
def get_scene_type_with_sub_scenes(scene_type_id)
  get "commandcenter/scenetypes/#{scene_type_id}/subscenes"
end
scene_types() click to toggle source

Get the scene types visible to the user

@return [Hash] All scene types

# File lib/bwapi/client/command_center/scene_types.rb, line 9
def scene_types
  get 'commandcenter/scenetypes'
end