Class: Bayonetta::MOT2File::Record

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

Instance Method Summary collapse

Instance Method Details

#__sizeObject



341
342
343
# File 'lib/bayonetta/mot.rb', line 341

def __size
  12
end

#valueObject



336
337
338
339
# File 'lib/bayonetta/mot.rb', line 336

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