Class: Bayonetta::MOTFile::Record

Inherits:
LibBin::Structure
  • Object
show all
Defined in:
lib/bayonetta/mot.rb

Instance Method Summary collapse

Instance Method Details

#__sizeObject



631
632
633
# File 'lib/bayonetta/mot.rb', line 631

def __size
  12
end

#valueObject



626
627
628
629
# File 'lib/bayonetta/mot.rb', line 626

def value
  raise "Only animation track 1 have a value" unless @interpolation_type == 0 
  [@offset].pack("L").unpack("F").first
end