Unit CastleComponentSerialize
Description
Reading and writing of hierachy of CGE components (TCastleUserInterface, TCastleTransform) to and from files. This is used by CGE editor to read/write components, and it can be used at runtime by games to instantiate components designed in CGE editor.
Uses
Overview
Classes, Interfaces, Objects and Records
Functions and Procedures
Types
Description
Functions and Procedures
function TransformLoad(const Url: String; const Owner: TComponent): TCastleTransform; |
|
function ComponentLoad(const Url: String; const Owner: TComponent): TComponent; |
|
function ComponentToString(const C: TComponent): String; |
Save / load TComponent (or descendant) to a string. The string contents have the same format as a .castle-user-interface or .castle-transform file.
|
function StringToComponent(const Contents: String; const Owner: TComponent): TComponent; |
|
procedure RegisterSerializableComponent(const ComponentClass: TComponentClass; const Caption: String); |
Register a component that can be serialized and edited using CGE editor.
Parameters
- Caption
- Nice caption to show user in the editor.
|
Types
Generated by PasDoc 0.15.0.
|