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)
|
|
|
|
SPRITES.each { |_, v| args.gtk.reset_sprite(v) }
|
|
|
|
end
|
|
|
|
|
|
|
|
def for(key)
|
|
|
|
SPRITES.fetch(key)
|
|
|
|
end
|
|
|
|
end
|
2023-03-22 04:05:49 +00:00
|
|
|
end
|