2023-03-22 04:05:49 +00:00
|
|
|
# frozen_string_literal: true
|
2023-03-08 03:06:29 +00:00
|
|
|
|
2023-03-22 04:05:49 +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
|
2023-03-22 04:05:49 +00:00
|
|
|
end
|