Class TSerializedComponent

Unit

Declaration

type TSerializedComponent = class(TObject)

Description

Load the serialized component once, instantiate it many times.

Hierarchy

  • TObject
  • TSerializedComponent

Overview

Methods

Public constructor Create(const Url: String);
Public constructor CreateFromString(const Contents: String);
Public destructor Destroy; override;
Public function TransformLoad(const Owner: TComponent): TCastleTransform;
Public function UserInterfaceLoad(const Owner: TComponent): TCastleUserInterface;
Public function ComponentLoad(const Owner: TComponent): TComponent;

Description

Methods

Public constructor Create(const Url: String);
 
Public constructor CreateFromString(const Contents: String);
 
Public destructor Destroy; override;
 
Public function TransformLoad(const Owner: TComponent): TCastleTransform;

Instantiate component. Using this is equivalent to using global CastleComponentSerialize.TransformLoad, but it is much faster if you want to instantiate the same file many times.

Public function UserInterfaceLoad(const Owner: TComponent): TCastleUserInterface;

Instantiate component. Using this is equivalent to using global CastleComponentSerialize.UserInterfaceLoad, but it is much faster if you want to instantiate the same file many times.

Public function ComponentLoad(const Owner: TComponent): TComponent;

Instantiate component. Using this is equivalent to using global CastleComponentSerialize.ComponentLoad, but it is much faster if you want to instantiate the same file many times.


Generated by PasDoc 0.15.0.