CAST II Game Engine

   DESCRIPTION       FEATURES       SCREENSHOTS       FORUMS       DOCUMENTATION       DOWNLOADS       CONTACTS   
Units
Class Hierarchy
Classes, Interfaces and Objects
Types
Enumerations
Variables
Constants
Functions and Procedures
Identifiers

Class TScriptResource

Unit

Resources

Declaration

type TScriptResource = class(TTextResource)

Description

Stores a script

Text property returns script's source text. Data stores compiled version. When Source property is changed a message of class TDataModifyMsg will be broadcasted to allow timely update of data property.

Hierarchy

TTextResource > TArrayResource > TResource > TItem > TBaseItem

Fields

 NameDescription
ProtectedFCodeSizeCompiled code size. Zero value means that code size is same as the resource data size.
ProtectedFSourceScript source text

Methods

Overview

Publicprocedure AddProperties(const Result: Props.TProperties); override;
Protectedfunction GetText: TString; override;
Publicprocedure SetCodeSize(ACodeSize: Integer);
Publicprocedure SetProperties(Properties: Props.TProperties); override;
Protectedprocedure SetText(const NewText: TString); override;

Description

Publicprocedure AddProperties(const Result: Props.TProperties); override;

 

Protectedfunction GetText: TString; override;

Returns source text

Publicprocedure SetCodeSize(ACodeSize: Integer);

Sets compiled code size if it has different value than resource data size (in case if some other information is stored within the resource)

Publicprocedure SetProperties(Properties: Props.TProperties); override;

 

Protectedprocedure SetText(const NewText: TString); override;

Sets source text

Properties

Overview

Publicproperty CodeSize: Integer;
Publicproperty Source: string;

Description

Publicproperty CodeSize: Integer;

Compiled code size. Zero value means that code size is same as the resource data size.

Publicproperty Source: string;

Source text

Last modified: 4 Jul, 2008
Copyright (C) 2006-2008, casteng.com