Class: RBStarbound::Player::Data

Inherits:
Struct
  • Object
show all
Defined in:
lib/rbstarbound/player.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#dataObject

Returns the value of attribute data

Returns:

  • (Object)

    the current value of data



7
8
9
# File 'lib/rbstarbound/player.rb', line 7

def data
  @data
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



7
8
9
# File 'lib/rbstarbound/player.rb', line 7

def name
  @name
end

#versionObject

Returns the value of attribute version

Returns:

  • (Object)

    the current value of version



7
8
9
# File 'lib/rbstarbound/player.rb', line 7

def version
  @version
end

Instance Method Details

#death_countObject



16
# File 'lib/rbstarbound/player.rb', line 16

def death_count; data['identity']['deathCount'];                      end

#death_count=(count) ⇒ Object



17
# File 'lib/rbstarbound/player.rb', line 17

def death_count=(count); data['identity']['deathCount'] = count;      end

#genderObject



10
# File 'lib/rbstarbound/player.rb', line 10

def gender; data['identity']['gender'];                  end

#gender=(value) ⇒ Object



11
# File 'lib/rbstarbound/player.rb', line 11

def gender=(value); data['identity']['gender'] = value;  end

#hair_typeObject



12
# File 'lib/rbstarbound/player.rb', line 12

def hair_type; data['identity']['hairType'];               end

#hair_type=(type) ⇒ Object



13
# File 'lib/rbstarbound/player.rb', line 13

def hair_type=(type); data['identity']['hairType'] = type; end

#intro_complete=(bool) ⇒ Object



21
# File 'lib/rbstarbound/player.rb', line 21

def intro_complete=(bool); data['identity']['introComplete'] = bool; end

#intro_complete?Boolean

Returns:

  • (Boolean)


20
# File 'lib/rbstarbound/player.rb', line 20

def intro_complete?; data['identity']['introComplete'];              end

#personalityObject



14
# File 'lib/rbstarbound/player.rb', line 14

def personality; data['identity']['personalityIdle'];                 end

#personality=(value) ⇒ Object



15
# File 'lib/rbstarbound/player.rb', line 15

def personality=(value); data['identity']['personalityIdle'] = value; end

#play_timeObject



18
# File 'lib/rbstarbound/player.rb', line 18

def play_time; data['identity']['playTime']; end

#player_nameObject



8
# File 'lib/rbstarbound/player.rb', line 8

def player_name; data['identity']['name'];               end

#player_name=(name) ⇒ Object



9
# File 'lib/rbstarbound/player.rb', line 9

def player_name=(name); data['identity']['name'] = name; end

#ship_levelObject



22
# File 'lib/rbstarbound/player.rb', line 22

def ship_level; data['identity']['shipLevel'];                 end

#ship_level=(level) ⇒ Object



23
# File 'lib/rbstarbound/player.rb', line 23

def ship_level=(level); data['identity']['shipLevel'] = level; end

#uuidObject



19
# File 'lib/rbstarbound/player.rb', line 19

def uuid; data['identity']['uuid'];          end