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