14 lines
266 B
Ruby
14 lines
266 B
Ruby
# frozen_string_literal: true
|
|
|
|
# Module for managing and interacting with sprites.
|
|
module Sprite
|
|
class << self
|
|
def reset_all(args)
|
|
SPRITES.each { |_, v| args.gtk.reset_sprite(v.path) }
|
|
end
|
|
|
|
def for(key)
|
|
SPRITES.fetch(key)
|
|
end
|
|
end
|
|
end
|