Effects.rb

RubyMud/Effects/Effects.rb · 257 B

From the archive rbmud-0.1rc2.tar.gz

Download the archive   « Back to the archive contents

class Effects
	private_class_method :new
	
	@@effects = []
	
	def Effects.GetEffects()
		return @@effects
	end	
	
	def Effects.Add(effect)
		@@effects.push(effect)
	end
	
end

d = Dir.new("Effects")
d.each do |x|
	if (x.include?(".rb"))
		require x
	end
end

Site Stats

Snippets: 1791
Codebases: 571