ModraUp Ruby API Documentation Ruby API Reference

Class: ModraUp::ShadowInfoObserver

Inherits:
Object
  • Object
show all

Overview

Base class for Shadow Information Observer, listening to parameter changes in Ruby, Shadow Dock, and scene switches.

Examples:

ModraUp::ShadowInfoObserver.new

Instance Method Summary # collapse

Instance Method Details

observer.onShadowInfoChanged(shadow_info, type) ⇒ nil

Shadows settings changed; type is 0 for time, 1 for switch, 2 for shading, 3 for position, 4 for north, 7 for bright shadows, 8 for edges, 9 for ground, 10 for faces.

Parameters:

  • shadow_info (ModraUp::ShadowInfo)
  • type (Integer)

Returns:

  • (nil)

Examples:

class MySh < ModraUp::ShadowInfoObserver
  def onShadowInfoChanged(info, type)
  end
end