Class: Bayonetta::CLWFile::ClothWind
- Inherits:
-
LibBin::Structure
- Object
- LibBin::Structure
- Bayonetta::CLWFile::ClothWind
- Defined in:
- lib/bayonetta/clw.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_bxm_cloth_wind(c) ⇒ Object
49 50 51 52 53 |
# File 'lib/bayonetta/clw.rb', line 49 def self.from_bxm_cloth_wind(c) clw = self::new clw.from_bxm_cloth_wind(c) clw end |
Instance Method Details
#from_bxm_cloth_wind(h) ⇒ Object
35 36 37 38 39 40 41 42 43 44 45 46 47 |
# File 'lib/bayonetta/clw.rb', line 35 def from_bxm_cloth_wind(h) @wind_type = h.at_css("WindType").content.to_i @parts_no = h.at_css("PartsNo").content.to_i @offset = FVector.from_bxm_vector(h.at_css("Offset").content) @offset2 = FVector.from_bxm_vector(h.at_css("Offset2").content) @radius = h.at_css("Radius").content.to_f @power = h.at_css("Power").content.to_f @timer = h.at_css("Timer").content.to_f @swing_rate = h.at_css("SwingRate").content.to_f @swing_spd = h.at_css("SwingSpd").content.to_f @delay_max = h.at_css("DelayMax").content.to_f self end |
#remap(map) ⇒ Object
55 56 57 |
# File 'lib/bayonetta/clw.rb', line 55 def remap(map) @parts_no = check_and_remap_bone(map, @parts_no) end |