C# Class LitDev.LDResources

Mostra file Open project: litdev1/LitDev

Public Methods

Method Description
AddFile ( Primitive fileName ) : Primitive

Add any file to the resources to be stored.

AddText ( Primitive text ) : void

Add text, or may be variable (including arrays) to the resources to be stored.

CleanTemp ( ) : void

Delete temporary sound files.

ExtractFile ( Primitive fileName ) : Primitive

Extract a saved file to the current directory (Program.Directory).

Load ( ) : Primitive

Load all previously saved resources from the sbres file. ImageList and sounds are all auto loaded ready for use. Sound files are re-created in your %temp% folder since they are required by Sound.Play.

Save ( ) : Primitive

Save all resource to the sbres file. This includes all ImageList images, pre-run sounds (Sound.Play) as well as any added files or text/variables.

Method Details

AddFile() public static method

Add any file to the resources to be stored.
public static AddFile ( Primitive fileName ) : Primitive
fileName Primitive The full path to the file.
return Primitive

AddText() public static method

Add text, or may be variable (including arrays) to the resources to be stored.
public static AddText ( Primitive text ) : void
text Primitive The text or a Small Basic variable to add to the resources.
return void

CleanTemp() public static method

Delete temporary sound files.
public static CleanTemp ( ) : void
return void

ExtractFile() public static method

Extract a saved file to the current directory (Program.Directory).
public static ExtractFile ( Primitive fileName ) : Primitive
fileName Primitive The filename returned by Files method.
return Primitive

Load() public static method

Load all previously saved resources from the sbres file. ImageList and sounds are all auto loaded ready for use. Sound files are re-created in your %temp% folder since they are required by Sound.Play.
public static Load ( ) : Primitive
return Primitive

Save() public static method

Save all resource to the sbres file. This includes all ImageList images, pre-run sounds (Sound.Play) as well as any added files or text/variables.
public static Save ( ) : Primitive
return Primitive