C# Class LitDev.LDResources

Afficher le fichier Open project: litdev1/LitDev

Méthodes publiques

Méthode 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 méthode

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

AddText() public static méthode

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.
Résultat void

CleanTemp() public static méthode

Delete temporary sound files.
public static CleanTemp ( ) : void
Résultat void

ExtractFile() public static méthode

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

Load() public static méthode

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
Résultat Primitive

Save() public static méthode

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
Résultat Primitive