mirror of
https://github.com/cyberarm/i-mic-fps.git
synced 2025-12-15 23:52:35 +00:00
Added require_all method to replace explicitly requiring every source file, added SoundManager and sound effects, added sound for shield/health regen
This commit is contained in:
19
lib/sound_effect.rb
Normal file
19
lib/sound_effect.rb
Normal file
@@ -0,0 +1,19 @@
|
||||
class IMICFPS
|
||||
class SoundEffect
|
||||
attr_reader :sound, :options
|
||||
def initialize(options = {})
|
||||
raise "expected Hash, got #{options.class}" unless options.is_a?(Hash)
|
||||
@options = options
|
||||
|
||||
raise "sound not specified!" unless @options[:sound]
|
||||
|
||||
setup
|
||||
end
|
||||
|
||||
def setup
|
||||
end
|
||||
|
||||
def update
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user