cube-tube/app/util/sprite.rb

15 lines
266 B
Ruby
Raw Permalink Normal View History

# frozen_string_literal: true
2023-03-08 03:06:29 +00:00
# Module for managing and interacting with sprites.
module Sprite
2023-03-08 03:06:29 +00:00
class << self
def reset_all(args)
2023-04-05 06:42:58 +00:00
SPRITES.each { |_, v| args.gtk.reset_sprite(v.path) }
2023-03-08 03:06:29 +00:00
end
def for(key)
SPRITES.fetch(key)
end
end
end