lighttroupe/luz

View on GitHub
engine/actor_effect_canvas.rb

Summary

Maintainability
A
0 mins
Test Coverage
require 'actor_effect'

class ActorEffectCanvas < ActorEffect
    virtual

    def render
        parent_user_object.with_canvas { |canvas| paint(canvas) }        # TODO: Should this be moved to a 'Painting' module, much like 'Drawing'?
        yield        # continue effect tree
    end
end