Class: Beefdump::World::Object

Inherits:
Entity
  • Object
show all
Defined in:
lib/beefdump/world/object.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(object_data) ⇒ Object

Returns a new instance of Object.



8
9
10
11
12
# File 'lib/beefdump/world/object.rb', line 8

def initialize(object_data)
  load_object_attributes!(object_data)

  load_properties!(object_data["property"])
end

Instance Attribute Details

#propertiesObject (readonly)

Returns the value of attribute properties.



6
7
8
# File 'lib/beefdump/world/object.rb', line 6

def properties
  @properties
end

#typeObject (readonly)

Returns the value of attribute type.



6
7
8
# File 'lib/beefdump/world/object.rb', line 6

def type
  @type
end