Class: NetObj::SpectatorInfo
- Inherits:
-
SnapItemBase
- Object
- SnapItemBase
- NetObj::SpectatorInfo
- Defined in:
- lib/snapshot/items/spectator_info.rb
Instance Attribute Summary collapse
-
#spec_mode ⇒ Object
Returns the value of attribute spec_mode.
-
#spectator_id ⇒ Object
Returns the value of attribute spectator_id.
-
#x ⇒ Object
Returns the value of attribute x.
-
#y ⇒ Object
Returns the value of attribute y.
Attributes inherited from SnapItemBase
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(hash_or_raw) ⇒ SpectatorInfo
constructor
A new instance of SpectatorInfo.
Methods inherited from SnapItemBase
#init_hash, #init_raw, #init_unpacker, #to_a, #to_h, #to_s, #validate
Constructor Details
#initialize(hash_or_raw) ⇒ SpectatorInfo
Returns a new instance of SpectatorInfo.
9 10 11 12 13 14 15 16 17 |
# File 'lib/snapshot/items/spectator_info.rb', line 9 def initialize(hash_or_raw) @field_names = %i[ spec_mode spectator_id x y ] super end |
Instance Attribute Details
#spec_mode ⇒ Object
Returns the value of attribute spec_mode.
7 8 9 |
# File 'lib/snapshot/items/spectator_info.rb', line 7 def spec_mode @spec_mode end |
#spectator_id ⇒ Object
Returns the value of attribute spectator_id.
7 8 9 |
# File 'lib/snapshot/items/spectator_info.rb', line 7 def spectator_id @spectator_id end |
#x ⇒ Object
Returns the value of attribute x.
7 8 9 |
# File 'lib/snapshot/items/spectator_info.rb', line 7 def x @x end |
#y ⇒ Object
Returns the value of attribute y.
7 8 9 |
# File 'lib/snapshot/items/spectator_info.rb', line 7 def y @y end |
Class Method Details
.match_type?(type) ⇒ Boolean
19 20 21 |
# File 'lib/snapshot/items/spectator_info.rb', line 19 def self.match_type?(type) type == NETOBJTYPE_SPECTATORINFO end |