Class T3DResourceList
Unit
Declaration
type T3DResourceList = class(specialize TObjectList<T3DResource>)
Description
Hierarchy
- TObject
- TList
- TObjectList
- T3DResourceList
Overview
Methods
![]() |
function FindName(const AName: string; const NilWhenNotFound: boolean = false): T3DResource; |
![]() |
procedure LoadFromFiles(const Path: string; const Reload: boolean = false); |
![]() |
procedure LoadFromFiles(const Reload: boolean = false); |
![]() |
procedure AddFromFile(const URL: string; const Reload: boolean = false); |
![]() |
procedure LoadResources(ParentElement: TDOMElement); |
![]() |
procedure Prepare(const Params: TPrepareParams; const ResourcesName: string = 'resources'); |
![]() |
procedure Release; |
Description
Methods
![]() |
function FindName(const AName: string; const NilWhenNotFound: boolean = false): T3DResource; |
|
Find resource with given T3DResource.Name. Exceptions raised
| |
![]() |
procedure LoadFromFiles(const Path: string; const Reload: boolean = false); |
|
Load all resources (creatures and items) information from resource.xml files found in given Path. Overloaded version without Path just scans the whole castle-data:/ directory. Note that on Android, searching the Android asset filesystem recursively is not possible (this is a fault of Android NDK API...). So instead of this method, you should use AddFromFile repeatedly to explicitly list all resource.xml locations.
Parameters
| |
![]() |
procedure LoadFromFiles(const Reload: boolean = false); |
![]() |
procedure AddFromFile(const URL: string; const Reload: boolean = false); |
|
Load a single resource from resource.xml file. Parameters
| |
![]() |
procedure LoadResources(ParentElement: TDOMElement); |
|
Reads <prepare_resources> XML element. <prepare_resources> element is an optional child of given ParentElement. Sets current list value with all mentioned required resources (subset of Resources). | |
![]() |
procedure Prepare(const Params: TPrepareParams; const ResourcesName: string = 'resources'); |
|
Prepare / release all resources on list. | |
![]() |
procedure Release; |
Generated by PasDoc 0.16.0.
