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