Imaginary Game Engine API documentation
OpenFile<(Of <(T>)>) Method (file, opentype)
NamespacesIGEEngineOpenFile<(Of <(T>)>)(String, Type)

[This is preliminary documentation and is subject to change.]

Open a file with a specific loader or pull it from the cache
Declaration Syntax
C#Visual BasicVisual C++
public T OpenFile<T>(
	string file,
	Type opentype
) where T : ReadFile
Public Function OpenFile(Of T As ReadFile) ( _
	file As String, _
	opentype As Type _
) As T
public:
generic<typename T>
where T : ReadFile
T OpenFile(
	String^ file, 
	Type^ opentype
)
Generic Template Parameters
T
File loader to cast the result to
Parameters
file (String)
Path to the file
opentype (Type)
ReadFile implementation to use
Return Value
The openend file

Assembly: IGE Core (Module: IGE Core) Version: 0.1.2957.39562 (0.1.0.0)