Class: RBStarbound::Player::Data
- Inherits:
-
Struct
- Object
- Struct
- RBStarbound::Player::Data
- Defined in:
- lib/rbstarbound/player.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
Returns the value of attribute data.
-
#name ⇒ Object
Returns the value of attribute name.
-
#version ⇒ Object
Returns the value of attribute version.
Instance Method Summary collapse
- #death_count ⇒ Object
- #death_count=(count) ⇒ Object
- #gender ⇒ Object
- #gender=(value) ⇒ Object
- #hair_type ⇒ Object
- #hair_type=(type) ⇒ Object
- #intro_complete=(bool) ⇒ Object
- #intro_complete? ⇒ Boolean
- #personality ⇒ Object
- #personality=(value) ⇒ Object
- #play_time ⇒ Object
- #player_name ⇒ Object
- #player_name=(name) ⇒ Object
- #ship_level ⇒ Object
- #ship_level=(level) ⇒ Object
- #uuid ⇒ Object
Instance Attribute Details
#data ⇒ Object
Returns the value of attribute data
7 8 9 |
# File 'lib/rbstarbound/player.rb', line 7 def data @data end |
#name ⇒ Object
Returns the value of attribute name
7 8 9 |
# File 'lib/rbstarbound/player.rb', line 7 def name @name end |
#version ⇒ Object
Returns the value of attribute version
7 8 9 |
# File 'lib/rbstarbound/player.rb', line 7 def version @version end |
Instance Method Details
#death_count ⇒ Object
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 |
#gender ⇒ Object
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_type ⇒ Object
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
20 |
# File 'lib/rbstarbound/player.rb', line 20 def intro_complete?; data['identity']['introComplete']; end |
#personality ⇒ Object
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_time ⇒ Object
18 |
# File 'lib/rbstarbound/player.rb', line 18 def play_time; data['identity']['playTime']; end |
#player_name ⇒ Object
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_level ⇒ Object
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 |
#uuid ⇒ Object
19 |
# File 'lib/rbstarbound/player.rb', line 19 def uuid; data['identity']['uuid']; end |