Class: Bayonetta::EXPFile::Entry2

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

Instance Method Summary collapse

Constructor Details

#initializeEntry2

Returns a new instance of Entry2.



386
387
388
389
390
391
392
# File 'lib/bayonetta/exp.rb', line 386

def initialize
  @flags = 0x80000001
  @bone_index = 0
  @animation_track = 0
  @padding = 0
  @operation = Operation::new
end

Instance Method Details

#get_value(pose, table) ⇒ Object



394
395
396
# File 'lib/bayonetta/exp.rb', line 394

def get_value(pose, table)
  @operation.transform_value( pose[table[@bone_index]][@animation_track] )
end