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