Class TAbstractLevel

Unit

Declaration

type TAbstractLevel = class(TComponent)

Description

Abstract level information, with information useful to spawn resources like creatures and items.

Hierarchy

  • TObject
  • TPersistent
  • TComponent
  • TAbstractLevel

Overview

Methods

Public function GetPlayer: TCastleTransform; virtual; abstract;
Public function GetSectors: TSectorList; virtual; abstract;
Public function RootTransform: TCastleRootTransform; virtual; abstract;
Public function PrepareParams: TPrepareParams; virtual; abstract;
Public function FreeAtUnload: TComponent; virtual; abstract;

Description

Methods

Public function GetPlayer: TCastleTransform; virtual; abstract;
 
Public function GetSectors: TSectorList; virtual; abstract;
 
Public function RootTransform: TCastleRootTransform; virtual; abstract;
 
Public function PrepareParams: TPrepareParams; virtual; abstract;

Parameters to prepare rendering for, see TCastleViewport.PrepareParams.

Public function FreeAtUnload: TComponent; virtual; abstract;

Use this as Owner of any TComponent, to have something automatically freed when level is being unloaded (at TLevel.Unload call, or at TLevel.Load of new level, or at destruction of this TLevel).


Generated by PasDoc 0.15.0.