C# Класс LitDev.LDResources

Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Описание методов

AddFile() публичный статический Метод

Add any file to the resources to be stored.
public static AddFile ( Primitive fileName ) : Primitive
fileName Primitive The full path to the file.
Результат Primitive

AddText() публичный статический Метод

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.
Результат void

CleanTemp() публичный статический Метод

Delete temporary sound files.
public static CleanTemp ( ) : void
Результат void

ExtractFile() публичный статический Метод

Extract a saved file to the current directory (Program.Directory).
public static ExtractFile ( Primitive fileName ) : Primitive
fileName Primitive The filename returned by Files method.
Результат Primitive

Load() публичный статический Метод

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
Результат Primitive

Save() публичный статический Метод

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
Результат Primitive