FGX.Assets.TfgAsset: различия между версиями

Материал из FGX Native Докуметации
Перейти к навигации Перейти к поиску
(summary)
(summary)
Строка 17: Строка 17:
 
|-
 
|-
 
| <syntaxhighlight lang="Delphi">constructor</syntaxhighlight> || <code>Create(const AName: [[.TfgAssetName|TfgAssetName]]; const APlatform: [[.TfgPlatform|TfgPlatform]]; const ADeviceClass: [[.TfgDeviceClass|TfgDeviceClass]])</code>
 
| <syntaxhighlight lang="Delphi">constructor</syntaxhighlight> || <code>Create(const AName: [[.TfgAssetName|TfgAssetName]]; const APlatform: [[.TfgPlatform|TfgPlatform]]; const ADeviceClass: [[.TfgDeviceClass|TfgDeviceClass]])</code>
 +
 +
|}
 +
 +
== Методы ==
 +
 +
{| class="wikitable sortable"
 +
|-
 +
| <syntaxhighlight lang="Delphi">procedure</syntaxhighlight> || <code lang="Delphi">BeforeDestruction()</code>
 +
 +
|-
 +
| <syntaxhighlight lang="Delphi">function</syntaxhighlight> || <code lang="Delphi">GenerateId(const AName: [[.TfgAssetName|TfgAssetName]]; const APlatform: [[.TfgPlatform|TfgPlatform]]; const ADeviceClass: [[.TfgDeviceClass|TfgDeviceClass]]): [[string]]</code>
 +
Генерирует уникальный идентификатор ресурса на основе имени ресурса, платформы и класса устройства.
 +
|-
 +
| <syntaxhighlight lang="Delphi">procedure</syntaxhighlight> || <code lang="Delphi">Assign(const AAsset: [[FGX.Assets.TfgAsset|TfgAsset]])</code>
  
 
|}
 
|}

Версия 04:36, 10 июня 2019

Delphi

TfgAsset = class (TObject)

Описание

Базовый класс именованного ресурса.

Конструкторы

constructor
Create()
constructor
Create(const AName: TfgAssetName; const APlatform: TfgPlatform; const ADeviceClass: TfgDeviceClass)

Методы

procedure
BeforeDestruction()
function
GenerateId(const AName: TfgAssetName; const APlatform: TfgPlatform; const ADeviceClass: TfgDeviceClass): string

Генерирует уникальный идентификатор ресурса на основе имени ресурса, платформы и класса устройства.

procedure
Assign(const AAsset: TfgAsset)