Class: NetEvent::Death
- Inherits:
-
SnapEventBase
- Object
- SnapItemBase
- SnapEventBase
- NetEvent::Death
- Defined in:
- lib/snapshot/events/death.rb
Instance Attribute Summary collapse
-
#client_id ⇒ Object
Returns the value of attribute client_id.
Attributes inherited from SnapEventBase
Attributes inherited from SnapItemBase
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(hash_or_raw) ⇒ Death
constructor
A new instance of Death.
Methods inherited from SnapItemBase
#init_hash, #init_raw, #init_unpacker, #to_a, #to_h, #to_s, #validate
Constructor Details
#initialize(hash_or_raw) ⇒ Death
Returns a new instance of Death.
9 10 11 12 13 14 |
# File 'lib/snapshot/events/death.rb', line 9 def initialize(hash_or_raw) @field_names = %i[ client_id ] super end |
Instance Attribute Details
#client_id ⇒ Object
Returns the value of attribute client_id.
7 8 9 |
# File 'lib/snapshot/events/death.rb', line 7 def client_id @client_id end |
Class Method Details
.match_type?(type) ⇒ Boolean
16 17 18 |
# File 'lib/snapshot/events/death.rb', line 16 def self.match_type?(type) type == NETEVENTTYPE_DEATH end |