CAST II Game Engine |
|||||||||||||||
![]() |
DESCRIPTION | ![]() |
FEATURES | ![]() |
SCREENSHOTS | ![]() |
FORUMS | ![]() |
DOCUMENTATION | ![]() |
DOWNLOADS | ![]() |
CONTACTS | ![]() |
|
type TProperties = class
| Name | Description | |
|---|---|---|
![]() | Changed | This field becomes True with any change of properties or values |
![]() | FTotalProperties | Number of properties |
![]() | Properties | Set of properties |
![]() | destructor Destroy; override; |
![]() | function Add(const AName: string; const AValueType: Integer; const AOptions: TPOptions; const AValue, AEnumeration: string; const ADescription: string = ''): Integer; |
![]() | function AddBinary(const AName: string; const AOptions: TPOptions; AData: Pointer; DataSize: Integer): Integer; |
![]() | function AddEnumerated(const AName: string; const AOptions: TPOptions; AValue: Integer; const AEnumeration: string): Integer; |
![]() | procedure AddSetProperty(const Name: string; Value, VisibleMembers: TSet32; const ValuesEnum, ADescription: string); overload; |
![]() | procedure AddSetProperty(const Name: string; Value, VisibleMembers: TSet32; ValuesEnum: TStringArray; const ADescription: string); overload; |
![]() | procedure Clear; virtual; |
![]() | procedure DoForEach(Action: TPropertyDelegate; var CustomData: Integer); |
![]() | function Exists(const Name: string): Boolean; |
![]() | function GetAsInteger(const Name: string): Integer; virtual; |
![]() | function GetAsXML: string; virtual; |
![]() | function GetIndex(const Name: string): Integer; virtual; |
![]() | function GetNameByIndex(const Index: Integer): string; virtual; |
![]() | function GetOptions(const Name: string): TPOptions; virtual; |
![]() | function GetProperty(const Name: string): PProperty; virtual; |
![]() | function GetPropertyByIndex(const Index: Integer): PProperty; virtual; |
![]() | function GetType(const Name: string): Integer; virtual; |
![]() | function GetTypeAsString(Index: Integer): string; virtual; |
![]() | function GetValue(const Name: string): string; |
![]() | function GetValueByIndex(Index: Integer): string; virtual; |
![]() | function IsEqual(const Props: TProperties): Boolean; |
![]() | function IsEqualProperty(const Prop1, Prop2: TProperty): Boolean; |
![]() | procedure Merge(const Props: TProperties; OverrideExisting: Boolean); |
![]() | function Read(Stream: TStream): Boolean; virtual; |
![]() | procedure SetEnumeratedValueByIndex(Index, ValueIndex: Integer); |
![]() | function SetSetProperty(const Name: string; var Res: TSet32; ValuesEnum: TStringArray): Boolean; overload; |
![]() | function SetSetProperty(const Name: string; var Res: TSet32; const ValuesEnum: string): Boolean; overload; |
![]() | function SetValue(const Name, Value: string): Integer; virtual; |
![]() | procedure SetValueByIndex(Index: Integer; const Value: string); |
![]() | function Valid(const Name: string): Boolean; virtual; |
![]() | function ValueToFloat(const Value: string): Extended; virtual; |
![]() | function ValueToInteger(ValueType: Integer; const Value, Enumeration: string): Integer; virtual; |
![]() | function Write(Stream: TStream): Boolean; virtual; |
![]() | destructor Destroy; override; |
![]() | function Add(const AName: string; const AValueType: Integer; const AOptions: TPOptions; const AValue, AEnumeration: string; const ADescription: string = ''): Integer; |
Adds a new property to the set and returns its index
![]() | function AddBinary(const AName: string; const AOptions: TPOptions; AData: Pointer; DataSize: Integer): Integer; |
Adds a new binary property to the set and returns its index
![]() | function AddEnumerated(const AName: string; const AOptions: TPOptions; AValue: Integer; const AEnumeration: string): Integer; |
Adds a new enumerated property to the set and returns its index
![]() | procedure AddSetProperty(const Name: string; Value, VisibleMembers: TSet32; const ValuesEnum, ADescription: string); overload; |
Adds a variable of a set type as a set of boolean values to the current property set.
VisibleMembers is a set of members which should be added. If it's empty all members will be added.
![]() | procedure AddSetProperty(const Name: string; Value, VisibleMembers: TSet32; ValuesEnum: TStringArray; const ADescription: string); overload; |
Adds a variable of a set type as a set of boolean values to the current property set.
VisibleMembers is a set of members which should be added. If it's empty all members will be added.
![]() | procedure Clear; virtual; |
Clear the current property set
![]() | procedure DoForEach(Action: TPropertyDelegate; var CustomData: Integer); |
Calls the Action delegate for each property
![]() | function Exists(const Name: string): Boolean; |
Returns True if a property with the specified name exists in the set
![]() | function GetAsInteger(const Name: string): Integer; virtual; |
Returns an integer representation of the properties value
![]() | function GetAsXML: string; virtual; |
Returns the properties in XML format
![]() | function GetIndex(const Name: string): Integer; virtual; |
Returns the index of the specified property
![]() | function GetNameByIndex(const Index: Integer): string; virtual; |
Returns property name by its index
![]() | function GetOptions(const Name: string): TPOptions; virtual; |
Returns property option set
![]() | function GetProperty(const Name: string): PProperty; virtual; |
Returns a pointer to property by its name or nil if it is not found
![]() | function GetPropertyByIndex(const Index: Integer): PProperty; virtual; |
Returns a pointer to the property data structure by property index
![]() | function GetType(const Name: string): Integer; virtual; |
Returns property value type
![]() | function GetTypeAsString(Index: Integer): string; virtual; |
Returns property value type as string
![]() | function GetValue(const Name: string): string; |
Returns the value of the specified property
![]() | function GetValueByIndex(Index: Integer): string; virtual; |
Returns the value of the specified by index property
![]() | function IsEqual(const Props: TProperties): Boolean; |
Returns True if both property sets are equal
![]() | function IsEqualProperty(const Prop1, Prop2: TProperty): Boolean; |
Returns True if both properties are equal
![]() | procedure Merge(const Props: TProperties; OverrideExisting: Boolean); |
Adds a properties set specified by Props to the current set. If OverrideExisting existing values will be overridden by the new ones
![]() | function Read(Stream: TStream): Boolean; virtual; |
Reads the properties from a stream and return True if success
![]() | procedure SetEnumeratedValueByIndex(Index, ValueIndex: Integer); |
Sets the value index of the specified by index enumerated property
![]() | function SetSetProperty(const Name: string; var Res: TSet32; ValuesEnum: TStringArray): Boolean; overload; |
Sets a set of boolean properties added by AddSetProperty with the specified set variable
![]() | function SetSetProperty(const Name: string; var Res: TSet32; const ValuesEnum: string): Boolean; overload; |
Sets a set of boolean properties added by AddSetProperty with the specified set variable
![]() | function SetValue(const Name, Value: string): Integer; virtual; |
Sets the value of the specified property
![]() | procedure SetValueByIndex(Index: Integer; const Value: string); |
Sets the value of the specified by index property
![]() | function Valid(const Name: string): Boolean; virtual; |
Returns True if a property with the specified name exists and has a valid value
![]() | function ValueToFloat(const Value: string): Extended; virtual; |
Returns a floating-point representation of the value with the specified type and enumeration
![]() | function ValueToInteger(ValueType: Integer; const Value, Enumeration: string): Integer; virtual; |
Returns an integer representation of the value with the specified type and enumeration
![]() | function Write(Stream: TStream): Boolean; virtual; |
Writes the properties to a stream and return True if success
![]() | property TotalProperties: Integer; |
![]() | property Values[const Name: string]: string; |
![]() | property TotalProperties: Integer; |
![]() | property Values[const Name: string]: string; |
Property values by names
|
Last modified: 4 Jul, 2008 |