Dras.biz Just another WordPress site

June 27, 2012

VFSLoadContext Class

Filed under: SaveIt,SaveIT API Reference — mark @ 16:05

Namespace: SaveIt.SingleFileVFS
C#:

using SaveIt.SingleFileVFS;

JS:

import SaveIt.SingleFileVFS;

VFSLoadContext(string fileName, ResourceEntry[] resourceEntries = null)
Parameters:

    fileName – the filename to the file to which this context should read
    resourceEntries [optional] – array of precreated resources to use instead to create it on demand

Creates a new VFSLoadContext instance. The main difference to the non VFS Context is that this context
will only read data from the disc when it needs to do.

C#:

1
VFSLoadContext context = new VFSLoadContext("SaveItData");
1
VFSLoadContext context = new VFSLoadContext("SaveItData", myResourceEntries);

JS:

1
var context : VFSLoadContext = VFSLoadContext("SaveItData");
1
var context : VFSLoadContext = VFSLoadContext("SaveItData", myResourceEntries);

No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URL

Leave a comment

Powered by WordPress