Strict

Import mojo

Class ImageManager
Private
	Global imageMap: StringMap<Image>
	
Public
	Function LoadImg:Image(resName: String, tFrames:Int = 1, flags: Int = 0)
		If imageMap = Null Then
			imageMap = New StringMap<Image>
		Endif
		If imageMap.Get(resName) = Null Then imageMap.Set(resName, LoadImage(resName+".png", tFrames, flags)
		Return imageMap.Get(resName)
	End
End

